[PHP] Query Returning Error

2004-10-13 Thread Harlequin
Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error, unexpected '=' in sample.php on line 2 [CODE] // Authenticate User: Query01 = SELECT * FROM Users WHERE

Re: [PHP] Query Returning Error

2004-10-13 Thread Jason Wong
On Wednesday 13 October 2004 15:32, Harlequin wrote: this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: Change everything back to what it was a few minutes ago? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] Query Returning Error

2004-10-13 Thread Harlequin
Doh...! thanks mate. -- - Michael Mason Arras People www.arraspeople.co.uk - Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wednesday 13 October 2004 15:32, Harlequin wrote: this is such a basic question I'm

Re: [PHP] Query Returning Error

2004-10-13 Thread Jason Davidson
should Query01 have a $ in front of it, i assume its a var Jason Harlequin [EMAIL PROTECTED] wrote: Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error,

Re: [PHP] Query Returning Error

2004-10-13 Thread Jordi Canals
On Wed, 13 Oct 2004 08:32:17 +0100, Harlequin [EMAIL PROTECTED] wrote: Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error, unexpected '=' in sample.php on line 2

Re: [PHP] Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST

2004-10-13 Thread Jason Wong
On Wednesday 13 October 2004 15:08, Francis Chang wrote: [snip] access the post variables. My question is, is the $HTTP_POST_VARS global still populated for backwards compatibility? In other words, if I have an old script that has the following piece of code running on a PHP5.0 environment

[PHP] PEAR::Auth

2004-10-13 Thread 22
Concerning PEAR::Auth I can't tune interaction between PEAR::Auth and MySQL auth table . Typical code from manual ?php $dbtype = 'mysql'; $dbhost = 'localhost'; $dbuser = ''; $dbpass = ''; $dbname = cosmos; $dsn = $dbtype://$dbuser:[EMAIL PROTECTED]/$dbname; $conn = mysql_connect($dbhost,

[PHP] submission before

2004-10-13 Thread Bruno Santos
hello all. I've a question that i might think is not much related with PHP, even the pages are PHP and everything is working with PHP. I've a FORM in my site to be written by the user, but, i need to know before the value of a field to fill another field in the form depending with the value of

Re: [PHP] submission before

2004-10-13 Thread Gareth Williams
I think you'll find that this is more of a Javascript problem than a PHP one. On 13 Oct 2004, at 12:11, Bruno Santos wrote: hello all. I've a question that i might think is not much related with PHP, even the pages are PHP and everything is working with PHP. I've a FORM in my site to be

RE: [PHP] Query Returning Error

2004-10-13 Thread Graham Cossey
Besides adding $ to Query01, I have had little luck in the past when using $_POST or $_GET directly in an evaluated string. If you are still having problems, try something like: ?php $user = $_POST['TXT_UserID']; $pwd = $_POST['TXT_UserPassword']; // Authenticate User: $Query01 = SELECT *

Re: [PHP] Query Returning Error

2004-10-13 Thread Chris Dowell
You can get around this problem more easily by putting your variables inside curly brackets when they appear inside strings. See here: http://uk.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex Or as an example: ?php $Query01 = SELECT * FROM Users WHERE UserID

RE: [PHP] Query Returning Error

2004-10-13 Thread Graham Cossey
Thanks Chris, that'll help keep my code a bit more 'compact'. (Sorry Harlequin, kinda hijacked your post here) Graham -Original Message- From: Chris Dowell [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 11:57 To: [EMAIL PROTECTED] Subject: Re: [PHP] Query Returning Error You can

[PHP] passing GET parameter that has '' sign

2004-10-13 Thread Suka Ada, I Nyoman
hi, I am wondering how do we pass a GET value that has '' sign.. let's say I have this: process.php?mode=testurl=http://someurl.com/index.php?a=10b=200 that way, process.php will have three variables: $_GET['mode'] ( = 'test' ) $_GET['url'] ( = 'http://someurl.com/index.php?a=10' ) $_GET['b']

