473,544 Members | 439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
3
2,165
thread by: James Jiao | last post Jul 16 '05 by: James Jiao
Hi, all, I installed php on my com yesterday and everything works fine IF there is no error in a script. However, if there is one, the server (apache2) simply returns a blank page instead of a message regarding any errors. This makes debugging like hell... Does anybody know why this is happening? I am using XP Pro, Apache2 running on port...
3
2,843
thread by: James Jiao | last post Jul 16 '05 by: James Jiao
Hi, all this is a follow-up post to my previous post called Login Redirect. I created two files called test.php and test1.php containing the following contents (copied from a php textbook) test.php --------
2
6,081
thread by: boclair | last post Jul 16 '05 by: boclair
I have some date fields which in some records will have NULL value. I am trying to show nothing in the HTML display. IF <? $date3=$myrow; ?> <p><?=$date3?><p> The html display is 0000-00-00 if there is no date value in the db table. I
3
2,466
thread by: Sticks | last post Jul 16 '05 by: Jochen Buennagel
i have been having difficulty with session variables - i seem to be able to set them, but when i wish to have another page update them, they remain as they were. this makes them utterly useless to me. does anyone know why i am having this problem and what i can do to rectify it?
1
3,510
thread by: Kyle Maddison | last post Jul 16 '05 by: Frank Passek
Hi, I would like to access an array via an index I have in a string. I know I can pull the string apart and manually access it but that just looks ugly to me :) $pg = "foo@bar.com"; $row->name = ""; //single quotes on 'owner' haven't helped $value = "pg".$row->name; echo $value; //ouput: 'pg'
1
2,413
thread by: Nic, Val, Vic, Mara, Ecs & Alc | last post Jul 16 '05 by: Jamie Davison
Does anyone know what's wrong with this code? I just started learning php & mysql from a book and this code is copied directly from it, yet it still fails to work... I always get the following error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tjc/public_html/results.php on line 40 <?php...
1
3,119
thread by: pittendrigh | last post Jul 16 '05 by: pittendrigh
I'm translating several old cgi scripts (that use CGI.pm) to php. CGI.pm has a series of conventient function calls for generating HTML code on the fly, like: start_html(-text=>$TX, -bgcolor=>$BG,-title=>"$BBS_TITLE") ...etc. or h1({align=>'center'},"$forum_label") ...etc Does anyone know of a php-clone package, with a matching API, to...
2
1,896
thread by: moeFinley | last post Jul 16 '05 by: matty
How can I pass a variable out of a class? I'm sure this is very simple, but I can't find out how. I think you put a charater in front of the variable name, is this right? Thanks for any help Moe
6
3,568
thread by: John Simmons | last post Jul 16 '05 by: John Simmons
How is it that even though I have the column "username" in my database set as a Primary key, using my PHP script to add new users to the database works without any errors even when signing up using an existing username. I have a database full of the same usernames!
3
4,308
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
I got the following function from one of the PHP websites and I'm getting the following error: Warning: fileatime(): Stat failed for /tmp\lost+found (errno=2 - No such file or directory) in /home/rfresh/public_html/whosonline_form.php on line 93 This is line 93 in the function below: if (time()- fileatime(session_save_path() . '\\' ....
5
2,703
thread by: DjDrakk | last post Jul 16 '05 by: matty
I want to use headers to redirect the client if they didn't come from the correct page, but I have a problem with one page. If they leave a form field empty, they are redirected back to the page they came from with an error number and a 6 digit 1d number in the location bar which defines what field was left empty( order.php?prob=2&id=000001) ...
3
4,219
thread by: lawrence | last post Jul 16 '05 by: jkd
I do get that MD5() scrambles a password, but how do you then unscrable it? I want to get $password from the user, scrable it, then append it to every link.
29
2,876
thread by: Damian Brown | last post Jul 16 '05 by: Damian Brown
www.phpexpert.org
1
2,919
thread by: ecow | last post Jul 16 '05 by: Tom Thackrey
Can anyone think of a reason why this is happening? $b = xxx //<enormously long string with at least 100000 characters> $c = yyy //<shorter but still a long string> $a = $b.$c; echo "$a"; Output:
2
1,947
thread by: jorntk | last post Jul 16 '05 by: Pertti Kosunen
if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) { header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else { echo "You entered $PHP_AUTH_USER for a username.<BR>";
3
4,148
thread by: Carlos Marangon | last post Jul 16 '05 by: Rainer Herbst
Hello! I need some help with tables in MySQL. I am making a colums of articles in my site. It has 3 posters that post articles. I make a little serach page to search for words into articles. I have the sintax below working, but I need to know what is the syntax to it select words from several tables. Every table is for a poster and all...
8
2,491
thread by: Jeffrey Silverman | last post Jul 16 '05 by: matty
'nuff said. Just venting... -- Jeffrey D. Silverman | jeffrey AT jhu DOT edu Johns Hopkins University | Baltimore, MD Website | http://www.wse.jhu.edu/newtnotes/
2
6,143
thread by: Phil Powell | last post Jul 16 '05 by: Phil Powell
Code snippet: if (!($dirID = opendir($ACTUAL_STARTPATH . '/content/')) && $hasCookie) { $html .= $font . '<font color=cc0000><li>Could not open files in content folder</li></font></font><p>'; } else if ($hasCookie) { clearstatcache(); // CLEAR THE STATUS CACHE FOR is_file() TO PROPERLY DETERMINE FILE STATUS $html .= $font . 'Contents:...
1
2,951
thread by: Stephan Lachmuth | last post Jul 16 '05 by: haptiK
Hello, I want to do some SOAP with PHP and found the SOAP package at PEAR. But I didn't find any documentation for it. Can anybody tell, where to find docs? Or can anybody tell how to use it? Thanks in advance Stephan Lachmuth
0
1,779
thread by: Tiernan | last post Jul 16 '05 by: Tiernan
Hey everybody. I'm verrynew to PHP and MYSQL and have been working on a form that when it is submitted stores the information into a mysql database. The main problem is that i'm trying to finish up my script for almost a week now and I still cant get it right. here is the code <?php include ("ES_includes/appconst.inc.php") ;
2
9,123
thread by: Martin Lucas-Smith | last post Jul 16 '05 by: Andy Hassall
Can anyone provide any suggestions/URLs for best-practice approaches to preventing SQL injection? There seems to be little on the web that I can find on this. Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22 www.lucas-smith.co.uk Senior Computing Technician (Web Technician) Department of Geography, University...
1
1,992
thread by: Bernhard Hörlberger | last post Jul 16 '05 by: Jim Dabell
I have the following function. It checks if a User exists, authenticates that user based on the provided Password and Username, updates the last login info, and then returns a filepath to direct the user to. function login($aArgs) { if( !$this->_authenticate($aArgs) ) { catchErr("Can't authenticate User"); return FALSE;
12
8,594
thread by: haptiK | last post Jul 16 '05 by: Luke Ross
Hello, can i use php to multithread mail() or something similar? in my company i need to send multiple copies of email to a few hundred ppl affilated and on my list. instead of calling mail over and over again i would like to thread this process. could someone point me to some documentation or perhaps an example of
2
3,955
thread by: Tony W. | last post Jul 16 '05 by: Tom Thackrey
I am trying to do something in PHP that I thought would be fairly easy but has become rather troublesome. I'm trying to retrieve a list of numbers from a MySQL database and display the contents in a comma delimited string if there is more than one element. My problem is that the first element of the array is displaying but not any of the...
3
23,194
thread by: Sugapablo | last post Apr 27 '06 by: nikonetwork
Ok, say I have some data: $name = "Some Name" $email = "some@email.com" etc. I'd like to send these to a page as POST data, as if they were coming from a web form, but without having either a "submit" button or using Javascript's submit() function.

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.