Re: [PHP] what is the best PHP editor?

2003-10-14 Thread Davy Obdam
Zend Studio is definatly my choice-), sometimes i use EditPlus too, to edit html/css/javascript, but all my PHP coding is done in zend studio. Best regards, Davy Jonathan Villa wrote: What's the matter? No one likes Zend Studio? On Mon, 2003-10-13 at 12:00, Chris Boget wrote: I currently

Re: [PHP] Slow searches in large database

2003-10-14 Thread Rory McKinley
Hi Adrian Somewhere in the back of my mind..I remember reading that if you are using LIKE putting in wildcards for and aft e.g %string% slows down queries somewhat I will have a look at my mySQL stuff and see if I can confirm...but if I recall correctly, is there any way you can do away with

[PHP] Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { [total]= int(1) [assign]= array(1) { [1]= array(3) { [type]= string(10) Transcript

[PHP] Alternative to cURL

2003-10-14 Thread Paul van Schayck
Hello everyone, I want to send a form to a different server without user input. Auto fill a form ($_POST or $_GET). People will still click a link. So it could be a client-side sollution. cURL is the logical sollution but is there an alternative, client or server side. I was thinking about

php-general Digest 14 Oct 2003 09:57:11 -0000 Issue 2354

2003-10-14 Thread php-general-digest-help
php-general Digest 14 Oct 2003 09:57:11 - Issue 2354 Topics (messages 166014 through 166048): Re: what is the best PHP editor? 166014 by: Ryan A 166016 by: Daniel Guerrier 166017 by: Chris Boget 166019 by: Rob Adams 166021 by: Jonathan Villa

Re: [PHP] Foreach Array Help

2003-10-14 Thread Marek Kilimajer
foreach(array_expression as $key = $value) So you are looping the array key and it is a scalar value (int). Jed R. Brubaker wrote: Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code):

[PHP] where is my session data on my new server?

2003-10-14 Thread David T-G
Hi, all -- We have some existing code running under php 4.2.3 on a FreeBSD 4.5 server and we just lit up a new php 4.3rc1 FBSD 4.8 server to handle our growth (yay! :-) All of our scripts source a central include file which sets lots of things including some session variables, one of which is

RE: [PHP] newbie question

2003-10-14 Thread Ford, Mike [LSS]
On 13 October 2003 13:49, 'Eugene Lee' wrote: On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: On 12 October 2003 23:36, Eugene Lee wrote: The PHP manual is vague in several sections. I wonder how bug reports get submitted for it?

RE: [PHP] where is my session data on my new server?

2003-10-14 Thread Ford, Mike [LSS]
On 14 October 2003 11:26, David T-G wrote: On the first server when you enter the password and hit the button the page comes back up with $pw set and in you go. On the second server $pw is always empty and we are endlessly prompted. I ran a phpinfo() comparison and didn't see anything

Re: [PHP] ftp_connect() issues

2003-10-14 Thread Burhan Khalid
Could it be that your script is timing out? Did the php version change? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help needed - Dynamically Zip Files Sub-Directories

2003-10-14 Thread TWSC HQ
Hi everybody - What is wrong with this php zip class (file : phpzip.inc.php)? I've got this code on one page: require(phpzip.inc.php); $z = new PHPZip(); $z - Zip(directory_name/, out.zip); where all files and sub-directories + files should be zipped into the zip file called out.zip trouble

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Marek Kilimajer
Are you using sessions? Then you need session_cache_limiter('private_no_expire'); Scott Fletcher wrote: I seem to be having problem with sending the PDF document to the browser to be open on screen. I kept getting the error message, it say 'Windows cannot open this file'. Here's my sample

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Not using the session. :-) Oh well... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you using sessions? Then you need session_cache_limiter('private_no_expire'); Scott Fletcher wrote: I seem to be having problem with sending the PDF document to the browser

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Sound like a good idea. I'll see if I can find this on the Internet and see what happen. Bertrand Moulard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] now that I'm rethinking of it, I solved the problem by using the brilliant python program tcpwatch, which logs all the http data

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Well, now, I get an unknown file type. I have already specified the application type. This was yesterday. Today, I get the file type as 'Acrobat Control for Active X'. That doesn't look right... Oh well... Will have to play around and see what can I do to make it work better. A couple of

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Chris Hayes
It might help to have a peek at how the php Pdf libraries are doing this (www.php.net/pdflib, fpdf.org, www.ros.co.nz/pdf) . There are a lot of things to worry about with pdf, not the least the fact that older acrobat readers will give plenty of errors when the page is not send fast enough

[PHP] Re: php convert html to pdf

2003-10-14 Thread Scott Fletcher
Not sure why you're thinking of installing. So, I downloaded the zipped file and extract it. All I see are a couple of files in PHP. All you can do is to upload the file, 'HTML_ToPDF.php' and perhap one other file to the Web Hosting account you have there. Then on your existing webpage, you

Re: [PHP] where is my session data on my new server?

2003-10-14 Thread zerof
You can bypass any configuration using: session_save_path ('path/to/session_folder'); -- zerof - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] where is my session data on my new server?