RE: [PHP] Unsubscribe.

2004-10-13 Thread Jay Blanchard
[snip] Been trying to unsubscribe this email account for days now and now go. Anyone on this list have access to remove me? [/snip] And you have clicked on the unsub link in the e-mail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing GET parameter that has '' sign

2004-10-13 Thread Suka Ada, I Nyoman
that solved it! thanks alot Stefan. -Guido Stefan Dengscherz wrote: Hello, you might try using the urlencoded version of the '' sign which is '%26'. Works perfectly for me ;) Best regards, -sd On Wed, Oct 13, 2004 at 06:23:25PM +0800, Suka Ada, I Nyoman wrote: hi, I am wondering how do we pass a

RE: [PHP] Query Returning Error

2004-10-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Chris Dowell [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 11:57 Note also that you didn't quote the index you were using inside the

Re: [PHP] passing GET parameter that has '' sign

2004-10-13 Thread Sune Rievers
input must be urlencoded - see http://www.php.net/urlencode for details. Regards, Sune Rievers On Wed, 13 Oct 2004 18:23:25 +0800, Suka Ada, I Nyoman [EMAIL PROTECTED] wrote: hi, I am wondering how do we pass a GET value that has '' sign.. let's say I have this:

[PHP] PHP tp PDF

2004-10-13 Thread Angelo Zanetti
Hi all, Im sure this has been asked before. Im about to start development of an export section of an intranet where the invoices generated are exported to a PDF. I have looked at PDFlib, however I do not wish to pay for the licence cost, so Im looking for a free alternative, I've found FPDF

RE: [PHP] PHP tp PDF

2004-10-13 Thread Jay Blanchard
[snip] Is FPDF a suitable replacement to PDFlib or should I be looking to use another library? Any other comments are welcome about FPDF. [/snip] Love it, use it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using HTTP/PUT with PHP Apache Any browser in the whole world that works properly??????

2004-10-13 Thread Chris Dowell
Guys According to the docs, you need to use either php://stdin or php://input to read from files uploaded via PUT, however I'm unable to get even that far. My HTML form is as shown: form action=index.php method=put enctype=multipart/form-data input type=file name=putfile /input type=submit /

Re: [PHP] Using HTTP/PUT with PHP Apache Any browser in the whole world that works properly??????

2004-10-13 Thread John Nichel
Chris Dowell wrote: Guys According to the docs, you need to use either php://stdin or php://input to read from files uploaded via PUT, however I'm unable to get even that far. My HTML form is as shown: form action=index.php method=put enctype=multipart/form-data input type=file name=putfile

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
How exactly would I change the mime headers? ~Philip On Oct 12, 2004, at 5:07 PM, Vail, Warren wrote: Have you tried changing your file name to project.htm but continue issuing the mime headers for excel? Warren Vail -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED]

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Chris Dowell
Header(Content-type: application/ms-excel); or whatever the content type should be (on IE you can probably get away with application/octet-stream as it bases its decisions of file extensions for a lot of things). HTH Chris Philip Thompson wrote: How exactly would I change the mime headers?

Re: [PHP] Using HTTP/PUT with PHP Apache Any browser in the whole world that works properly??????

2004-10-13 Thread Chris Dowell
I could But on massive file uploads the various gateways between clients and server are timing out. I've no evidence that PUT would help me solve this problem, but it's an avenue I thought worth pursuing, as the whole point of the PUT method is to send large quantities of data to a server. I am

Re: [PHP] detecting ssl

2004-10-13 Thread Matt M.
It worked for me, for thousands of others, but not for everybody. Some people just could not use the site anymore. So I guess the SERVER_PORT var can not necessarily be count on. Has anybody an idea how to overcome this? try if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS'])

Re: [PHP] Safe mode imagecreatefromjpeg

2004-10-13 Thread Marek Kilimajer
Paulo JF Silva wrote: Hi, I have PHP 4.3.5 and safe mode on. When I create a new image with imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user. [this is in a shared host]. I would like to know if there is any way to create the image with my user... I can workaround mkdir

