473,800 Members | 2,615 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.
2
2,446
thread by: paeh | last post Jan 13 '08 by: paeh
what's wrong for this php code. when I run did not display anything in browser.. this is code: <?php include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph.php"); include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph_bar.php"); $db =...
12
346
thread by: noha khalifa | last post Jan 13 '08 by: Paul Lautman
Hi, I have a problem using session... I have a university web site from this site each student login with his username and password then i create a session variable for him for tracing student... there is a problem happened when say registering semester courses if two web pages opened for two students on the same machine, what
4
2,311
thread by: motherbee | last post Jan 13 '08 by: thegant
Hi, I'm trying to figure out a way to compare two versions of the same text file from a database and to highlight the changes when viewing the text? Can anyone help me with this?
8
1,338
thread by: Peter Pei | last post Jan 13 '08 by: radmission05
Try the following to see it <?php class A { } function foo(A $a = 1) { ; } foo(); ?>
1
1,947
thread by: =?ISO-8859-1?Q?thib=B4?= | last post Jan 13 '08 by: =?UTF-8?B?dGhpYsK0?=
Hi, Taking a closer look to highlight_file() lastly, I found out that its line break policy was a bit.. strange. <?php # highlight_file() line breaks test $f = fopen('highlight_file_test', 'w'); fwrite($f, highlight_file(__FILE__, true)); fclose($f); ?>
2
1,127
thread by: Peter Pei | last post Jan 13 '08 by: Jerry Stuckle
We can also include people from surrounding cities such like Surrey and Abbotsford etc.
2
1,507
thread by: ravisuguna | last post Jan 12 '08 by: Markus
Hi, I want to pass the entire contents of a php page into a text area in another php page..The php page fetches some data from the database.I want those data to be displayed in a text area in another php page.Pl guide me php code <?php if(isset($_POST)) {
1
2,346
thread by: Kurda Yon | last post Jan 12 '08 by: radmission05
Hi All, is that OK if I declare the same variable in the same file several times? For example somewhere in the beginning of a file I have session_register("cat") and than, somewhere in the middle of the file, I have again session_register("cat"). Can the second declaration destroy the value of the variable cat? Is that OK if I...
3
1,664
thread by: Mikhail Kovalev | last post Jan 12 '08 by: radmission05
I'm storing all uploaded files in one directory -- with the same temporary names they are given by PHP. I do so because I don't want an uploaded file to overwrite an already exisiting one, so I need to know whether these names are unique only per session and can reappear at a different time, or are they unique for every upload... ever? ...
1
8,947
thread by: velhari | last post Jan 12 '08 by: Paul Lautman
Hello all, Please give me the solution for to import the contacts from Hotmail. I searched for this criteria in google. It gives some demo site which provides the actual process. Anyone got the script for import contact from hotmail.
1
971
thread by: mayilraj | last post Jan 12 '08 by: Markus
if($_post){ for($i=0;$i<count($_POST);$i++){ $del_id = $checkbox; $sql = "DELETE FROM purchase WHERE id='$del_id'"; $result = mysql_query($sql); } }
3
2,202
thread by: big.sexy.jcw | last post Jan 12 '08 by: Paul Lautman
Okay, I just set up my first dedicated server and everything is running fine, except one script that calls a file on another server. Failed opening required 'http://www.example.com/ somefile.txt' (include_path='.:/usr/lib/php:/usr/local/lib/php') in / home/example/public_html/includes/common.inc(1201) : eval()'d code on line 43 The code...
2
1,467
thread by: hansverst | last post Jan 12 '08 by: hansverst
Hello, I hope some one can help me with this. I need to output xml data from a remote server into a pulldown menu. This is what i already done. <? $url = "https://secure.virtuelekassa.nl/api/xml/ideal.asp";
0
305
thread by: noha khalifa | last post Jan 12 '08 by: noha khalifa
Hi, I have a problem using session... I have a university web site from this site each student login with his username and password then i create a session variable for him for tracing student... there is a problem happened when say registering semester courses if two web pages opened for two students on the same machine, what
0
1,946
thread by: samyphp | last post Jan 12 '08 by: samyphp
i am trying to broadcast continuous data from server using udp connection... while accessing from single client its working fine... but while accessing from multiple clients its not working and throwing an error like Warning: socket_bind() : unable to bind address : Only one usage of each socket address (protocol/network address/port) is...
0
4,138
thread by: samyphp | last post Jan 12 '08 by: samyphp
i am trying to broadcast continuous data from server using udp connection... while accessing from single client its working fine... but while accessing from multiple clients its not working and throwing an error like Warning: socket_bind() : unable to bind address : Only one usage of each socket address (protocol/network address/port) is...
4
1,480
thread by: paul814 | last post Jan 12 '08 by: Gene Kelley
Hello everyone, Right now I have a simple PHP page setup that takes whatever was entered into txtsearch on the previous page, it searches my DB by that word and brings back the whole record based on the word. So if I enter: ALPHA it will bring back this record: the alpha dog was there HOWEVER if I enter: ALPHA DOG or alpha dog (so if I...
5
3,603
thread by: firewoodtim | last post Jan 12 '08 by: firewoodtim
I want to display an uploaded file (e.g. a pdf file) in a "_blank" target window. The file is stored outside of the webroot at "/home/myhome/uploads/" and was uploaded by a trusted user with the function, move_uploaded_file(). I've checked out readfile(), but there is scant info in the way of examples on php.net. Can anyone help with some...
2
3,514
thread by: j1mb0jay | last post Jan 11 '08 by: j1mb0jay
Is there a function in PHP that will return a boolean if a String contains another given String. As what I am trying to do is disallow input that contains ../ or something else that would allow directory traversal. j1mb0jay
0
1,074
thread by: Melih Onveral | last post Jan 11 '08 by: Melih Onveral
I am trying to create an edit function. It will grab the data which already exists from the item being edited, fill the appropriate text fields/drop downs/etc. and then allow the user to change the values and resubmit. I don't know how to set the value of form fields from PHP. Is this possible? Could someone please link me an example, or give...
11
4,187
thread by: jeevik | last post Jan 11 '08 by: welkins
hi everybody my form is posted to an 3rd party site on submit.. Now i want to store the textbox values in my database before posting the values to the 3rd party site.. thanks in advance
1
1,662
thread by: chris10121 | last post Jan 11 '08 by: code green
Hello everyone, Can someone please help me out, i've looked all over the internet for a way to use smtp with php on my windows xp wamp server. What I'm trying to make is a little script that sends out an email to email addresses users input. The sending mail addess is on a remote smtp server, so for example, i'd have to put in the smtp...
1
1,228
thread by: CopZ | last post Jan 11 '08 by: code green
have some doubts regarding the installation of the site $config - This sets the address of your database server. On most installations the database server is located on the same computer as the web server, in which case the address should be set to 'localhost', otherwise use the address of the database server as supplied by your web host. ...
1
867
coolv
thread by: coolv | last post Jan 11 '08 by: code green
Hello Everyone this is my code $snoopy = new Snoopy(); $links=$_SESSION; //Array of links for(int $i=0;$i<count($links);$i++) { $snoopy->fetchlinks($link);
11
2,447
thread by: Dual_b00t | last post Jan 11 '08 by: Toby A Inkster
Hi I am a beginner PHP programmer so I decided i would create a facebook group for us newbs to share and help each other out.. http://www.facebook.com/group.php?gid=20845788472 its brand new but will be adding links to tutorials and videos also it has a forum to chat etc etc see you guys there sometime

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.