2003-10-14 Thread David T-G
Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 11:26, David T-G wrote: % % I ran a phpinfo() comparison and didn't see anything markedly % different (except for how the output is formatted, which made things % delightfully more challenging), but I

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
I'm using the library from www.fpdf.org. I currently using the method on storing the file to the server because of two features. One so I can have php script to use the email to pick up the file and send it to my boss. Two, an optional option to view the billing invoice. I am beginning to think

[PHP] Re: Foreach Array Help

2003-10-14 Thread Rob Adams
Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { [total]= int(1) [assign]=

Re: [PHP] where is my session data on my new server?

2003-10-14 Thread David T-G
zerof -- ...and then zerof said... % % You can bypass any configuration using: % session_save_path ('path/to/session_folder'); Well, it's the same on both servers, and /tmp is writable (there are session files in there, even), so that doesn't seem to be it. Thanks, though. % -- % zerof %

[PHP] Pidget - The PHP5 Widget Library

2003-10-14 Thread Luke Ehresman
Hi Everyone, I'm fairly new to this list, but have been around PHP for a very long time. I'm the original author of SquirrelMail, the webmail client written in PHP4. As I have been doing web development, I noticed the alarming trend that most web applications have a hacked-together interface.

[PHP] Re: Did anyone have success with the require() function??

2003-10-14 Thread Scott Fletcher
Thanks... Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher [EMAIL PROTECTED] wrote: Hi Fellas! Did anyone have success with making the required function work if using this sample code. It didn't work for me.

Re: [PHP] Re: Did anyone have success with the require() function??

2003-10-14 Thread Scott Fletcher
Thanks... Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Saturday, October 11, 2003, 3:33:05 AM, you wrote: CZ On Fri, 10 Oct 2003 13:09:16 -0400, Scott Fletcher [EMAIL PROTECTED] wrote: Hi Fellas! Did anyone have success with making the required function work

[PHP] Re: php convert html to pdf

2003-10-14 Thread Scott Fletcher
I'm begging to see this now. That's a lot of other 3rd party installation being required. Now, I'm thinking of going to scratch that (HTML conversion to PDF) and go back to fpdf library... Yea, look like you would need your own machine for this... Scott Fletcher [EMAIL PROTECTED] wrote in

Re: [PHP] Re: header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Aw, scratch that HTML conversion to PDF feature. It require an installation of a couple of other stuffs. I'm going to stick back to fpdf library for now. Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using the library from www.fpdf.org. I currently using the

[PHP] header() function...

2003-10-14 Thread Tristan . Pretty
We've just moved sites, to a new URL... on the home page of the old url, I simply had a page that was; ? header(Location: http://www.newsite.com); ? All good, any requests to that page, were cleanly redirected to the new site. I know this cause I tested it many times... Now on the stats for

Re: [PHP] FTP resumepos

2003-10-14 Thread Andrei Popovici
So, resumepos is the number of bytes from wich the ftp_get will start reading the 'remote_file' and writing to the 'local-file'? Andrei. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Andrei Popovici ([EMAIL PROTECTED]): Can anyone help me understand how

[PHP] Invoking the PHP interpreter form a suexec CGI PHP program.

2003-10-14 Thread Andrey Petrov
Hi I have configured successfully a PHP application to run as a CGI application with apache/suexec. The following program runs as expected: #!/usr/bin/php -q ?php print (Content-type: text/html\n\n); print (`id`); //outputs the correct uid/gid as sepcified with apache's User and Group

[PHP] Accessing HTTP_PC_REMOTE_ADDR var fails sporadically

2003-10-14 Thread Randall Perry
After a user submits a contract form I grab their IP from $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] and then email the info. This works sometimes, and sometimes I get a blank value for $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR]. Anyone know why this might happen? Should I be using a different global