[PHP] reg. expressions

2004-10-13 Thread Afan Pasalic
Hi, on one place I have string something (something_2) I have to take out of the string everything in brackets and brackets as well. probably I will need to use Regular Expression Functions but I'm really bad with them :) Please, any help! -afan -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
Chris, as you may have (or may have not) noticed, I did that. Look at my original email. I wasn't sure if there was more to it than that. ~Philip On Oct 13, 2004, at 8:34 AM, Chris Dowell wrote: Header(Content-type: application/ms-excel); or whatever the content type should be (on IE you can

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Chris Dowell
meek / sorry [skulks off into dark corner to cry] Philip Thompson wrote: Chris, as you may have (or may have not) noticed, I did that. Look at my original email. I wasn't sure if there was more to it than that. ~Philip On Oct 13, 2004, at 8:34 AM, Chris Dowell wrote: Header(Content-type:

Re: [PHP] reg. expressions

2004-10-13 Thread Matt M.
on one place I have string something (something_2) I have to take out of the string everything in brackets and brackets as well. probably I will need to use Regular Expression Functions but I'm really bad with them :) $string = something (something_2); $pattern = /\(.*\)/; $replacement = ;

Re: [PHP] reg. expressions

2004-10-13 Thread Afan Pasalic
That was fast! :) Thanks Matt -afan Matt M. wrote: on one place I have string something (something_2) I have to take out of the string everything in brackets and brackets as well. probably I will need to use Regular Expression Functions but I'm really bad with them :) $string = something

[PHP] time

2004-10-13 Thread Jerry Swanson
I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? TH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread Gryffyn, Trevor
Philip Thompson wrote: - ?php header('Content-Type: application/ms-excel'); header('Content-Disposition: attachment; filename=project.xls'); ? table tr tdSomething/td /tdSomething else/td /tr /table - I just want it

Re: [PHP] Quick imageSize question

2004-10-13 Thread Stefan Dengscherz
Hello, that's usually not possible because your webserver can't access the image on your computer; a possible solution might be to determine the image size via javascript and submit it with the form, so you can accept or deny the image upload in your php script - problem: with javascript running

Re: [PHP] Quick imageSize question

2004-10-13 Thread Mag
Hey, Dont worry about talking crap, I took that risk when I started this thread :-) I was hopeing that maybe the image would have the info incoded in it which php could read before going through the uploador something like that. I too am not really sure if its possible, but am hopeing the

Re: [PHP] time

2004-10-13 Thread Robby Russell
On Wed, 2004-10-13 at 10:31 -0400, Jerry Swanson wrote: I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? TH every 24? hours? minutes? Are you going to be running a script all the time to do this? You might want to

Re: [PHP] time

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 10:31:54 -0400, Jerry Swanson [EMAIL PROTECTED] wrote: I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? Your question is more appropriate for php-db or a MySQL list serv. I'm not sure why you need to

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Chris Dowell
In an attempt to make amends, have you tried PEAR's Spreadsheet_Excel_Writer? http://pear.php.net/package/Spreadsheet_Excel_Writer It certainly works, we used it last week (although I have no *personal* experience of it) Cheers Chris Chris Dowell wrote: meek / sorry [skulks off into dark

Re: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
On Oct 13, 2004, at 10:40 AM, Gryffyn, Trevor wrote: To all who've helped. Thanks for your input. [embarrassment] Truthfully, when I gave that example in my original email, I didn't try that specific one. But it did work for me also when I attempted that one. [/embarrassment] The reason I was

