[PHP] PHP Page Refresh on Redirection

2003-01-27 Thread Phil
I have a PHP page with a form that submits to another PHP processing page. On completion of the PHP actions on the processing page, I have echoed into the page the javascript action of 'location.href=...' and the location is redirected to the PHP form page that starting the process. Both pages

[PHP] Starting sessions, registering variables, destroying sessions with global_variables off....

2003-01-24 Thread Phil Schwarzmann
I just switched from a 4.06 server with global_variables ON to a 4.22 with global_variables OFF Can someone give me a quick run down of how to set/unset variables and register/destroy sessions with PHP 4.22 (global_variables OFF). I've been all through the php.net manual and still

[PHP] Fw: I need my PHP script to call a TCL proc

2003-01-21 Thread Phil Powell
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:36 PM Subject: I need my PHP script to call a TCL proc From: [EMAIL PROTECTED] (Phil Powell) Newsgroups: comp.lang.tcl,comp.lang.php Subject: I need my PHP script to call a TCL proc

[PHP] How do I find email patterns in a query string in a text and urlescape them?

2003-01-21 Thread Phil Powell
If I have a text of string like this: $stuff = Hi my name is Phil, my email is [EMAIL PROTECTED] and you can find me at http://www.xx.yy?[EMAIL PROTECTED];; What I want to do is to validate all patterns resembling an email address EXCEPT those found within the query string of a URL. I would

[PHP] Security

2003-01-20 Thread Phil Ewington
and directories within their web root only? TIA Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)118 978 9500 F: +44 (0)118 978 4994 E: [EMAIL PROTECTED] W: http://www.43plc.com -- PHP General Mailing List (http://www.php.net

[PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
: If they select another file to upload, the old file is deleted and the new file uploaded. Any suggestions? Thanx Phil

[PHP] files no longer upload!

2003-01-20 Thread Phil Powell
I'm having a day, gang! I have done nothing to my code and now is_uploaded_file is constantly false, even when uploading a file every time. I dunno what to do, would someone want to look at my code and tell me what I did wrong; I'm out of ideas. Phil

Re: [PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
Dude, your solution failed! :( The image STILL caches even though on the server end it's deleted!! Even with a RANDOM string tacked on it STILL caches!!! Phil [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Aha! Something I can chime in on. I

[PHP] Re: Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Phil Powell
Tried that too, dude.. now the files are replicating themselves in the /profile/images folder! I am supposed to delete the old file and replace it with the new file, but instead I have old file new file, and the association between profile and image is incorrect. Phil Philip Hallstrom [EMAIL

[PHP] Can someone help me with this code please?

2003-01-15 Thread Phil Powell
below, takes up to 90 seconds to load because of the ASP script locking, in spite of my safeguards. Can anyone please help; I'm out of ideas. Thanx Phil ? require_once('/users/ppowell/web/php_global_vars.php'); // OPEN SOCKET CONNECTION TO BRINKSTER SET TO TIMEOUT IN 2 SECONDS $res

[PHP] Problems with require() and variables

2003-01-15 Thread Phil Powell
'); However, when display.php finishes being required, I lose all of my variables that I need for view.php. How do I retain them?? How can I ensure that these variables in display.php will also exist in view.php? Thanx Phil

[PHP] fsockopen() to remote URL: what if remote URL times out?

2003-01-10 Thread Phil Powell
contents from the remote site and post a default message instead? Just wondering Thanx Phil

[PHP] mysql_num_rows() error

2003-01-09 Thread Phil Powell
mySQL on my machine and am trying to see what I can do with it giving Win2K and IIS. AUGH! Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML File does not reflect changes upon reopen - HELP

2003-01-08 Thread Phil Powell
do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? Thanx Phil

[PHP] I can't code today to save my life! :(

2003-01-04 Thread Phil Powell
: if (strpos($REQUEST_URI, register.php) !== 0) { // you're in login.php } I don't know why I can't get this other than weekend stupidity, can someone help? Thanx Phil

[PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
it should do? Thanx Phil

[PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
is not passed into the corresponding variable. For example, if isLogin = 1, then $isLogin = 1 But if isRegistered = 0 then $isRegistered = {null} I do not understand why this happens, someone enlighten me! Phil

Re: [PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
I couldn't think of isset, so I winged it: if (strlen($var) 0) {...} Phil Michael Sims [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 4 Jan 2003 19:26:02 -0500, you wrote: Whenever the form variable is equal to 0, the value is no

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
CURL? I only understand CURL as a Vignette command, sorry, you lost me. Phil Michael J. Pawlowsky [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not sure I totally understand... But why not just call it like a web page using curl? *

[PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Phil Powell
? I am trying to read contents from nicknames.txt and split according to the newline character so that each nickname is an array element. What did I do wrong? :( Phil

[PHP] Session changes from version 4.06 to 4.22 ??

2002-12-28 Thread Phil Schwarzmann
I just switched from a web host who used version 4.06 to a web host who is using version 4.22 - Now none of my PHP scripts will start sessions properly. Did something change from version 4.06 to 4.22 concerning sessions?? I e-mailed my new web host and asked if they disabled sessionsthey

[PHP] Sorry, really stupid question...

2002-12-28 Thread Phil Powell
the nickname of phil and I add it to nicknames.txt as phil + \n. The next person adds his name as bob + \n. However, this happens: phil philbob Is it due to the way I'm adding to the file? Can someone show me how to append to a file properly without carrying over persistent existing data like

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread Phil Powell
I checked, and I am adding just bob. Turns out to be a wacky logic problem. nicknames.txt contains this: phil\n bob\n When bob leaves the chatroom nicknames.txt becomes: phil\n BUT.. apparently that's not it either; the carriage return is also somehow stripped out. So instead it's

[PHP] Fw: PHP script needs to timeout upon FOPEN to URL

2002-12-13 Thread Phil Powell
); if (!$file){ echo Timed out, try again later; } else { // do stuff } Problem is, when it attempts to connect to the remote server, it's supposed to time out after 2-5 seconds, but it doesn't, it just locks up :( Any suggestions? Phil

[PHP] fopen have a setTimeout feature?

2002-12-08 Thread Phil Powell
Can you set something like a setTimeout feature in fopen? That is, if you use fopen to open a URL for scraping, if that URL's server is down or doesn't respond in x seconds, can you set a feature to show an error message or a friendly error message indicating such? Thanx Phil

Re: [PHP] fopen have a setTimeout feature?

2002-12-08 Thread Phil Powell
Sorry, your code produced this error and I can't figure out how to debug it :( Warning: fopen(http://www3.brinkster.com/soa/val/profile/display.asp?showLeftNavBann er=1,r) - Error 0 in /users/ppowell/web/profiledisplay.php on line 4 Phil - Original Message - From: Tim Ward [EMAIL

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
the AddType line for php in httpd.conf and restarted Apache. If your file is test.php then the .php must be part of the AddType line. ...or you are viewing the page as file://foo.php rather than http://localhost/foo.php Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net

[PHP] How to override header info in mail()

2002-11-30 Thread Phil Powell
has already been set prior to emailing. Is there a way to overwrite only certain header information prior to emailing to ensure the content-type of the email being either text/plain or text/html? Just wondering Thanx Phil

Re: [PHP] Going Mad

2002-11-30 Thread Phil Driscoll
On Saturday 30 November 2002 5:32 pm, Andy Davey wrote: Hi Phil It took me a while to get the local host to show the apache welcome screen, but now that I have I am still unable to see the page, I have the file saved on my desktop, should I have the test.php file saved anywhere else? I

[PHP] File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
are not giving me a clear solution as to how to write to a file that does not yet exist that has to have the permissions of 0755 for both files. Thanx Phil

[PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
other folders with the same permissions as /chat. Phil Craig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... you must give the same permissions to the folder also. Phil Powell [EMAIL PROTECTED] wrote in message 0ca201c2947e$44690a80$dcbe6444@scandi

[PHP] What is the best site for PHP news, articles, resources etc....

2002-11-19 Thread Phil Schwarzmann
Let's say you had one site and one site only to get the latest PHP/MySQL news, articles, reviews, resources, tutorials, advanced stuff etc. What would it be?!?

[PHP] Has anyone used O'Reilly's Safari online book thingy for PHP/MySQL?

2002-11-19 Thread Phil Schwarzmann
Has anyone used book publisher O'Reilly's new Safari online book site for PHP/MySQL books? I was hoping to use it so I could download whole books and possibly print them out.is it capable of doing something like this or is it next to impossible?

[PHP] Are objects considered global or do they need registered in a session?

2002-11-19 Thread Phil Schwarzmann
When declaring a new object ( $obj=new Something; ), do they need to be then registered in a session ( session_register(obj); ) if you want to use them for a different script?

[PHP] PHP search engines

2002-11-17 Thread Phil Schwarzmann
So I would like to make a search engine for my site. Can you use PHP to do this? Or is another language/application/whatever more appropriate?? If so, can you give me links to where I can find information on this topic. Thanks!!

[PHP] I'm in need of a PHP web host recommendation

2002-11-15 Thread Phil Schwarzmann
I am quite unhappy with my current web host provider (www.infinitehost.com http://www.infinitehost.com/ ) and would like to hear some recommendations of some good companies that host PHP/MySQL and also JSP. I'm more than happy to shell out a few extra bucks to get some good service. Currently I

[PHP] arg parsing

2002-11-08 Thread phil
2.040 now it doesn't work becuase the arg does not get parsed. I am sure that this is a config issue but I do not know it - any assistance much appreciated. regards Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Let's say you have a simple PHP file that just displays a random number. When the user hits the submit button, the page will reload and display another random number. How often do you need to call mt_srand(); ? Just once? Or each time the page gets reloaded?

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
Yeah, I read that,I'm using PHP 4.04...so I do need to see the random generator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:35 AM To: Phil Schwarzmann; [EMAIL PROTECTED] Subject: Re: [PHP] seeding using mt_srand(); What

RE: [PHP] seeding using mt_srand();

2002-10-16 Thread Phil Schwarzmann
:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 3:40 PM To: 'Phil Schwarzmann'; [EMAIL PROTECTED] Subject: RE: [PHP] seeding using mt_srand(); Hi Phil, How often do you need to call mt_srand(); ? As of version 4.2.0 you don't have to call it at all. If your PHP installation is an earlier

[PHP] Getting the highest number in a column

2002-10-15 Thread Phil Schwarzmann
Using PHP and a MySQL database, I want to grab the highest number in a particular column. Right now I have this VERY inefficient code to grab this number, there's got to be a better way. Does anyone have any ideas?? Thanks!

[PHP] chmod - some files can be viewed, others cannot

2002-10-14 Thread Phil Powell
three were uploaded the exact same way too. Anyone want to solve this riddle? I am stumped as usual. Thanx Phil

[PHP] Register Globals

2002-10-14 Thread Phil Ewington
is register_globals still set to 'off'? TIA Phil Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU Tel: +44 (0)118 978 9500 Fax: +44 (0)118 978 4994 http://www.43plc.com

[PHP] Inserting special characters into text fields

2002-10-14 Thread Phil Schwarzmann
I need users to be able to insert special characters (ö and ä) into a text field. Unfortunately, English-speaking people do not have these keys on their keyboards. Currently, they are cutting and pasting these characters into the text boxes. I believe ASP can insert characters into text

[PHP] mt_rand doesn't seem random enough

2002-10-14 Thread Phil Schwarzmann
Maybe I'm wrong on this but mt_rand doesn't seem to be random enough. I'm on a PHP 4.04 server and here's my code.. function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 10); } mt_srand(make_seed()); $randval = mt_rand(); I

[PHP] How to setcookie with two domains

2002-10-14 Thread Phil Powell
to produce the desired results. Thanx Phil

[PHP] Inserting a variable into a mysql_query() statement

2002-10-14 Thread Phil Clark
I'm trying to insert the variable $hidden_manuf_id into a mysql_query() statement. If i do this: mysql_query(DELETE FROM product WHERE manufacturer=$hidden_manuf_id,$bb) or die(mysql_error()); PHP server doesn't see the variable because it is inside the string quotes. If I do this:

[PHP] How do you strip Header Info from displaying on your browser?

2002-10-02 Thread Phil Powell
for cookies or not. So, how can I get rid of the trash on my page? Thanx Phil

[PHP] Reading a PHP-as-CGI script into another PHP script

2002-09-30 Thread Phil Powell
then that I might be able to produce the contents of a uniquely-formed URL such as http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php into another PHP script since fopen and require() both do not seem to work in this case? Thanks Phil

[PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
']); ? Please someone tell me what I'm doing wrong :( Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
); // $path = /users/ppowell/web/my/images/; Warning: Unable to access /users/ppowell/web/my/images/ in /users/ppowell/web/my/process.php on line 27 Phil - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September 28

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
mkdir and uploading!! Phil - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 7:04 PM Subject: RE: [PHP] mkdir() failed: Permission denied _YOU_ don't need write permissions, the web server

[PHP] Need to get last element of 2-dimensional array

2002-09-28 Thread Phil Powell
The following produced a rather nasty parse error: echo ($idArray[0][sizeof($idArray[0])])); I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it? Thanx Phil

[PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
time I ran this script it set the cookie just fine; subsequent runnings of this script produce this error. What am I doing wrong, anyone? Thanx Phil

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
it. :( Phil John W. Holmes [EMAIL PROTECTED] wrote in message 000e01c26754$cf27c8c0$7c02a8c0@coconut">news:000e01c26754$cf27c8c0$7c02a8c0@coconut... You can only set a cookie before any output is send to the browser. A newline, space, or html, etc, is output to the browser. Redesign your

Re: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
Never mind, I found it.. *sigh* I forgot about phpinfo().. Everything works now, cookies, redirection, everything.. thanx! Phil - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September

Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Phil Driscoll
? Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
=maroon»\1«/font», $string); This results in opening and closing script/script tags being replaced with a square being wrapped in font tags. I have this working in Cold Fusion but cannot seem to convert my scripts to PHP. Can anyone help? TIA Phil Ewington. -- PHP General Mailing List (http

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
What's strange is that doing an ord($string) returns 171, which is a '1/2' char. So why does PHP convert the pattern match?? -Original Message- From: Phil Ewington [mailto:[EMAIL PROTECTED]] Sent: 03 August 2002 17:04 To: PHP General Subject: [PHP] RegEx (back referencing) Hi

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
. - Original Message - From: Phil Ewington [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 5:52 PM Subject: RE: [PHP] RegEx (back referencing) \\1 outputs nothing at all wrapped in font tags and closing tags \ wrapped in font tags :o

[PHP] querying for one specific row number

2002-07-17 Thread Phil Schwarzmann
I want query my mysql table and get one particular row. So let's say my table had 5 rows (entries) in it, and I want to pull just row #2, how would I do this?? THANKS!!

[PHP] Queries - Sometimes I need to use apostrophe, other times idon't

2002-07-17 Thread Phil Schwarzmann
When running a mysql_query, sometimes i need to have apostrophes surrounding variables...other times i don't example... $query = SELECT * FROM table WHERE id='$id'; or $query = SELECT * FROM table WHERE id=$id; ...it kinda seems random when it wants apostrophes and when it doesn't want

[PHP] storing data from multi-line text boxes into mysql

2002-07-08 Thread Phil Schwarzmann
I want to store user inputed data from a HTML multi-line text box into a mysql database. But unfortunately, it doesn't remember any of the hard returnsis there a painless why to do this? Thanks!

[PHP] uploading a file via php - i need some simple code

2002-07-03 Thread Phil Schwarzmann
I am having the worst trouble trying to write a tiny simple script that will upload a file. Below is my code - can anyone tell me why it's not working HTML form name=form1 method=post action=upload.php enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=1000 input

[PHP] upgrading php...

2002-07-02 Thread Phil Schwarzmann
Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth my time and trouble to upgrade to a newer version of PHP? Is this hard to do? Any links to info on how to upgrade ?? Thanks!

[PHP] upload problems - unable to open 'none'

2002-07-02 Thread Phil Schwarzmann
Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../upload3.php on line 7 why is it saying 'none' ??

[PHP] NEVERMIND MY LAST POST ABOUT UPLOAD ERRORS

2002-07-02 Thread Phil Schwarzmann
Sorry about thatI beefed.

[PHP] uploading a file

2002-07-01 Thread Phil Schwarzmann
anyone have some code they can send me that will successfully upload a file? I've got all the HTML correct, it's just that my PHP code ain't working. Thanks! Phil

[PHP] uploading a file - here is the error message...

2002-07-01 Thread Phil Schwarzmann
Here is the error I'm receiving when attempting to upload a file Warning: Unable to create 'temp/test.txt': Permission denied in /home/.../www/website/upload3.php on line 11 ..could it be that my web host isn't giving me permissions to upload files ?

Re: [PHP] uploading a file - here is the error message...

2002-07-01 Thread Phil Schwarzmann
I took your advice first and tried move_uploaded_file and it kept saying It barfed (hehe). Then I switched to copY and got this new error. Thaks for your help!! [EMAIL PROTECTED] 07/01/02 01:29PM Hi Phil, first thing u should do is to check permission of this directory (CHMOD

[PHP] logging onto phpmyadmin

2002-06-26 Thread Phil Schwarzmann
now that I put a root password on mysql, I can no longer log onto phpmyadmin. It mentions something about the lib.inc file, it looks like I need to edit the file and add in my new username/password. But when I open lib.inc, it looks like a bunch of garbage on the screen, it's not normal text.

[PHP] server security

2002-06-26 Thread Phil Schwarzmann
Okay, so with the help of all you, I have successfully set up a php server with apache/mysql on windows 98. THANK YOU!! What else can I do to make this server secure? What is this SSL business all about? Any extra programs I should add that might help? Thanks!!

[PHP] php not remembering a session

2002-06-25 Thread Phil Schwarzmann
I just setup php/apache/mysql on a win98 machine and everything is working great except session control. It won't record a session or any session variables. Everything else is working well. It was giving me an error because i didn't have a tmp folder on the root of my C drive. Now I don't

[PHP] upgrading phpmyadmin...

2002-06-25 Thread Phil Schwarzmann
Is it pretty easy to upgrade phpmyadmin from 2.1 to the latest version? Anyone run in to any difficulty?

[PHP] I changed my root password and now can't connect to MySQL

2002-06-25 Thread Phil Schwarzmann
Okay, so I changed my root password using this command C:\ C:\mysql\bin\mysql mysql mysql DELETE FROM user WHERE Host='localhost' AND User=''; mysql QUIT C:\ C:\mysql\bin\mysqladmin reload C:\ C:\mysql\bin\mysqladmin -u root password my_password Then I went into my dbconnect.inc file and

[PHP] imagecopyresized() problems

2002-06-24 Thread Phil Ewington
($destImage); All that happens is that I get an identical copy of the image, and not a resized one. TIA Phil Ewington. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP server error...

2002-06-24 Thread Phil Schwarzmann
Okay, I am a total pussy and gave up on Linux to run my PHP server. I'm back to Win98, and everything is working fine except... For some reason, anytime I have a script that tries to set/access a session variable, I get this error Warning: open(/tmp\sess_slkfjsdkjfljfk, O_RDWR) failed: m

[PHP] finding the highest primary key in a table

2002-06-24 Thread Phil Schwarzmann
I want to find the number of the highest primary key in a particular MySQL table. I could do something like... $query = SELECT id FROM table; ...then run the query, then create a loop and check all the ID's (primary key) for the highest... ...but that seems like way too much. Any ideas ??

[PHP] what is wrong with this simple query?

2002-06-24 Thread Phil Schwarzmann
Here is my code... $query = SELECT max(id) FROM bc_topic; $result = mysql_query($query); $temp = mysql_result($result, 0, id); - this is line 8 echo $temp[id]; Here is the error I get ... Warning: id not found in MySQL result index 2 in /.../upload2.php on line 8 What am I doing wrong here?

[PHP] === and @

2002-06-23 Thread Phil Schwarzmann
What exactly happens when you put three equal-signs together instead of just one or two? I've seen this in other people's code, then search php.net and found nothing. Also, what happens when you put a thingy in front of a function? Does it surpress the errors? Thanks!!

[PHP] copying the structure of a blank table in mysql

2002-06-23 Thread Phil Schwarzmann
Anyone have a link (or the code) to copy the structure of a blank table to a new table using mysql? Thanks!!

[PHP] rounding a number

2002-06-23 Thread Phil Schwarzmann
I want to round a number to the nearest decimal place... if the number is 4.623, I want it to display 4.6 if the number is 2.36, I want it to display 2.7 Is there a function that does this? round(), ceil(), floor() don't do this and I've checked through all the math functions in my

[PHP] Current date time in MySQL datetime format

2002-06-22 Thread Phil Schwarzmann
I want to produce the current date time in a MySQL datetime format that I can then put into a MySQL database. How do I do this? I've tried mktime() and getdate() but it's not working. Thanks!!

[PHP] UPDATE mysql

2002-06-22 Thread Phil Schwarzmann
I can't get UPDATE to work properly when querying MySQL. $query = UPDATE $table SET field1='$var1' WHERE id='$id'; I want to update one field of one row in a table. Is this syntax correct?

[PHP] Red Hat PHP

2002-06-20 Thread Phil Schwarzmann
I'm trying to install a PHP server on Linux Red Hat 7.3 I have a reformatted PC and some burned disks of RH 7.3 that my CD-ROM won't detect when it reboots. How do I get RH 7.3 loaded? I've tried using the rawrite.exe function but it always hangs at a DOS prompt when I run this file.

[PHP] include() question...

2002-06-20 Thread Phil Schwarzmann
Okay, let's say I want to send a user to a certain webpage... usually I would use... include(website.php); but, if i want to send a user to a website along with a variable like... $temp = website.php?var=.$var; include($temp); ...this doesn't work. any suggestions?? THANKS!!

[PHP] phpmyadmin - moving data from one database to another

2002-06-18 Thread Phil Schwarzmann
The lazy and worthless a-holes at www.infinitehost.com (my host server) are forcing me to move all my MySQL data from one server to another because they are too dumb to fix it. I need to use phpmyadmin to move the data but i'm not %100 sure how to do it. There are some view dump commands. It

[PHP] setting up a php/mysql server on linux

2002-06-18 Thread Phil Schwarzmann
I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I have some instructions to install php/mysql/apache and have a couple questions... Which is better, GNOME or KDE? I seem to like the feel of KDE better. Does Apache or php or mysql already come preloaded on Linux Red

[PHP] linux redhat rpm packages

2002-06-18 Thread Phil Schwarzmann
What exactly are these linux redhat rpm packages? Is this an 'easier' way to install mysql/php ??

[PHP] php server - ive installed linux red hat 7.2 — now what?!?

2002-06-18 Thread Phil Schwarzmann
okay, so I've installed linux red hat 7.2 and it's working well! ive heard that php/apache/mysql comes preinstalled with red hat. what do i need to do to get php/mysql up and running? also, how do i figure out my linux box's IP address? ipconfig doesn't work hehe. Thanks for your time!!!

[PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Phil Schwarzmann
i have some php files in /var/www/html/ and none of the php is working properly. all i've done so far is installed Linux Red Hat 7.2 and php/mysql/apache is supposedly already installed with Redhat. How do I get this stuff configured? Anyone have a nice link?

[PHP] Linux Redhat 7.2 PHP with a formatted PC - Need some help

2002-06-18 Thread Phil Schwarzmann
I have a nice formatted PC Linux Redhat 7.2 that I got at a local retail store for $60. All I want this PC to do is be a PHP/MySQL server and also be a FTP server. I've seen various complicated (complicated cause i'm new to linux) detailed instructions to installed php/mysql/apache but

Re: [PHP] Linux Redhat 7.2 PHP with a formatted PC - Needsome help

2002-06-18 Thread Phil Schwarzmann
On Tue, 18 Jun 2002, Phil Schwarzmann wrote: I have a nice formatted PC Linux Redhat 7.2 that I got at a local retail store for $60. All I want this PC to do is be a PHP/MySQL server and also be a FTP server. I've seen various complicated (complicated cause i'm new to linux) detailed

[PHP] URGENT

2002-06-18 Thread Phil Reid
as before. Thanks a lot. Phil Reid

[PHP] PHP Installation Win98/Apache error....

2002-06-14 Thread Phil Schwarzmann
So I'm trying to install PHP on win98 with Apache2. I got these nice instructions from... http://www.webmasterbase.com/article.php?pid=30aid=525 After I make the following addition to my httpd.conf file, I get an error when I try to start Apache again... ADDITION TO HTTPD.CONF: LoadModule

[PHP] php server on Windows

2002-06-13 Thread Phil Schwarzmann
So I'm thinking about setting up a little php/mysql web server here at work and want to use Windows as my platform instead of Linux and have a couple questions... I know that PHP on Windows has some limitations as compared to Linux. What are these limitations? Which version of Windows would

[PHP] while...

2002-06-12 Thread Phil Reid
], James Laird Website Order, $message); If anyone can be of assistance it would be very much appreciated. Regards, Phil Reid

[PHP] Creatng a PHP chatroom

2002-06-12 Thread Phil Powell
I am intrested in creating a chatroom entirely in PHP involving streaming text. Where can someone help me to find such a means of doing so? Thanx Phil http://valsignalandet.com

[PHP] mail() function hangs

2002-06-10 Thread Phil Schwarzmann
Whenever a user runs the mail function, an e-mail messsage is sent properly but the page just hangs. Has anyone else had this problem?

[PHP] multi-line textfields don't post

2002-06-10 Thread Phil Schwarzmann
Whenever I use a mult-line textfield, the data inside doesn't transfer over. But single-line textfields work just fine. how do i fix this?

<    1   2   3   4   5   >