[PHP] Passing variables between pages

2003-10-14 Thread KB
Hi, Simple one for anyone who wants to help out a novice. How do you pass a variable from one page to another? Urgent help would be appreciated. With thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Run the same php function several times in th background

2003-10-14 Thread KB
Hi NG I would like to intiate the same function many times, running in the background using php, Thank you in advance for any suggestion Kind regards Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: header() function...

2003-10-14 Thread Scott Fletcher
Web Server's log file or user defined log file (Sort of Like PHP Log)? Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We've just moved sites, to a new URL... on the home page of the old url, I simply had a page that was; ? header(Location: http://www.newsite.com);

[PHP] $PHP_SELF and include all variables?

2003-10-14 Thread Tristan . Pretty
I'm using $PHP_SELF, but need to automatically record what variables are in the URL at that time... is that possible? I've searched PHP.net, but cannot find this specific function... Cheers, Tris... * The information contained

RE: [PHP] Passing variables between pages

2003-10-14 Thread Jay Blanchard
[snip] Simple one for anyone who wants to help out a novice. How do you pass a variable from one page to another? [/snip] Through either a $_POST or a $_GET variable array. onepage.php form action=another.php method=POST input type=text name=myvariable input type=submit /form another.php

RE: [PHP] Run the same php function several times in th background

2003-10-14 Thread Jay Blanchard
[snip] I would like to intiate the same function many times, running in the background using php, [/snip] for($i = 0; $i 1000; $i++){ foo($blork); // function runs one thousand times } Please RTFM, STFW, and STFA for PHP tutorials. Thank you. -- PHP General Mailing List

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread Mohamed Lrhazi
You're talking multithreading and/or forking extra processes? check the docs for that... search for fork... Mohamed~ On Tue, 2003-10-14 at 11:05, KB wrote: Hi NG I would like to intiate the same function many times, running in the background using php, Thank you in advance for any

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread KB
Dear Mohamed Yes, I am looking for multithreading process , thank you for the suggestion charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $PHP_SELF and include all variables?

2003-10-14 Thread Shawn McKenzie
$_SERVER['GET'] will give an array of all get vars in the URL. Or maybe: $_SERVER['QUERY_STRING'] Which gives the entire get query string in the URL. -Shawn Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using $PHP_SELF, but need to automatically record what

Re: [PHP] Re: header() function...

2003-10-14 Thread Tristan . Pretty
Bog standard web server logs... We're hosted on a windows server I think... (sadly) Scott Fletcher [EMAIL PROTECTED] 14/10/2003 16:25 To [EMAIL PROTECTED] cc Subject [PHP] Re: header() function... Web Server's log file or user defined log file (Sort of Like PHP Log)? Tristan Pretty

Re: [PHP] Re: header() function...

2003-10-14 Thread Curt Zirzow
I officially declare this thread foobar. Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing variables between pages

2003-10-14 Thread Eugene Lee
On Tue, Oct 14, 2003 at 10:20:44AM -0500, Jay Blanchard wrote: : KB [EMAIL PROTECTED] asked: : : Simple one for anyone who wants to help out a novice. How do you : pass a variable from one page to another? : : Through either a $_POST or a $_GET variable array. And cookies and sessions and

RE: [PHP] Passing variables between pages

2003-10-14 Thread Jay Blanchard
[snip] : Simple one for anyone who wants to help out a novice. How do you : pass a variable from one page to another? : : Through either a $_POST or a $_GET variable array. And cookies and sessions and database backends oh my! [/snip] Aww Genethat is for intermediates, not novi! --

Re: [PHP] Re: header() function...

2003-10-14 Thread Scott Fletcher
In that case, you most likely would find the 'www.oldsite.com' in the ACCESS log or whatever it is. As for the redirecting, nah, there shouldn't be any interference. The webserver just record the browser's request into the log file, then come the header() for redirecting, then the webserver

[PHP] Re: Passing variables between pages

2003-10-14 Thread Gabriel Peugnet
Like John said: You can use: In the second page: $user = $_POST['username'];// sent by the first page ... echo form ... input type='hidden' name='username' value='$user' ... /form; So, when you submit the form, in the third page you will be able to get the username. $user =

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread John Nichel
Jay Blanchard wrote: [snip] I would like to intiate the same function many times, running in the background using php, [/snip] for($i = 0; $i 1000; $i++){ foo($blork); // function runs one thousand times } Please RTFM, STFW, and STFA for PHP tutorials. Thank you. This is not what he

RE: [PHP] Run the same php function several times in th background

2003-10-14 Thread Jay Blanchard
[snip] This is not what he asked. He wants to run the process in the background. PHP's process control functions may do what you need http://us3.php.net/manual/en/ref.pcntl.php [/snip] My badunder the influence of anti-histamines and other cold medicines. -- PHP General Mailing List

[PHP] Pulling variables from a URL

2003-10-14 Thread Frank Tudor
I have a URL including variables... It looks like this: http://registration.php?username=11[EMAIL PROTECTED] But I can't pullit into the next page's form Here is what is in the form and other things I have tried: $username = $_HTTP_POST_VARS['username']; echo $_GET['$username']; echo

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
It should be: echo $_GET['username']; You shouldn't have the dollar sign in the brackets. $ represents a variable the entire $_GET['username'] is the variable. --- Frank Tudor [EMAIL PROTECTED] wrote: I have a URL including variables... It looks like this:

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: I have a URL including variables... It looks like this: http://registration.php?username=11[EMAIL PROTECTED] But I can't pullit into the next page's form Here is what is in the form and other things I have tried: $username =

RE: [PHP] Pulling variables from a URL

2003-10-14 Thread Carl Furst
If you are using the variable $username as a variable variable type thing.. like you don't know what username is going to be each time... Use double quotes: $_GET[$username]; that will make PHP interpolate the variable and use whatever value $username is as the name of the $_GET var. Single

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Adrian
lol variables in quotes - especialli when there is only the variable are really ugly. you should use $_GET[$username]... Use double quotes: $_GET[$username]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session question

2003-10-14 Thread Susan Ator
What would cause the loss of a session in these circumstances: php page with search form - session good search form calls perl script php page with search results - php wrapper for perl search form displaying output - session good php page gotten to from link on

Re: [PHP] Pidget - The PHP5 Widget Library

2003-10-14 Thread Leif K-Brooks
Luke Ehresman wrote: Hi Everyone, It doesn't seem to be very standards-compliant. Good PHP is important to me, but good HTML is too. Also, I can't find any examples, but it doesn't really seem to seperate logic from presentation - it just provides another means of presentation. -- The

[PHP] header() refresh vs location

2003-10-14 Thread Chris Hubbard
All, I have done a number of searches. I have read the online documentation and user supplied comments. I recently ran into problem using: -some code here to create session and set variables- header('Location: index.php'); where the sessions would sometimes get lost, they wouldn't make it to

[PHP] Re: header() refresh vs location

2003-10-14 Thread Kevin Stone
The Refresh directive is a valid header. I've used it for many years and it seems to be supported by the majority of browsers. However I've never read anything that would indicate that Refresh works any differently than Location. The only difference is that Refresh allows you to set a number

[PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Daevid Vincent
Could be my not understanding of something, but I think there is a bug in using ip2long() and sprintf(%u) as indicated on this page: http://us4.php.net/manual/en/function.ip2long.php Look at the example below: //this conversion seems broken // $startIP_long =

[PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Scott Fletcher
Finally got some PHP header to force IE to display the PDF document right from the file from the server. Due to most of IE bugs, this script will help. It can be either getting a file from the webserver as this script is or you can change the PHP header to use the attachment instead. --snip-- ?

Re: [PHP] Slow searches in large database

2003-10-14 Thread Cesar Cordovez
Hi! I think that you will need a keyword table to speed up this procedure. The basic idea is to create an index of words in your fields, therefore you will not use like but = making things run much, much faster. The steps for doing this are: 1. Every time you save a record in the table

Re: [PHP] Re: header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Kevin Stone [EMAIL PROTECTED] wrote: The Refresh directive is a valid header. I've used it for many years and it seems to be supported by the majority of browsers. My experience has been the same. However I've never read anything that would indicate that Refresh works any differently

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Chris Hubbard [EMAIL PROTECTED] wrote: header('Location: index.php'); The Location header requires an absolute URL. This example demonstrates a violation of the specification and can have unknown results. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] header() refresh vs location

2003-10-14 Thread Matt Babineau
In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. so you could do Location: Host + Relative_URL or Location: Relative_URL

[PHP] Re: Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
First of all, thanks for the response. Here is where I am getting lost: In $code['assign'][1] - 1 is the assignment ID, and I would like the array to be able to hold a billion of these different assignments all with conceivably a billion codeapply ID as in $code['assign'][1]['codeapply'][3],

Re: [PHP] Display a JPG Image (continued)

2003-10-14 Thread Pushpinder Singh Garcha
Hello all again, I am still having trouble opening a jpg image using header(Content-type: image/jpg); $file = docs/picture1.jpg; header(Content-disposition: attachment; filename=$file ); readfile($file); The

[PHP] Re: Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
Never mind - I figured it out. While I was traversing like this: foreach ($this-code['assign'] as $assign = $details) { foreach ($assign['codeapply'] as $codeapply = $ca_details) { } } I had set up $assign to be the key value, and

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Matt Babineau [EMAIL PROTECTED] wrote: In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. In HTTP/1.1, the Host header

[PHP] PHP 4.3.3 and Apache 2

2003-10-14 Thread Mike Morton
I know this has been discussed in the past - but I wanted to check in with the group to see if anything has changed. I have the opportunity to start with a clean webserver running Apache 22.0.40 with PHP 4.3.3 This is a fairly high volume site that will be run on here - with a great deal of

[PHP] Re: Foreach Array Help

2003-10-14 Thread Rob Adams
Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] First of all, thanks for the response. Here is where I am getting lost: In $code['assign'][1] - 1 is the assignment ID, and I would like the array to be able to hold a billion of these different assignments all with

Re: [PHP] Re: header() refresh vs location

2003-10-14 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Kevin Stone [EMAIL PROTECTED] wrote: The Refresh directive is a valid header. I've used it for many years and it seems to be supported by the majority of browsers. My experience has been the same. However I've never read anything

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Daniel Guerrier
Who keeps telling people to use :) $_GET[$username] it should be $_GET['username'] $_GET is a key value pair array. the key is the name of the html form variable in this case username and the value is the value entered in the form. --- Adrian [EMAIL PROTECTED] wrote: lol variables in quotes -

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Comex
[EMAIL PROTECTED] Daniel Guerrier: Who keeps telling people to use :) $_GET[$username] $_GET[$username]??? http://whatever.com/whatever.php?username=blahblah=value??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Server Slow After PHP Error

2003-10-14 Thread Weston
Whenever I access a PHP script from the web that contains an error (such as a parsing error, etc...) The server will not respond to any request (php or not) for about 2-3 minutes. This only happens over the web though, if i try to run a php file using command line, the error loads immedaitely. Any

[PHP] Re: Pulling variables from a URL

2003-10-14 Thread Gabriel Peugnet
Every body have already gave you the answers. Just one more thing: the method you are useing is GET because you are passing variables in the URL so use of $_POST doesn't work. the only line you need is $username = $_GET['username']; after this you can do any thing with $username. -- PHP

Re: [PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Curt Zirzow
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]): Could be my not understanding of something, but I think there is a bug in using ip2long() and sprintf(%u) as indicated on this page: http://us4.php.net/manual/en/function.ip2long.php What version of php? It works find in 4.3.3. echo

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): //Can't use readfile() due to poor controlling of the file download. //(IE have this problems)... //readfile($filepath); readfile has no effect on how IE handles downloads. //use fopen() instead of readfile... $fp =