Re: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread John Holmes
Philip Thompson wrote: Well, whenever I click on the link to export to excel (in IE), a File Download box pops up. It says the 'File name: toexcel.php' and the 'File type: ' (blank). It asks if I want to open or save. However, the File name should not be toexcel.php (that's the page), it should

[PHP] Security patch from 4.3.8 to 4.3.9

2004-10-13 Thread Federico Petronio
Hello, I would like to know if there is a patch just for the security fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it. Thank you... Federico Petronio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail problems - phpinfo information

2004-10-13 Thread Jed R. Brubaker
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed

[PHP] php err msg/issue...

2004-10-13 Thread bruce
hi... i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, on a linux rh8.0 system. i believe the code was written for php4. the code is: if($rec) { $rs-append($setDefaults); $rs-rows[$rs-pos]-fields=$rec; generates err msg... $rs-rows[$rs-pos]-id=-1; } $rec = Array

Re: [PHP] reg. expressions

2004-10-13 Thread John Holmes
Matt M. wrote: on one place I have string something (something_2) I have to take out of the string everything in brackets and brackets as well. probably I will need to use Regular Expression Functions but I'm really bad with them :) $string = something (something_2); $pattern = /\(.*\)/;

Re: [PHP] php err msg/issue...

2004-10-13 Thread Jason Davidson
I gather $rec is empty.. :) make sure there is something in it before you assign it to that object member. Jason [EMAIL PROTECTED] wrote: hi... i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, on a linux rh8.0 system. i believe the code was written for

Re: [PHP] reg. expressions

2004-10-13 Thread Afan Pasalic
In my case it will be actually product name (product number) and always the same. That means Matt's code will do exactly what I need. But, thanks for your post - could happen to use that on other place :) Thanks John -afan John Holmes wrote: Matt M. wrote: on one place I have string something

RE: [PHP] Security patch from 4.3.8 to 4.3.9

2004-10-13 Thread Jay Blanchard
[snip] Hello, I would like to know if there is a patch just for the security fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it. [/snip] Looking at http://www.php/net/downloads I do not see one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] php err msg/issue...

2004-10-13 Thread bruce
$rec is not empty jason... 1st, if $rec was empty.. the 'if' section would not be called, and the err would not be thrown 2nd.. i printed the value of '$rec' below the 'if' block of code... but.. umm thanks... -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED]

RE: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jay Blanchard
[snip] ... making me wonder if a local sendmail is handling the requests instead. With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? [/snip] From http://www.php.net/mail, something you have not read apparently For the Mail functions to

Re: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
On Oct 13, 2004, at 11:30 AM, John Holmes wrote: Philip Thompson wrote: Well, whenever I click on the link to export to excel (in IE), a File Download box pops up. It says the 'File name: toexcel.php' and the 'File type: ' (blank). It asks if I want to open or save. However, the File name

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is

Re: [PHP] php err msg/issue...

2004-10-13 Thread Curt Zirzow
* Thus wrote bruce: hi... i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, on a linux rh8.0 system. i believe the code was written for php4. the code is: if($rec) { $rs-append($setDefaults); $rs-rows[$rs-pos]-fields=$rec; generates err msg... ...

Re: [PHP] php err msg/issue...

2004-10-13 Thread Matthew Sims
hi... i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, on a linux rh8.0 system. i believe the code was written for php4. the code is: if($rec) { $rs-append($setDefaults); $rs-rows[$rs-pos]-fields=$rec; generates err msg... $rs-rows[$rs-pos]-id=-1; }

RE: [PHP] Exporting HTML to Excel

2004-10-13 Thread Vail, Warren
header('Content-Type: application/ms-excel'); header('Content-Disposition: attachment; filename=project.htm'); ? AAA used by excel to determine translation, I believe I believe the Content-Type is referred to as a mime header (8-}), I

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
Jed R. Brubaker wrote: I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jed R. Brubaker
So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? That is why I posted. I apologize if I didn't make it clear. I have read all about mail, and even used the fantastic Lemos MIME

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
Jay Blanchard wrote: From http://www.php.net/mail, something you have not read apparently Pt. Read? Why would I do that? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] php err msg/issue...

