473,544 Members | 1,959 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.
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
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,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
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,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...
1
2,452
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,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,591
omerbutt
thread by: omerbutt | last post May 2 '15 by: omerbutt
i have a situation where i have to test the functionality of my site's user subscriptions on stripe. i have to do integration testing for the cancel plans functionality on my site using php unit and php-facebook-webdrivers, according to my knowledge it is not a good practice to create users on stripe from within my test cases, i heard the term...
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
13
1,685
thread by: nwmail88 | last post May 25 '15 by: Dormilich
I am having trouble developing a good regular expression that works for most email addresses. Every so often I will get a user who can't register and that probably means there are quite a few that don't even bother. I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex...
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...
2
2,278
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!";...
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
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>',...
3
2,937
thread by: gintare | last post Apr 7 '15 by: gintare
I am attending online course about MVC https://www.udemy.com/learn-php-model-view-controller-pattern-php-mvc/#/lecture/2201044 By idea if I try http://localhost/MVCfirst/public/ it should try to open index.php : C:\Bitnami\wampstack-5.4.38-0\apache2\htdocs\MVCfirst\public\index.php this file requires boostrap file ...
1
1,066
Ada Peterson
thread by: Ada Peterson | last post Apr 8 '15 by: Dormilich
I'm a begginner, please help me, I can't fix the internal server error in wordPress. Any advice ?
1
1,197
thread by: gintare | last post Apr 6 '15 by: gintare
I follow online course about Symfony. https://www.udemy.com/introduction-to-web-development-with-symfony2/#/lecture/934594 In lecture 79 they create service for Author: myproject\src\Blog\CoreBundle\Controller\AuthorController.php class AuthorController extends Controller { public function showAction($slug)
9
2,535
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...
2
13,153
thread by: gintare | last post Apr 6 '15 by: gintare
Related files: myproject\src\Blog\ModelBundle\Entity\Post.php class Post{ private $id; private $title; private $slug; private $body; private $author; private $comments;
0
987
thread by: reedma1 | last post Apr 5 '15 by: reedma1
I have a table called FACULTY that has FacultyID, FName, and LName in it. That table is prepopulated with information. I can use a dynamic dropdown to get those values to show up on the page. MY ISSUE: I also have a publication table that is being connected to each faculty. I want to be able to select multiple faculty and send those ID's (in...
2
1,588
thread by: skyshake | last post Apr 7 '15 by: Dormilich
i have create a table with alphanumeri id number but when i want to retreive my image i got this error kindly help <?php include "file_constants.php"; // just so we know it is broken error_reporting(E_ALL);
2
1,533
thread by: jaad | last post Apr 3 '15 by: jaad
Hi, I am an MS Access user trying to move an application on the web with php and mysql. I have two questions: #1 I have followed a tutorial and was able to establish a page. The problem I am having at this time is not being able to save the uploaded file with the correct file name(with time() function added to the filename.) to Mysql. it...
0
1,263
thread by: TanuLamba15 | last post Apr 2 '15 by: TanuLamba15
Hi All, Can anyone guide me I want to send attachment with my mail and I'm using http://demo.tutorialzine.com/2013/05/mini-ajax-file-upload-form/ plugin instead of simple <input type="file"/>, the issue is occurring when I'm sending mail using above given plugin I'm not receiving attachment and when I'm simply put <input type="file"/> it works...
5
16,253
thread by: azghanvi1 | last post Oct 24 '17 by: azghanvi1
Introudction A lot of PHP based libraries are currently in market that support chart types. The important aspect is how they are connecting with our data source as mostly they are used with some database (e.g. mysql or sqlite). Getting Chart data from Database For this article, i am fetching data from northwind sqlite database. Lets say...

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.