[PHP] Trying to get mysql_fetch_array data into phplot.

2003-10-14 Thread Jamie Dahl
I'm trying to track progress etc..say running and how each run gets' progressivly longer etc...or the time decreases as the distance stays the same etc.. Anyway, when doing the mysql_fetch_array, I need that data to somehow not get lost once the while loop has completed, also, I need to stack

Re: [PHP] Server Slow After PHP Error

2003-10-14 Thread Timothy Hitchens
I would suggest that your Apache process has not finished with PHP processing eg. loop etc etc Remember that HTTP/1.0 allows (4) four connections and HTTP/1.1 allows (2) two connections so if you have a long process eg a HTTP/1.1 stream coming from the server or the server believes that the

RE: [PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Daevid Vincent
Good point... v4.1.2, Linux stripples.devel.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 unknown This program makes use of the Zend Scripting Language Engine: Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies with Zend Optimizer v2.1.0, Copyright (c) 1998-2003,

Re: [PHP] Re: Pulling variables from a URL(thanks)

2003-10-14 Thread Frank Tudor
Thanks eveyone for all the info. I got it working! :) Frank --- Gabriel Peugnet [EMAIL PROTECTED] wrote: Every body have already gave you the answers. Just one more thing: the method you are useing is GET because you are passing variables in the URL so use of $_POST doesn't work.