2004-10-13 Thread bruce
curt... when i print $rs, i get the following: displaying $rs shows that $rs is: ResultSet Object ( [colNames] = Array ( [0] = id [1] = username [2] = password [3] = email [4] = is_super ) [colAliases] = Array ( ) [colTables] = Array ( ) [colTableAliases] = Array ( ) [colTypes] = Array ( [0] =

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
Jed R. Brubaker wrote: So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? No. snip Given the paths phpinfo is reporting, is there anyway that the system could somehow still be using

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread bbonkosk
- Original Message - From: Jed R. Brubaker [EMAIL PROTECTED] Date: Wednesday, October 13, 2004 1:21 pm Subject: Re: [PHP] mail problems - phpinfo information So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? That is why I posted. I apologize if I didn't make it clear. I have read all about mail, and even used the fantastic Lemos MIME

[PHP] Form Validation

2004-10-13 Thread Huang, Ou
I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started learning PHP, so don't have much experience on

[PHP] SSI and PHP

2004-10-13 Thread j kensler
I've got to use some server side includes (and some SETs). And PHP is set up as a CGI program. If I include the php page from the .shtml page, the php page cannot receive queries. .php files are not set up to process these includes. And of course virtual(), etc. do not work because PHP is set

RE: [PHP] Form Validation

2004-10-13 Thread Pablo Gosse
Huang, Ou wrote: I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started learning PHP, so don't

[PHP] Re: Form Validation

2004-10-13 Thread Manuel Lemos
Hello, On 10/13/2004 03:03 PM, Ou Huang wrote: I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started

RE: [PHP] Unsubscribe.

2004-10-13 Thread The Snake from Hell!
Yes. Try yourself. All 3 ways provided to unsubscribe do no work. Brad [snip]Been trying to unsubscribe this email account for days nowand now go. Anyone on this list have access to remove me? [/snip] And you have clicked on the unsub link in the e-mail? -- PHP General Mailing List

Re: [PHP] SSI and PHP

2004-10-13 Thread Dan Joseph
I've got to use some server side includes (and some SETs). And PHP is set up as a CGI program. If I include the php page from the .shtml page, the php page cannot receive queries. .php files are not set up to process these includes. And of course virtual(), etc. do not work because PHP

[PHP] Re: mail problems - phpinfo information

2004-10-13 Thread Manuel Lemos
Hello, On 10/13/2004 01:41 PM, Jed R. Brubaker wrote: I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right

Re: [PHP] Form Validation

2004-10-13 Thread John Nichel
Huang, Ou wrote: I am currently working on a newsletter mailing list project and developed a form in php. I would like to validate before it is submitted. What would be the best way to validate a form? Write your own routines or using a form validator. I just started learning PHP, so don't have

Re: [PHP] Unsubscribe.

2004-10-13 Thread John Nichel
The Snake from Hell! wrote: Yes. Try yourself. All 3 ways provided to unsubscribe do no work. Just worked for me. I'm subscribed with two email address...one for home, and one for work...and unsubscribed the home one. Emails kept coming thru to the work address, but no more to the home

[PHP] Image upload not working correctly

2004-10-13 Thread Dave Grant
Hello. I am working on a rather large form for my work that accepts, among other things, 2 images, one smaller one 65 x 93 pixels, and a larger one 105 x 150 pixels, both in JPG format. Let me run through the whole process, showing my code. I use simple, standard HTML for the form: input

[PHP] Installing PHP 5.0.2 on Fedora Core 2

2004-10-13 Thread Don
Hi, I'm getting an error trying to install PHP 5.0.2 on a fresh Fedora Core 2 installation: Sorry, I cannot run apxs apxs was not found I verified this by searching the drive, it is not there. Is Apache installed by default without using --enable-so ? If so, what can I do? Thanks,

Re: [PHP] ezmlm-sub or alternative

2004-10-13 Thread Mark Hubert
Thanks so much for the insight which is a much simpler way. I successfully set up a test page (a form) that takes email to, from, subject and body and sends it. ?php $emailto=$_GET['emailto']; $emailfrom=$_GET['emailfrom']; $emailsub=$_GET['emailsub']; $emailbody=$_GET['emailbody']; $headers =

[PHP] hy problems with php 5.01 installation !

2004-10-13 Thread Nicolae Serban
I try to install php 5.01 on Windows 2003 Server with Apache 2.052 ! I try to install as Module and as Cgi !! ( i restart the server if you asking of that :-) ) When i try an test.php ( just phpinfo(); ) in the web page apears just the code of the test.php !!! When i try to install as module i

[PHP] deleting multiple items from a database

2004-10-13 Thread Adil
Hey everyone, I'm trying to delete multiple records from a database using PHP. I have a file list page which shows each entry in the database with a checkbox next to it. At the bottom of the page is a Delete button. A user should be able to check as many items on the file list and hit delete

[PHP] .htaccess and .htpasswd

2004-10-13 Thread Afan Pasalic
# .htaccess AuthType Basic AuthName Restricted Area AuthUserFile /www/html/path/to/file/admin/.htpasswd require valid-user # .htpasswd Admin:ChqaxtiTH1e0E Both files are in same directory. Why it doesn't work? Can I use as AuthUserFile .htpasswd since they are in the same directory? I know its not

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Matthew Sims
# .htaccess AuthType Basic AuthName Restricted Area AuthUserFile /www/html/path/to/file/admin/.htpasswd require valid-user # .htpasswd Admin:ChqaxtiTH1e0E Both files are in same directory. Why it doesn't work? Can I use as AuthUserFile .htpasswd since they are in the same directory?

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Matt M.
try an apache mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Afan Pasalic
Oops! Sorry guy, sent to wrong place! I apology. :) -afan Matt M. wrote: try an apache mailing list. . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread John Nichel
Afan Pasalic wrote: # .htaccess AuthType Basic AuthName Restricted Area AuthUserFile /www/html/path/to/file/admin/.htpasswd require valid-user # .htpasswd Admin:ChqaxtiTH1e0E Both files are in same directory. Why it doesn't work? Can I use as AuthUserFile .htpasswd since they are in the same

