Re[2]: [PHP] reading linux wtmp file

2003-10-14 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 2:25:13 PM, you wrote: TR> wtmp is a binary file and the format can vary between old and new versions of TR> linux. You will need to have a look at struct utmp in, for example, /usr/include/bits/utmp.h TR> This location can vary from system to system as well. TR>

Re: [PHP] Array to string?

2003-10-14 Thread Douglas Douglas
I just found it: implode. Sorry to bother you. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array to string?

2003-10-14 Thread Douglas Douglas
Hello everybody. Is there any built-in function to convert an array to string? Thanks. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] PHP Journals and Magazined

2003-10-14 Thread Ralph Guzman
If you are looking for magazines: http://www.phphub.com/browse.php?cat=52 You can find all sorts of PHP resources online. Here are a few of my favorites: http://www.phphub.com/ http://www.zend.com/developers.php http://www.sitepoint.com/ http://www.devshed.com/Server_Side/PHP and of course,

Re: [PHP] reading linux wtmp file

2003-10-14 Thread Tom Rogers
Hi, Wednesday, October 15, 2003, 10:52:43 AM, you wrote: MPC> Hi to all, MPC> Have a problem here in reading the file wtmp in linux. Is there a way I can MPC> view it using a php script? MPC> Thanks in advance. MPC> Mike wtmp is a binary file and the format can vary between old and new versi

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
Yes, submit, inout, username and password all come from the index.php form submission, but username changes throughout the different pages, that was one of my problems. I'm not sure what I did wrong before, but once I set a variable using $_SESSION, I couldn't change it unless I close the browser a

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
As I said in one of my posts, I'm not encrypting my passwords as of yet, because it was all internal, all employees use their own computers. My company is very relaxed. But since my boss want's to start selling a time clock database to our partners, I have to fix everything. I started this when I w

Re: [PHP] Anyone know a way of converting a timestamp value into something readable?

2003-10-14 Thread Robert Cummings
See the documentation on the date() function. Cheers, Rob. On Tue, 2003-10-14 at 23:29, richard cook wrote: > Thank you > > R > -- .. | InterJinn Application Framework - http://www.interjinn.com | :

[PHP] Anyone know a way of converting a timestamp value into something readable?

2003-10-14 Thread richard cook
Thank you R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, given that I can't see what is in config.php time.php, I'll focus on your index.php. I assume that the issues I point out will be applicable to config and time also. this: if ($_POST["SuBmIT"]) { // make sure posted variables are clean and are the kind you expect if ($_POST

[PHP] Thanks Chris.

2003-10-14 Thread Gabriel Peugnet
I see you are an authority in these matters. I've seen the page you told me to. Thank you so much. Gabriel. "Chris Shiflett" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > --- Gabriel Peugnet <[EMAIL PROTECTED]> wrote: > > Could some one tell me where can I find the document

[Fwd: Re: [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] Slow searches in large database

2003-10-14 Thread Mohamed Lrhazi
You might wanna see if a search engine/indexing tool can help you, I use: http://search.mnogo.ru/features.html On Mon, 2003-10-13 at 18:54, Adrian Teasdale wrote: > Hi there > > Wondering if someone could help or give some advice. > > We have a mysql database that has approximately 20,000 reco

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

2003-10-14 Thread Chris Shiflett
--- Gabriel Peugnet <[EMAIL PROTECTED]> wrote: > 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: >

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
Mainly what my problem is, is that when I turn Register_Globals = Off, then my scripts stop working. I can't even get past the page I showed you, the login page. No errors, it's just like I didn't enter any data. Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Orig

Re: [PHP] Slow searches in large database

2003-10-14 Thread Jason Sheets
Rather than searching every field for every search I usually provide a select drop down or checkbox that allows the user to indicate what information they are searching, then only hit those fields in the SQL query. MySQL is fast for simple queries but it doesn't scale well with larger database

php-general@lists.php.net

2003-10-14 Thread Mohamed Lrhazi
> I tried this exec() suggestion and that didn't work right either. > exec("/bin/scan & > /dev/null 2>/dev/null"); > try : exec("/bin/scan > /dev/null 2>&1 &"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class/object design

2003-10-14 Thread Robert Cummings
On Tue, 2003-10-14 at 19:51, Chris W. Parker wrote: > 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

php-general@lists.php.net

2003-10-14 Thread Daevid Vincent
Okay, I thought the hack of doing this (scan.sh) might work, but running some timing tests, it's apparent that it's not... The more IP addresses I schedule to scan, the longer it takes to return my browser page. #!/bin/sh /bin/scan & And while if I run it on the command line in bash, it works jus

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

2003-10-14 Thread Gabriel Peugnet
Mike, the site you refered me has the information I was looking for. Thank you very much. Gabriel. "Mike Migurski" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > >Could some one tell me where can I find the documentation for the > >Hedear() function? > > > >The manual does n

[PHP] reading linux wtmp file

2003-10-14 Thread Michael P. Carel
Hi to all, Have a problem here in reading the file wtmp in linux. Is there a way I can view it using a php script? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 q

[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 unsu

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"])

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 in

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] 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 vol

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 Message-

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 R

[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] Sessions Question

2003-10-14 Thread Chris W. Parker
Jake McHenry 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 i

[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 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 s

[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 so

[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 Lis

[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

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;

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 wit

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=blah&blah=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] 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 Technolog

[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 tak

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

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] 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 connec

[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] 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 =

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 long2ip(3

[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 Genera

[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

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=blah&blah=value??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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

[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 a

[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 MYSQL

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

[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 l

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); T

[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], whe

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 since

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 http:/

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 different

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 tabl

[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-- -

[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 = sprintf("%u",ip2long($QR

[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] 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 t

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 above

[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 php

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

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 qu

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 = $_H

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: > > http://registration.php?use

[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] 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 (h

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 ask

[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 " ... "; So, when you submit the form, in the third page you will be able to get the username. $user = $_POST['username']; Yo can do this in N number of pages. If you

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 retri

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! -- P

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 session

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] 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 Pre

[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] 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

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 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 (http://www.ph

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 another.php Please RTFM, STFW, and STFA for PHP tutorials. Thank you. -- PHP General Mailing List (h

[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

[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.co

[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] 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] 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] 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 this program can be run from the command line, as a regular CGI script, or as a suexec CGI script. If we modify it like this: #!/usr/bin/

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

[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; 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 the new site, we can

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] 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 m

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 req

[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

[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. I

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 %

  1   2   >