[PHP] cURL Authorize.Net Super slow processing times!!

2003-10-14 Thread Matt Babineau
Hey All- Just built a cart, and I want to connect it to Authorize.net with cURL and I am able to do that fine. The problem is, it takes a while to process the transaction. Sometimes the user's browser just sits there for 5, 10 or even 30 seconds before the page finishes processing and they are

Re: [PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Curt Zirzow
* Thus wrote Daevid Vincent ([EMAIL PROTECTED]): Good point... v4.1.2, Linux stripples.devel.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 unknown This program makes use of the Zend Scripting Language Engine: Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Chris Shiflett
--- Comex [EMAIL PROTECTED] wrote: $_GET[$username]??? http://whatever.com/whatever.php?username=blahblah=value??? Is this a question? If so, the answer is no. :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Mohamed Lrhazi
On Tue, 2003-10-14 at 17:33, Curt Zirzow wrote: //use fopen() instead of readfile... $fp = fopen($filepath, 'rb'); $pdf_buffer = fread($fp, $filesize); fclose ($fp); print $pdf_buffer; Loading the whole file in memory and not doing anything with it before

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Curt Zirzow
* Thus wrote Mohamed Lrhazi ([EMAIL PROTECTED]): On Tue, 2003-10-14 at 17:33, Curt Zirzow wrote: //use fopen() instead of readfile... $fp = fopen($filepath, 'rb'); $pdf_buffer = fread($fp, $filesize); fclose ($fp); print $pdf_buffer; Loading the

[PHP] class/object design

2003-10-14 Thread Chris W. Parker
Hey peeps. Let me try to make this simple. Right now I have a base db class that is moved solely for interacting with the db. It opens the connection, runs queries, and returns the results of those queries. Along with this class I've got some other classes (I'll call them upper classes) that are

