Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Ragnar
Hi Richard, just to stop and everyone from getting a heart attack right this instant what I am doing with cURL and the multiple pages attempt is not much more scary than any other "person leaves credit card info on form" script you come across. The server that I am re-sending the data to is our

Re: [PHP] Linux/PHP and Windows/MSSQL

2005-10-07 Thread Frank M. Kromann
> On Thu, October 6, 2005 8:29 pm, Rick Emery wrote: > > Knowing that I'm not the only one to want to connect to Microsoft SQL > > Server on Windows from PHP and Apache on Linux, I'm seeking advice. > > You may want to consider using the Sybase drivers if they are > available as up-to-date RPMs.

RE: [PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Jim Moseby
> -Original Message- > From: Terence [mailto:[EMAIL PROTECTED] > Sent: Friday, October 07, 2005 11:19 PM > To: php-general@lists.php.net > Subject: [PHP] Dynamic sub directory listing without redirect > > > Hi List, > > I am trying to allow dynamic URL's for my users to remember > sim

Re: [PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Philip Hallstrom
Hi List, I am trying to allow dynamic URL's for my users to remember similiar to: www.mysite.com/joesoap So I want to use "joesoap" in a PHP script to pick up the user's details from a MySQL database. If the "joesoap" does not exist in the table I will handle that. So basically I have one fi

Re: [PHP] Re: Non-Javascript PHP Onsubmit function?

2005-10-07 Thread Jasper Bryant-Greene
Oliver Grätz wrote: zzapper schrieb: Hi, I'd like to have a non-Javascript based general purpose "Are you quite Sure?" PHP form submitter, conventionally done using the Javascript Onsubmit Event. One way would be to store all the Form Variables in hidden fields generated by a foreach $_POST

Re: [PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Greg Donald
On 10/7/05, Terence <[EMAIL PROTECTED]> wrote: > Hi List, > > I am trying to allow dynamic URL's for my users to remember similiar to: > > www.mysite.com/joesoap > > So I want to use "joesoap" in a PHP script to pick up the user's details > from a MySQL database. If the "joesoap" does not exist in

[PHP] Re: Dynamic sub directory listing without redirect

2005-10-07 Thread Oliver Grätz
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html AllOLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Non-Javascript PHP Onsubmit function?

2005-10-07 Thread Oliver Grätz
zzapper schrieb: > Hi, > I'd like to have a non-Javascript based general purpose "Are you quite Sure?" > PHP form submitter, > conventionally done using the Javascript Onsubmit Event. > > One way would be to store all the Form Variables in hidden fields generated > by a foreach $_POST > but any

[PHP] Re: Global unavailable?

2005-10-07 Thread Oliver Grätz
Problem not reproducable. Test case used: --- a.inc.php: test(); --- Command line: php t.php Output: 123 I used PHP-5.1 RC1. No problem whatsoever. Such problems shouldn't arise in new versions since they are touching very basic concepts

[PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Terence
Hi List, I am trying to allow dynamic URL's for my users to remember similiar to: www.mysite.com/joesoap So I want to use "joesoap" in a PHP script to pick up the user's details from a MySQL database. If the "joesoap" does not exist in the table I will handle that. So basically I have one fi

Re: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-07 Thread Richard Lynch
On Tue, October 4, 2005 11:47 am, cybermalandro cybermalandro wrote: > I am connecting to a PROGRESS DB through the MERANT ODBC driver, When > I have > the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing > but > if I have the 4th parameter as lower case it returns my query result

Re: [PHP] displaying image from blog

2005-10-07 Thread Richard Lynch
On Tue, October 4, 2005 12:07 pm, blackwater dev wrote: > I am querying a MSSQL db where an jpg image is stored as a blog. > > I have this code: > > > > I don't think you can use Content-type for this purpose... Or, at least, I wouldn't expect browsers to be reliable in doing it. It MIGHT be

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 8:11 am, Petr Smith wrote: > is it possible to cache parsed XML files somehow? I think this is the wrong question... I mean, OF COURSE, it's possible to cache them SOMEHOW. You could toss them in your file system, or a database, insert a machine with squid on it into the

Re: [PHP] sessions

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 10:17 am, blackwater dev wrote: > I have an old site which uses this code on login: > > //it does a query then > if ($affected_rows>0){ >session_start(mysite); > session_register('admin'); > $wardadmin = yes; > header("location: admin

Re: [PHP] mail() with port & authentication

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 11:59 pm, Brian Dunning wrote: > Do I need to use Pear to specify port 587 and authentication when > sending mail? I could not find any way to do it using mail(). If you have access to sendmail.cf on your box, you can probably do it there... Or, put it this way: On MY box

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Richard Lynch
On Thu, October 6, 2005 4:52 am, Ragnar wrote: Everything you are trying to do with the cURL, multiple pages, and whatnot scares the bejesus out of me... Especially that you seem to be passing people's credit card numbers around in this manner. [shudder] > I did see that there is a FOLLOWLOCATION

[PHP] PHP 4.4.1RC1

2005-10-07 Thread Derick Rethans
Hello! I packed PHP 4.4.1RC1 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. reg

Re: [PHP] Re: form not submitting when I change action from PHP_SELF to thanks page

2005-10-07 Thread Richard Lynch
On Thu, October 6, 2005 9:37 am, Robert Cummings wrote: >> > when I add that code I can the following error msg when submitting >> the >> > form. >> > " *Warning*: Cannot modify header information - headers already >> sent by >> > (output started at /home/webadmin/dedicated75.virtual.vps- >> > host

Re: [PHP] DNS lookups only sometimes

2005-10-07 Thread Jadel Menard
Thank you for your reply. > You'd first have to show us the source code that does the email checks. > In addition, see if you can dig out the httpd.conf and php.ini that > are used on the production server, and post links to them, after > removing any data you consider sensitive.

Re: [PHP] Linux/PHP and Windows/MSSQL

2005-10-07 Thread Richard Lynch
On Thu, October 6, 2005 8:29 pm, Rick Emery wrote: > Knowing that I'm not the only one to want to connect to Microsoft SQL > Server on Windows from PHP and Apache on Linux, I'm seeking advice. You may want to consider using the Sybase drivers if they are available as up-to-date RPMs. Last time I

Re: [PHP] Question

2005-10-07 Thread Richard Lynch
On Fri, October 7, 2005 6:54 am, Sven Simons wrote: > When manually installing PHP it always gives me the status UNKNOWN. Definitely check $_SERVER instead of GetEnv to see if it gives you what you want. > The only strange thing is that the phpinfo says that the ini file is > located > in C:\Winn

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Richard Lynch
On Fri, October 7, 2005 8:31 am, blackwater dev wrote: > I have an app with a requirement to hit an external mssql db and move > the data to a local mysql database. What's the best way to do this? > I was thinking of querying the mssql db and writing the contents to a > flat file then using mysql

Re: [PHP] DNS lookups only sometimes

2005-10-07 Thread Richard Lynch
On Fri, October 7, 2005 2:54 pm, Jadel Menard wrote: > > I have an email validation script written in PHP that works on most > Apache machines I try it on, with the exception (of course) of my > production > box that it needs to go on. This production machine is a Slackware > 10.2 box, > run

[PHP] DNS lookups only sometimes

2005-10-07 Thread Jadel Menard
I have an email validation script written in PHP that works on most Apache machines I try it on, with the exception (of course) of my production box that it needs to go on. This production machine is a Slackware 10.2 box, running Apache 1.33 and PHP 4.4.0. The script works if I c

Re[2]: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi, Friday, October 7, 2005, 7:55:45 PM, you wrote: > dateexpired is: 1128052800 which translates into: 2005-09-30 00:00:00 > Basically, I'm just trying to figure out when the dateexpired is. IF > it is past the current date then I am erroring out and if it's under > the current date... I'm allo

Re: [PHP] date comparisions...

2005-10-07 Thread aaronjw
Hi Rich, Thanks for your reply. dateexpired is: 1128052800 which translates into: 2005-09-30 00:00:00 Basically, I'm just trying to figure out when the dateexpired is. IF it is past the current date then I am erroring out and if it's under the current date... I'm allowing the transaction. I wou

Re: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi aaronjw, Friday, October 7, 2005, 7:34:11 PM, you wrote: > if ($discountResult["dateexpired"] > date("U")) > { > //dosomething > } > else > { > //do something else > } > Anyway... it's supposed to read: IF the expired date is past the current > date... disallow "dosomething" otherwise

[PHP] date comparisions...

2005-10-07 Thread aaronjw
I am confused... probably because of lack of sleep. Anyway... I have code that looks like this: if ($discountResult["dateexpired"] > date("U")) { //dosomething } else { //do something else } Using Epoch obviously Anyway... it's supposed to read: IF the expired date is past the curre

[PHP] Patch for Suexec for Virtual Hosts to use PHP with FastCGI

2005-10-07 Thread Jason Kovacs
Hello, I am new to this list, but I thought I might contribute a patch implementation I've come up with and ask the other developers on the list to help me scrutinize its security implications. I've posted this same message to fastcgi-developers list at fastcgi.org to look for feedback from t

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Mark Rees
> The information that comes in from the first page is a creditcard form > with the standard values (CCnumber, Expiry Date, Cardholder name etc). > > On page 2 an XMLrequest is done with a verification gateway (in this case to > check for enrolment in 3D-Secure), the result for that I get back on t

[PHP] Re: [PEAR] PHP 4.4.0 references problems when using PEAR::SOAP

2005-10-07 Thread Justin Patrin
On 10/7/05, Denis Gerasimov <[EMAIL PROTECTED]> wrote: > Hello list, > > I am facing serious troubles when using PEAR::SOAP with PHP 4.4.0 while it > works fine with PHP 4.3.9. > PHP 4.4.0 produces many notices like these: > > Notice: Only variable references should be returned by reference in > C:

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Greg Donald
On 10/7/05, blackwater dev <[EMAIL PROTECTED]> wrote: > So would you use an odbc driver and call it directly on the shell? I > don't have much access on the server or is this something I can do > through php? Most of the time someone has already been there and done that: http://www.kofler.cc/mys

RE: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Jay Blanchard
[snip] So would you use an odbc driver and call it directly on the shell? I don't have much access on the server or is this something I can do through php? [/snip] There is an odbc driver for MySQL http://dev.mysql.com/doc/mysql/en/odbc-connector.html -- PHP General Mailing List (http://www.ph

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread blackwater dev
Matt, So would you use an odbc driver and call it directly on the shell? I don't have much access on the server or is this something I can do through php? Thanks! On 10/7/05, Matt Darby <[EMAIL PROTECTED]> wrote: > blackwater dev wrote: > > >I have an app with a requirement to hit an external m

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Matt Darby
blackwater dev wrote: I have an app with a requirement to hit an external mssql db and move the data to a local mysql database. What's the best way to do this? I was thinking of querying the mssql db and writing the contents to a flat file then using mysql load data from infile query to pump

Re: [PHP] Question

2005-10-07 Thread Michael Crute
On 10/7/05, Sven Simons <[EMAIL PROTECTED]> wrote: > > I've installed PHP using the windows installer > I try to open then php pages containing the following script : > echo "Current IP Address: "; > $ipx = getenv("HTTP_CLIENT_IP") ? getenv("HTTP_CLIENT_IP") : 0; > $ipx = !$ipx && getenv("HTTP_X_F

[PHP] data move from mssql to mysql via php

2005-10-07 Thread blackwater dev
I have an app with a requirement to hit an external mssql db and move the data to a local mysql database. What's the best way to do this? I was thinking of querying the mssql db and writing the contents to a flat file then using mysql load data from infile query to pump it in but I am not sure if

[PHP] Question

2005-10-07 Thread Sven Simons
I've installed PHP using the windows installer I try to open then php pages containing the following script : "; echo "Server IP Address: "; $ipx = getenv("SERVER_ADDR") ? getenv("SERVER_ADDR") : 0; echo !$ipx ? "UNKNOWN" : $ipx; ?> It works and gives me a correct current IP address When m

[PHP] Re: ob_start and ob_get_contents buffering problem

2005-10-07 Thread Dasdan
Thanks a lot Petr !! "Petr Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dasdan wrote: >> question: >> I try to buffer the output of the 'system/views/main.php' into $contents. >> and then do a print. >> Problem is that the contents of the system/views/main.php are printed

[PHP] Re: ob_start and ob_get_contents buffering problem

2005-10-07 Thread Petr Smith
Dasdan wrote: question: I try to buffer the output of the 'system/views/main.php' into $contents. and then do a print. Problem is that the contents of the system/views/main.php are printed 2 times. Someone who can explain me? following the contents of testfile.php and main.php, php.ini settings c

[PHP] PHP 4.4.0 references problems when using PEAR::SOAP

2005-10-07 Thread Denis Gerasimov
Hello list, I am facing serious troubles when using PEAR::SOAP with PHP 4.4.0 while it works fine with PHP 4.3.9. PHP 4.4.0 produces many notices like these: Notice: Only variable references should be returned by reference in C:\PHP4\PEAR\SOAP\Value.php on line 118 Notice: Only variable referenc

[PHP] ob_start and ob_get_contents buffering problem

2005-10-07 Thread Dasdan
question: I try to buffer the output of the 'system/views/main.php' into $contents. and then do a print. Problem is that the contents of the system/views/main.php are printed 2 times. Someone who can explain me? following the contents of testfile.php and main.php, php.ini settings concerning ob_ ..