php-general Digest 9 Jan 2008 14:23:25 -0000 Issue 5225

2008-01-09 Thread php-general-digest-help
php-general Digest 9 Jan 2008 14:23:25 - Issue 5225 Topics (messages 266947 through 266965): Re: ereg help! 266947 by: Casey 266948 by: Chris 266949 by: steve 266954 by: Anup Shukla 266955 by: Richard Heyes Re: MSSQL 266950 by: Andrew Ballard

[PHP] Re: Can't find .php3 files

2008-01-09 Thread Peter Ford
Jim wrote: I'm sure this is a FAQ but I can't seem to come up with the right search keys to dig it out. I'm trying to help a friend migrate his application to php 5 from another system. The problem seems to be that he references files (require, include, etc) that have a .php3 extension,

Re: [PHP] ereg help!

2008-01-09 Thread Richard Heyes
$out = basename($file, .html) . .com; fairly limited i think, but simple. Nothing wrong with being simple, and therefore both fast and easy to understand by a wider audience. The only downer I can immediately think of though is that whitespace isn't accommodated, but who really ends a file

RE: [PHP] Can't find .php3 files

2008-01-09 Thread Ford, Mike
Chris wrote: I think you misunderstood. I have lots of file with things like require admin.php3 But there is no admin.php3 anywhere. There is however a file admin.php. Since this works on the old server then something on that system is translating a request for a .php3 file to

[PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. Thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES

Re: [PHP] ereg help!

2008-01-09 Thread Anup Shukla
steve wrote: On Tuesday 08 January 2008 20:30:29 Chris wrote: I usually use preg_* functions so here's my go: echo preg_replace('/\.php$/', '.com', $file); The '$' at the end makes sure it's a .php file and won't cause problems with files like xyz.php.txt . (otherwise I'd just use a

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Lester Caine
Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point when you know what you are

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Stut
Richard Heyes wrote: Lester Caine wrote: Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Do you mean phpsysinfo? http://phpsysinfo.sf.net/ Bingo, thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Richard Heyes
Lester Caine wrote: Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Jim
Ford, Mike wrote: Chris wrote: I think you misunderstood. I have lots of file with things like require admin.php3 But there is no admin.php3 anywhere. There is however a file admin.php. Since this works on the old server then something on that system is translating a request for a .php3

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Anup Shukla
Jim wrote: Hi, Mike, The include is more like require ../admin/admin.php3 I don't know exactly how Apache performs its magic so I wasn't sure that the request for an include file would even pass through Apache's hands. In my limited world, an include wouldn't have to involve Apache, just

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread Nisse Engström
On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse: No, there is quite a difference depending upon

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-09 Thread Michelle Konzack
Hi Daniel, Am 2008-01-04 18:31:00, schrieb Daniel Brown: Ignore that. It's a new script that is going to start running as of 4:00p EST on 11 January, 2008. It will summarize the number of messages to the list, then tell who posted how many, what size, et cetera. There may be one

RE: [PHP] Can't find .php3 files

2008-01-09 Thread Ford, Mike
On 09 January 2008 12:18, Anup Shukla wrote: Jim wrote: Hi, Mike, The include is more like require ../admin/admin.php3 I don't know exactly how Apache performs its magic so I wasn't sure that the request for an include file would even pass through Apache's hands. In my limited

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-09 Thread Daniel Brown
No, go back over the archives or digests and you'll see that it was supposed to be a once-per-week email for post tracking on the list that went haywire. It wound up sending over a hundred messages to the list, which - in my opinion - also indicates a flaw in the mailing list software. On

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Jim
Ford, Mike wrote: On 09 January 2008 12:18, Anup Shukla wrote: Jim wrote: Hi, Mike, The include is more like require ../admin/admin.php3 I don't know exactly how Apache performs its magic so I wasn't sure that the request for an include file would even pass through Apache's hands.

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-09 Thread Daniel Brown
On Jan 9, 2008 2:01 AM, Wolf [EMAIL PROTECTED] wrote: Looks like your cron job is set for every minute Don! Please disable it until you get the kinks worked out of it! That was all fixed last week, and no more messages have been sent since that night. My apologies once again to

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread tedd
At 1:19 PM +0100 1/9/08, Nisse Engström wrote: On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote: At 12:03 PM +0100 1/7/08, Nisse Engström wrote: How does the following pages compare? The display should be identical: http://luden.se/test/t-1252.html http://luden.se/test/t-utf8.html Nisse:

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Lester Caine
Richard Heyes wrote: Do you mean phpsysinfo? http://phpsysinfo.sf.net/ Bingo, thanks. I bet google works as well now :) THAT looks a very useful package and it's been sitting in the package list on all my Linux machines un-found. I've already got it set up on the local network! -- Lester

Re: [PHP] http_request

2008-01-09 Thread peeyush gulati
Thank you all for your replies. We just solved it down using HTTP_REQUEST. 1.What we did was using HTTP_REQUEST a request was send to login page with post data credentials like username, password and some other field if required. 2. Then using HTTP_RESPONSE the cookies that were being sent from

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-09 Thread Jochem Maas
Daniel Brown schreef: No, go back over the archives or digests and you'll see that it was supposed to be a once-per-week email for post tracking on the list that went haywire. It wound up sending over a hundred messages to the list, which - in my opinion - also indicates a flaw in the

[PHP] Re: [PHP-DB] forms and method POST - variables

2008-01-09 Thread Daniel Brown
On Jan 9, 2008 11:25 AM, Lukáš Moravec [EMAIL PROTECTED] wrote: Hi, I have one question about forms and php (which I use for Mysql too). Do I need for variables from any form in html and method POST (then in php script) to set these variables with: $variable=$_POST['variable']; [snip!]

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-09 Thread Daniel Brown
On Jan 9, 2008 1:45 PM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: No, go back over the archives or digests and you'll see that it was supposed to be a once-per-week email for post tracking on the list that went haywire. It wound up sending over a hundred messages to

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-09 Thread Nisse Engström
On Wed, 9 Jan 2008 10:30:59 -0500, tedd wrote: Yes, I said that there is no windows-1252 setting for Safari. It does not offer that named setting in it's list of text encodings available. There is no 1252 mentioned either -- however, that does not mean that it's not there under a

[PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Hi all, ok, I am a little bit new to the SOAP game, but I understand it, and am using it to talk to an outside API. The problem that I have is that the server that I am talking to (that is not in my control), will accept the following SOAP call ?xml version=1.0 encoding=utf-8?

[PHP] fgetcsv

2008-01-09 Thread Danny Brow
Hi Everyone, I'm trying to compare a value to the first field in a csv fILE (example of the data below). Using while takes too long and I can't figure out how to compare just one row at a time. I've tried some variations of the following. //Common for all trials $demoID = fopen(newDemoID.csv,

[PHP] Unable to override status code in certain installations..?

2008-01-09 Thread RavenWorks
Hello, I'm currently trying to create a system where a custom 404 ErrorDocument in PHP is able to 301 Redirect the browser in certain cases. This works fine on some servers, however, on some other servers the PHP script seems to be unable to replace the 404 header. Correctly overrides with

Re: [PHP] fgetcsv

2008-01-09 Thread Jim Lucas
Danny Brow wrote: Hi Everyone, I'm trying to compare a value to the first field in a csv fILE (example of the data below). Using while takes too long and I can't figure out how to compare just one row at a time. I've tried some variations of the following. //Common for all trials $demoID =

Re: [PHP] fgetcsv

2008-01-09 Thread Daniel Brown
On Jan 9, 2008 5:35 PM, Danny Brow [EMAIL PROTECTED] wrote: Hi Everyone, I'm trying to compare a value to the first field in a csv fILE (example of the data below). Using while takes too long and I can't figure out how to compare just one row at a time. I've tried some variations of the

Re: [PHP] fgetcsv

2008-01-09 Thread Chris
Danny Brow wrote: Hi Everyone, I'm trying to compare a value to the first field in a csv fILE (example of the data below). Using while takes too long and I can't figure out how to compare just one row at a time. I've tried some variations of the following. So are you trying to compare the

Re: [PHP] fgetcsv

2008-01-09 Thread Danny Brow
I need to compare the first field of each row. But this idea is shot to hell, i've been running one of the examples on the file and it's been about an hour+ already... 6500 records have to be checked... I think MySQL is calling my name right now. Thanks, Dan On Thu, 2008-01-10 at 09:59 +1100,

[PHP] PHP Jpeg Uploads Corrupting

2008-01-09 Thread Scott Wilcox
Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. Usually this works fine, but for some unknown reason I'm getting corrupted uploads. The corruption happens before any processing

Re: [PHP] fgetcsv

2008-01-09 Thread Jim Lucas
Danny Brow wrote: I need to compare the first field of each row. But this idea is shot to hell, i've been running one of the examples on the file and it's been about an hour+ already... 6500 records have to be checked... I think MySQL is calling my name right now. Thanks, Dan On Thu,

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-09 Thread Jim Lucas
Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. Usually this works fine, but for some unknown reason I'm getting corrupted uploads. The corruption happens

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-09 Thread Scott Wilcox
Jim Lucas wrote: Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a resize via GD, and then storing the image in a database. Usually this works fine, but for some unknown reason I'm getting corrupted uploads. The

RE: [PHP] fgetcsv

2008-01-09 Thread Bastien Koert
http://ca.php.net/manual/en/function.fgetcsv.php _ Discover new ways to stay in touch with Windows Live! Visit the City @ Live today! http://getyourliveid.ca/?icid=LIVEIDENCA006 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Jpeg Uploads Corrupting

2008-01-09 Thread Scott Wilcox
Ah, ignore. Problem seems to be solved. Some piping seems to have caused corrupting. All working now. Thanks anyway folks! :) Scott Wilcox wrote: Jim Lucas wrote: Scott Wilcox wrote: Greetings folks, I'm having a few issues with PHP this evening. I'm uploading various jpg images, doing a

RE: [PHP] PHP SOAP Client formats

2008-01-09 Thread Bastien Koert
XML is case sensitive. I notice the case of the xml is different. Try making the PHP created xml the same case. Bastien Date: Wed, 9 Jan 2008 13:54:36 -0800 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] PHP SOAP Client formats Hi all, ok, I am a little bit new to the

[PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
How do I use a get parameter in a include? e.g. ?php include('x.cgi?want=ssilinks') ? I can't modify the cgi file though, and HTML includes don't work on my server. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to override status code in certain installations..?

2008-01-09 Thread Richard Lynch
On Wed, January 9, 2008 4:35 pm, RavenWorks wrote: I'm currently trying to create a system where a custom 404 ErrorDocument in PHP is able to 301 Redirect the browser in certain cases. This works fine on some servers, however, on some other servers the PHP script seems to be unable to

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
that is a horrible method. it works in zeus and apache, but not lighttpd, from my experience. it's just not a good idea. technically that should only be file paths, and i would expect it to load a file named x.cgi?want=ssilinks although fopen wrappers can confuse that further... in my opinion i

[PHP] Inclusion with Get Parameters?

2008-01-09 Thread Liam
Hi! I have a cgi script that returns a particular value when I call it as x.cgi?want=ssilinks. I need to call it like that, but whenever I put the GET parameter into the include path, I get a warning saying that the file could not be found. Any help? Thanks, Liam -- PHP General Mailing

Re: [PHP] fgetcsv

2008-01-09 Thread Richard Lynch
On Wed, January 9, 2008 4:35 pm, Danny Brow wrote: I'm trying to compare a value to the first field in a csv fILE (example of the data below). Using while takes too long and I can't figure out how to compare just one row at a time. I've tried some variations of the following. //Common for

Re: [PHP] fgetcsv

2008-01-09 Thread Richard Lynch
6500 rows is chump-change. You probably don't have the fgetcsv inside the while loop to get past the first row... :-) On Wed, January 9, 2008 6:09 pm, Danny Brow wrote: I need to compare the first field of each row. But this idea is shot to hell, i've been running one of the examples on the

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to be used this way, as it has an admin panel inside etc. Oh, by the way,

Re: [PHP] Inclusion with Get Parameters?

2008-01-09 Thread Jim Lucas
Liam wrote: Hi! I have a cgi script that returns a particular value when I call it as x.cgi?want=ssilinks. I need to call it like that, but whenever I put the GET parameter into the include path, I get a warning saying that the file could not be found. Any help? Thanks, Liam I would

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Chris
The script is MEANT to be used this way I doubt it. If you want the contents from that url, then use curl (http://www.php.net/curl). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Inclusion with Get Parameters?

2008-01-09 Thread Liam
Jim Lucas wrote: Liam wrote: Hi! I have a cgi script that returns a particular value when I call it as x.cgi?want=ssilinks. I need to call it like that, but whenever I put the GET parameter into the include path, I get a warning saying that the file could not be found. Any help? Thanks,

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Richard Lynch
On Wed, January 9, 2008 8:38 pm, Liam wrote: How do I use a get parameter in a include? e.g. ?php include('x.cgi?want=ssilinks') ? I can't modify the cgi file though, and HTML includes don't work on my server. Thanks in advance. In order to fire the CGI and have it processed, you would

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
On 1/9/08, Liam [EMAIL PROTECTED] wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Bastien, Thank you for answering, but the issue is that the PHP SOAPClient classes actually create that xml to send, so I have no control over the xml that is sent with a call command to the SOAP object... I just wondered if there was any flags that I am missing that might bring the php

RE: [PHP] fgetcsv

2008-01-09 Thread Danny Brow
Um, I've read the manual. On Wed, 2008-01-09 at 20:11 -0500, Bastien Koert wrote: http://ca.php.net/manual/en/function.fgetcsv.php _ Discover new ways to stay in touch with Windows Live! Visit the City @ Live today!

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: The cgi script IS perl. Oh, RE: the sentence below it: I'm running apache, and it DOESN'T work. The reason I am trying to call it in php is to include it on a webpage. So, tell me, how am I supposed to pre-generate the contents in a flatfile

[PHP] Scratch that

2008-01-09 Thread Liam
How can I display the returned HTML contents of a cgi (Perl) script, without get parameters? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fgetcsv

2008-01-09 Thread Danny Brow
You are so right, takes all of 0.122 s to process the whole file with the fgetcsv inside the while loop Guess I need to look up why this was the problem. Thanks everyone! On Wed, 2008-01-09 at 20:59 -0600, Richard Lynch wrote: 6500 rows is chump-change. You probably don't have the

[PHP] Re: Scratch that

2008-01-09 Thread Liam
Liam wrote: How can I display the returned HTML contents of a cgi (Perl) script, without get parameters? Oh, this means that 1: It mustn't count as a http hit, and 2: I need to only get what is between the body tags. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Nathan Nobbe
On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote: Bastien, I want to use PHP's built in classes for this so I don't have to manually send xml to the api... writing the xml by hand would be madness... i didnt want to spend all night screwing around w/ it, since i dont have any

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: Liam wrote: 1: It mustn't count as a http hit, it's going to and 2: I need to only get what is between the body tags. now you're just asking the list to code something for you... my suggestions again: look into rewriting it to be more reusable

[PHP] Rephrase

2008-01-09 Thread Liam
OK, what I meant was 1) Not count as though the user manually navigated to that page (for my sanity when checking the site statistics!) and 2) I also need to know how to run a expression-ish thing so that when I 'parse' the text, it returns all text between x and y, but parse it BEFORE it

Re: [PHP] Re: Scratch that

2008-01-09 Thread Liam
OK, what I meant was 1) Not dump the contents to a file, as the cgi will dynamically show different links every time, (it's a reciprocal linking script) 2) Not count as though the user manually navigated to that page (for my sanity when checking the site statistics!) and 3) I also need to know

Re: [PHP] Re: Scratch that

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: OK, what I meant was 1) Not dump the contents to a file, as the cgi will dynamically show different links every time, (it's a reciprocal linking script) 2) Not count as though the user manually navigated to that page (for my sanity when checking the

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Tim Traver
Nathan Nobbe wrote: On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote: Bastien, I want to use PHP's built in classes for this so I don't have to manually send xml to the api... writing the xml by hand would be madness... i didnt want to spend all night screwing around

Re: [PHP] Re: Scratch that

2008-01-09 Thread Liam
My non-profit setup makes that 'Pay Someone' alternative. What I am planning on doing: When the script is called, it is equivilent of using the want=ssilinks GET parameter. So therefore, all I need to do is get the HTML returned from the script, not the contents of the script itself. Can