[PHP] Unrouteable address(little 0-t)

2003-10-14 Thread Ryan A
Hi, I was testing a script from one of our sites and then suddenly all emails to that site is giving me this error: Unrouteable address and a hell of a lot of blah blahs I also tried it from regular email and am getting the same problem. What to do? Cheers, -Ryan -- PHP General Mailing List

[PHP] Sessions Question

2003-10-14 Thread Jake McHenry
Hi everyone, I've been trying to set up sessions, but have been having problems. I created an online time clock for my company using php and a mysql database. It's everything that my boss wanted. The only problem is, he told me today that he is planning on selling it to our partners. The actual

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, it would be helpful if we could see your code. That said... first you need to identify what information you need to track in the sessions, and whether you're going to use php sessions (the $_SESSIONS array) or build your own mysql based session tracker. to use php sessions: you will need

[PHP] Who knows all the Header attributes.

2003-10-14 Thread Gabriel Peugnet
Could some one tell me where can I find the documentation for the Hedear() function? The manual does not provide it but just some examples. I know Header( Location: http... ), Header( Expires ... ). But want to know about: Content... Content-Disposition etc. Thanks. Gabriel. --

RE: [PHP] Sessions Question

2003-10-14 Thread Chris W. Parker
Jake McHenry mailto:[EMAIL PROTECTED] on Tuesday, October 14, 2003 5:00 PM said: [snip] Can someone point me in the right direction here? I'd love to help you but you did not provide enough information. What exactly are you trying to do and what is it failing? Try showing us the code in

