473,543 Members | 4,384 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
6,100
thread by: noone | last post Jul 16 '05 by: Nobody
hello all. I am using this code to randomly select one value from an array. srand (); $rec = array("1","2","3","4","5","6"); $rec = $rec; print $rec; problem is, is sometimes it returns nothing. can anyone see how to make this so it always selects something.
0
3,254
thread by: Frank de Bot | last post Jul 16 '05 by: Frank de Bot
Hi, Can anyone give me an example of the setup of FastCGI with php (with apache). There are some good instruction how to do it with a Zeus webserver, but none with apache. Thanks in advanced, Frank de Bot
1
4,270
thread by: Nel | last post Jul 16 '05 by: Toni Schornboeck
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would be better to promote better programming than rely on PHP to compensate for lazy programming?
1
2,725
thread by: Me Here | last post Jul 16 '05 by: RR
I am a PHP newbie who has to get something online quickly. I need to put a Community online with preferably all of the following: Groups/Forums - Different Community interest groups - Group Administrators - Group Homepage Articles Comments for Articles Documents for articles Forums
4
6,412
thread by: Craig Bailey | last post Jul 16 '05 by: Richard Petty
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as well as some color coding, etc. Having trouble finding the same in an editor that'll run on OS X. -- Floydian Slip(tm) - "Broadcasting from...
4
3,333
thread by: James | last post Jul 16 '05 by: Roger
I have a from with 2 fields: Company & Name Depening which is completed, one of the following queries will be run: if($Company){ $query = "Select C* From tblsample Where ID = $Company Order By Company ASC";
1
4,081
thread by: Chris | last post Jul 16 '05 by: Andy Hassall
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again for adding so much code... <TABLE border="1" bordercolor="#000000" cellspacing="0"> <TR>
1
2,374
thread by: FHuang | last post Jul 16 '05 by: FHuang
Ok, I'm having some trouble with conditionals, for some reason PHP is screwing them up. First off, here is the code: <?php $username = "fred"; $userdata = "./$username.txt"; $fp = fopen("$userdata", "r", 1); $origpass = fread($fp, 5); if($passcount = 1) {
0
2,818
thread by: AK | last post Jul 16 '05 by: AK
Hi all, I have a form which simulates a form collecting a person's info for a job. The form has the field's like fname, lname, address etc. The last field in the form is browse for resume and upload it. What I did until now is, I am inserting all the data other than the resume into a table and storing the resumes in a seperate directory. My...
0
3,129
thread by: Alexander Riegel | last post Jul 16 '05 by: Alexander Riegel
Is there a PHP command to list the drives of the Server. Or should I check each letter from a...z if it exists? thanks
0
3,058
thread by: FreeStyle | last post Jul 16 '05 by: FreeStyle
Hi everybody, I'm using phpMyAdmin 2.2.6 with EasyPHP v.1.6.0.0 I wrote a php script which uses a username (added in the mysql base with phpMyAdmin). This user has no privileges. But in the script, I have the following request for the same username : INSERT TO table (...) VALUES (....) And it's working !!! The user can insert new rows with...
11
3,988
thread by: James | last post Jul 16 '05 by: Andy Hassall
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
0
2,873
thread by: Verizon | last post Jul 16 '05 by: Verizon
Has anybody ever heard of support for the book: "Secure PHP Development" by: Mohammed J. Kabir I'm trying to run one of his PHP solutions called "Web Forms Manager" I haven't been able to get it up and running. Thanks in advance!
1
5,162
thread by: James | last post Jul 16 '05 by: Jason Dumler
Hi, I would like to run a custom script on a linux box via a button on a php page (php webpage hosted on the same linux box). Is this possible? If so , can you give me a pointer in the right direction? thanks James
2
9,239
thread by: Bill Parker | last post Jul 16 '05 by: Bill Parker
Hi Is there a way to generate colour hex strings that are guaranteed to be dark and thus good as random-generated text colours? something like ------------------- srand((double)microtime()*1000000); function tc() {
4
18,517
thread by: Alan Walkington | last post Jul 16 '05 by: Derek O'Harrow
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function blocks until something.exe terminates. Just what I /don't/ want. (Wouldn't an & be nice here! Sigh) I need something.exe to disconnect and...
1
3,688
thread by: John Ryan | last post Jul 16 '05 by: Jason Dumler
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with sockets??
1
2,338
thread by: ShishCoBob | last post Jul 16 '05 by: David Robley
I'm currently using PHP Super Counter from: http://www.abspoel.com/roel-karin/download.php My biggest problem is that each time this script runs (aka has a count) it makes a query to an extreme big table (created by it) and sucks up a lot of processing power. Well today my mySQL server has been stuttering because of high traffic. Every...
0
2,619
thread by: Sven Ehret | last post Jul 16 '05 by: Sven Ehret
Hi, I am looking for a PostNuke module that lets my users bet on the national soccer league. Has anyone seen something similar? Using PostNuke 0.723. Thank you. -- Sven Ehret If things don't improve soon, you'd better ask them to stop helping you.
1
20,835
thread by: fartsniff | last post Jul 16 '05 by: James Sleeman
hello all. currently, this is how a line of my form is setup (names have been changed to protect the innocent ;) <form action="/modules.php?name=buyme&file=index&func=gimmecash" method="post"> which would of course pass it to the file on my normal http site (http://www.mydomain.com). if i wanted this form to pass to my secure site, ie.
3
4,809
thread by: Jamie Wright | last post Jul 16 '05 by: James Sleeman
I have been using PHP for a while now, although my knowledge of the inbuilt functions is pretty lacking. I am trying to remove a 'space' from the middle of a string. I reckon I could split the string at teh space, trim each string then join them, but this seems a little long winded. Is there a command to remove certain charachters? Or even...
6
8,939
thread by: S. Rhodes | last post Jul 16 '05 by: tranceport technology group
Hello everyone. I am TOTALLY baffled. PLEASE, I need some help here. In the event that one must deal with a name including an apostrophe...I am looking for an appropriate solution. The flow of data is that the name is entered in via a form text box, stored in a MySQL table and then read back into another form or echoed out as needed.
2
6,730
thread by: Mark Hewitt | last post Jul 16 '05 by: Mark Hewitt
Hi, I have a client who is wanting to compute UPS shipping charges for his orders. I believe it is possible to query a UPS service (well, something online, be it a normal cgi ro real web service) to compute actual shipping costs of parcels from within ones shopping cart script. Am I correct in this, does anybody know where I can find...
1
2,551
thread by: Marcus | last post Jul 16 '05 by: sotto
I am trying to auto-detect what folder a file is sitting in and based upon this info, query a MySQL database to get further information. I have been all over php.net and been through numerous examples, but I can't get my script to do exactly what I want... An example given on php.net regarding dirname() is as follows: dirname can be...
2
4,092
thread by: Steven | last post Jul 16 '05 by: Steven
I got a "Parse error: parse error in ..." in this line: if(empty($_POST){ ..... But if I fist assign $ssn=$_POST; and then if(empty($ssn){ ... it is working. Any advice? Thanks in advance.

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.