473,543 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
4
2,451
thread by: amit08 | last post Apr 8 '15 by: amit08
i am a beginner in php. i am making a small email sending script in php but no success till now. i am using XAMPP server. tried all the configurations settings and also with mercury email server in xampp but no success. Please help!!
1
2,732
thread by: gintare | last post Apr 8 '15 by: Luuk
I am getting strange behavior: my url: http://localhost/MVCfirst/public/Contact/email/anoth if i use command var_dump($url); i am getting result: array(3) { => string(7) "Contact" => string(5) "email" => string(5) "anoth" } where $url=explode('/', filter_var( rtrim($_GET,'/') ), FILTER_SANITIZE_URL); If i use commands: echo '<pre>',...
1
2,808
thread by: koodie | last post Apr 10 '15 by: RonB
I have some data from text fields that are being passed over through a form that I am displaying with the $_POST. Once i have echo'd out this data onto the next page, i'd like to continue to use it on the next page without submitting it through a form action. I haven't figured out how to do this properly just yet example. //first page...
1
2,677
thread by: sukrub | last post Apr 12 '15 by: sukrub
I am trying to get the HTML code from a remote site, which creates different HTML output based on the cookie being sent. So I am trying to send username/password and a cookie with stream_context_create() function. It works without the $cookie in the header, but the I get the wrong HTML. With the $cookie I get: Warning:...
2
1,234
thread by: gintare | last post Apr 12 '15 by: gintare
Is there a way to see how php runs from "entering url" to "seeing view" ? I have Symfony project and i would like to see how it actually runs. For instance i enter localhost/project/user/update/2, i would like to see which classes and files are touched until this url is executed and view is rendered. regards, gintare
5
1,402
thread by: Ankit Bhowmick | last post Apr 12 '15 by: RonB
while($religion_res=mysql_fetch_array($religiondata)) { $_SESSION=$email_res2=$religion_res; //$_SESSION=$email_res1=$religion_res; if(($religion_res==$education) || ($religion_res==$religion_name) || ($religion_res==$height)) {
1
1,437
thread by: Roslin | last post Apr 13 '15 by: Dormilich
My codings: <?php header('Content-type: application/json'); $status = array( 'type'=>'success', 'message'=>'Email sent!' ); $name = @trim(stripslashes($_POST)); $email = @trim(stripslashes($_POST));
2
1,469
thread by: renuka12 | last post Apr 13 '15 by: RonB
I am dynamically adding a row through select box. I am facing three problem with below code 1) I am able to create the new row but its in reverse order like (3,2,1) instead of (1,2,3). 2) Secondly, when i select another number to create that number of rows then then previous data don't delete instead new data append on it. 3) Thirdly dynamic...
0
1,148
thread by: alexgr2006 | last post Apr 13 '15 by: alexgr2006
Hello, i have ipcam and i try to check when is online or offline, but always i get offline message. i use the follow code. Please can u help if i have something wrong. $ip="XXXX"; //DNS Cam $port=XXXX;//Cam port function getStatus($ip,$port) { $socket = @fsockopen($ip, $port, $errorNo, $errorStr, 3); if(!$socket) return "offline";
1
2,451
thread by: ilasenthi27 | last post Apr 14 '15 by: Dormilich
hi.. i'm php beginner,implementing payroll system based on salary per hour.. i want to store the time value on database.the time value get from time picker. and database has wrkingtime as time datatype.. here the problem is... Time picker gives(hh:mm + meridian) database -store data format is (hh:mm:ss) when i enter 4:30PM ----> it...
1
1,520
Claus Mygind
thread by: Claus Mygind | last post Apr 14 '15 by: Dormilich
I was looking for a simple way to create a javaScript array when streaming out my php code. my php sql query generates a quick rowset result in an associative array like this. if ( $result = $db->query($sql) ) { if ($result->num_rows > 0) { $f = mysqli_fetch_all( $result, $resulttype = MYSQLI_ASSOC ); }
2
1,355
thread by: Mrwinh | last post Apr 15 '15 by: Mukesh9023
<?php echo "Hello World!"; ?> I write as above but the browser not read the script.Instead of reading the script,show me blank page in the firefox browser and in the Chrome browser show me the original script as above. please help me solve!
0
1,040
thread by: Burton | last post Apr 17 '15 by: Burton
I'm trying to get a users email so it will update them when they purchased premium, I'm using Stripe as my payment system. The only way I can get it to work, is if I insert their email/id into my php page. I'm wanting the page to get the users email on it's on. $_SESSION = 9; $stripe = array( "secret_key" =>...
2
2,272
thread by: KingWicked | last post Apr 17 '15 by: zooboole
Hey guys so i recently made a registration form for my website, but i have a big problem users are able to register more than once so please if you can help me here's my register sumbit form. <?php global $users, $core, $engine; $errors = array(); $messages = array(); if(empty($_POST)) $errors = "<br/>Please enter a username!";...
0
1,092
thread by: lauren89 | last post Apr 17 '15 by: lauren89
Hi I have following tables: document: id, name; author: id, name, job_title; document_author: document_id, author_id, position I'm passing an array of following structure:
0
1,505
thread by: gintare | last post Apr 18 '15 by: gintare
I am following instructions in file, which was created automatically when creating advanced demo yii application: „C:\Bitnami\wampstack-5.4.38-0\apache2\htdocs\TamasCovacsYii\advanced\tests\README.md“ They say " 1. Install Codeception if it's not yet installed:" I run:...
1
1,385
thread by: mountain6464 | last post Apr 19 '15 by: Dormilich
Am trying to dynamically add the fields for subjects and the grades obtained, but am getting an error "Undefined index: subject in..." when posting those variables using java script. Could there be something am missing with my posting mechanism. Notice that in the form data am not puting id="subject" to avoid picking the id for only one subject,...
1
1,294
thread by: wilfredsanya | last post Apr 19 '15 by: zmbd
i need a message like user registered to display in a script on top of that same page that had the submit button when i send details to mysql data base
7
2,403
thread by: Virendra Maloo | last post Apr 20 '15 by: Virendra Maloo
I have developed an (PHP)application which has been tested on different development servers. So when I login to the app and navigate to a specific page just after loggin-in, the app logs-out and I have to re-enter the user credentials. But after loggin-in again, it works fine(and doesn't shows the log-in screen until we log-out). I wonder why...
0
1,649
thread by: wsung | last post Apr 21 '15 by: wsung
I got a p12 file from one payment service, only by using this file i can load wsdl from the https address they provide to me. Below are steps how i import the p12 file to my browser to load the wdsl file. So i import the p12 to my firefox then the wdsl file load successfully. The below steps are how i do in Firefox. Step 1: ...
2
1,767
thread by: gintare | last post Apr 21 '15 by: gintare
I do not understand how to use yii framework on server? I was always using it on my local computer, as part of XAMPP or WAMP. The framework is installed by Arvixe automatically to my server account to the folder yii. 1) I want to generate example application using: composer create-project yiisoft/yii2-app-advanced advanced 2.0.3 How to...
9
2,534
thread by: talk2tim | last post Apr 26 '15 by: talk2tim
Hello Folks. I want to first appreciate for all the help that i have received here. I am pretty new to PHP and im trying to use PHP mailer for my SMYP settings. With the settings below, i tried to send the mail, but after a long time of loading, it just stops with a blank page. I set up and error report, that would let me know whether the message...
0
1,099
thread by: manjava | last post Apr 28 '15 by: manjava
I have the issue the name of representative it's not show in my form so my code:my formcusto$rep = new Admin_Model_DbTable_Representative(); $representative = new Zend_Form_Element_Text('representative'); $representative->setLabel(Zend_Registry::get('Zend_Translate')->translate('representative')) ->setRequired(true) ...
2
1,262
thread by: 9033521295 | last post Apr 29 '15 by: Dormilich
<?php //Define your database connections and select your database want to use. In this example I use two connections and two DBs. But you can use more than two. //MySQL Server 1 $dbhost1 = "localhost"; $dbuser1 = "root"; $dbpassword1 = ""; $db1 = "mediteam"; $connection1 = mysql_connect($dbhost1,$dbuser1,$dbpassword1) or die...
1
1,174
thread by: chathurajaya | last post Apr 29 '15 by: RonB
hi all, I'm creating barcode reading system. When web page come there are text box and mouse pointer is there. In that case customer can read the barcode and see product information. if customer click on the product image mouse pointer goes there. after that customer can't read the barcode. because mouse pointer not in the text box. my problem...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.