[PHP] Re: Server Slow After PHP Error

2003-10-14 Thread Weston
Any ideas on how to correct the problem with reinstalling server software? Thanx -Weston Weston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Whenever I access a PHP script from the web that contains an error (such as a parsing error, etc...) The server will not respond to any

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread John Nichel
Jay Blanchard wrote: [snip] This is not what he asked. He wants to run the process in the background. PHP's process control functions may do what you need http://us3.php.net/manual/en/ref.pcntl.php [/snip] My badunder the influence of anti-histamines and other cold medicines. Well, the

RE: [PHP] Sessions Question

2003-10-14 Thread Mike Brum
One quick note - if you're starting a session then you can't user the header() function afterwards. You'll get the lovel headers already sent error. Be sure to use an alternate method of redirection if you're starting a session before your redirect logic takes place. -M -Original

Re: [PHP] PHP 4.3.3 and Apache 2

2003-10-14 Thread John Nichel
Mike Morton wrote: I know this has been discussed in the past - but I wanted to check in with the group to see if anything has changed. I have the opportunity to start with a clean webserver running Apache 22.0.40 with PHP 4.3.3 Apache 22? Holy future release Batman. :) This is a fairly high

Re: [PHP] Who knows all the Header attributes.

2003-10-14 Thread Mike Migurski
Could some one tell me where can I find the documentation for the Hedear() function? The manual does not provide it but just some examples. Check the HTTP spec for a definitive listing: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
Sorry, I sent that last email directly to someone... Here it is again. Here is my index file, it's the smallest of the set. This would be a huge post if I would submit one of those. Config.php has config options, time.php is basically getting the system time and then manipulating it, instead of

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Mike, I don't get the headers already sent error. here's the code I'm using: if ($_POST) { $result = cleanData($_POST); $sql = SELECT `id`,`username`,`password`,`email` FROM `users` WHERE (`username` = '. $result[username] .') AND (`password` = '. md5($result[password]) .');

[PHP] session question

2003-10-14 Thread Frank Tudor
How do you make a session time out? and how do you make a session end if a person leaves your site? Frank __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] session question

2003-10-14 Thread Jake McHenry
session_destroy() I'm pretty sure, from what I've read. Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com -Original Message- From: Frank Tudor [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 8:47 PM To: [EMAIL PROTECTED] Subject: [PHP] session

  1   2   >