Re: [PHP] .htaccess and .htpasswd

2004-10-13 Thread Afan Pasalic
Yes, I sent it on wrong place. :) Sorry. -afan Matthew Sims wrote: # .htaccess AuthType Basic AuthName Restricted Area AuthUserFile /www/html/path/to/file/admin/.htpasswd require valid-user # .htpasswd Admin:ChqaxtiTH1e0E Both files are in same directory. Why it doesn't work? Can I use as

RE: [PHP] deleting multiple items from a database

2004-10-13 Thread Jay Blanchard
[snip] function deleteFiles() { foreach($_POST['stack'] as $i) {//This should work but I can't tell if it is or isn't mysql_query(DELETE FROM uploads WHERE upload_id = . $i); } [/snip] Try print_r $_POST['stack'] and see what you get. -- PHP General Mailing List

Re: [PHP] php err msg/issue...

2004-10-13 Thread Curt Zirzow
* Thus wrote bruce: curt... when i print $rs, i get the following: displaying $rs shows that $rs is: ResultSet Object ( [rows] = Array ( ) [pos] = 0 ... when i print $rs-pos, i get '0' so are you saying that the code can't handle

Re: [PHP] Installing PHP 5.0.2 on Fedora Core 2

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 15:55:46 -0400, Don [EMAIL PROTECTED] wrote: I'm getting an error trying to install PHP 5.0.2 on a fresh Fedora Core 2 installation: Sorry, I cannot run apxs apxs was not found I verified this by searching the drive, it is not there. Is Apache installed by default

Re: [PHP] hy problems with php 5.01 installation !

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 23:06:29 +0300, Nicolae Serban [EMAIL PROTECTED] wrote: I try to install php 5.01 on Windows 2003 Server with Apache 2.052 ! I try to install as Module and as Cgi !! ( i restart the server if you asking of that :-) ) When i try an test.php ( just phpinfo(); ) in the web

Re: [PHP] deleting multiple items from a database

2004-10-13 Thread Robby Russell
On Wed, 2004-10-13 at 16:11 -0400, Adil wrote: function deleteFiles() { foreach($_POST['stack'] as $i) {//This should work but I can't tell if it is or isn't mysql_query(DELETE FROM uploads WHERE upload_id = . $i); } header(Location: http://; .

[PHP] rename() on NT

2004-10-13 Thread Jed R. Brubaker
Can this be done when the file already exists? cleong at organic dot com says 29-Mar-2000 04:36 rename() doesn't seem to overwrite files on NT. The behavior is an OS-dependent side-effect I guess. on the PHP site @ http://us2.php.net/manual/en/function.rename.php So this this true, or is

Re: [PHP] deleting multiple items from a database

2004-10-13 Thread Curt Zirzow
* Thus wrote Adil: As far as the code goes what I'm doing is retrieving each record from the database and assigning the value attribute of each checkbox the unique id from the database. From that point on, when a checkbox is checked and the delete button is pressed, I push each checked

[PHP] question about mkdir() and ownership permissions

2004-10-13 Thread Jason FB
PHP General List, I am trying to use mkdir() on a shared unix server to create a directory within my home space. I have to have the ability for my user on this server to upload to this folder, however I think that mkdir() creates the directory and makes it owned by the process running Apache

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 01:10, Matthew Sims wrote: The mail settings in php.ini is for Windows only. When using PHP on Unix/Linux, mail() always defaults to the sendmail binary on localhost. So you can ignore what it says in phpinfo. That's incorrect. The sendmail_path = setting is

Re: [PHP] Security patch from 4.3.8 to 4.3.9

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 00:55, Jay Blanchard wrote: [snip] Hello, I would like to know if there is a patch just for the security fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it. [/snip] Looking at http://www.php/net/downloads I do not see one. Maybe that's why the OP asked?

[PHP] Determine variable with the lowest value?

2004-10-13 Thread BOOT
Any help with this would be appreciated. I am trying to come up with something that will find which variable(s) have the lowest value and inidicate which variable this is. In the event that variables have an equally low value then it is to randomly pick one of the variables and idicate which this

Re: [PHP] Determine variable with the lowest value?

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 17:19:28 -0500, BOOT [EMAIL PROTECTED] wrote: the code should determine that $a and $b have the lowest value, and randomly pick one of them. if $a was = 1 instead then it would just pick $a Thanks for any suggestions! Use an array. -- Greg Donald Zend Certified

Re: [PHP] Determine variable with the lowest value?

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 06:19, BOOT wrote: [snip] I have been able to do this by means of if comparisons but the more I variables I add then the more complicated and messy it becomes. There has to be a simpler way. If it makes any difference, the variables could just as easily be array

Re: [PHP] ezmlm-sub or alternative

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 04:01, Mark Hubert wrote: However, when I send a message to subscribe to the EZMLM list, it sends ok, but doesn't get added to the list. When I send a test message to myself I noticed that the Return-path in the email sent is not what I set in my script, but that

Re: [PHP] question about mkdir() and ownership permissions

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 06:02, Jason FB wrote: Does anyone know how I can create a directory which is owned by my user account on this server-- or have any other creative suggetions? If you have it, use FTP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] Image upload not working correctly

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 02:40, Dave Grant wrote: echo Thumb image uploaded to .$thumbPath.br /\n; echo Full image uploaded to .$fullPath.br /\n; Do these look OK? Everything works fine, except that the images are simply not there when we go look for them. The best explanation I can

Re: [PHP] Form Validation

2004-10-13 Thread Mattias Thorslund
There are several JavaScript solutions for validating forms on the client side. Search on hotscripts.com and google.com. Client-side validation (in the browser) is useful, but you shouldn't depend on it to guarantee that the data that your users submit is valid. You should also validate the

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-13 Thread Mag
Hey Matt, /../imgs/blah.jpg should return http://www.textx.com/t1/t2/imgs/blah.jpg but its returning: http://www.textx.com/t1/t2/t3/imgs/blah.jpg and this: /../../imgs/blah.jpg should return: http://www.textx.com/t1/imgs/blah.jpg but its returning: