Re: [PHP] script/binary that tracks links through logs

2004-01-08 Thread Mike Migurski
does anyone know of a program/script that tracks incoming links from site that youve traded links with. but not a simple php script that requires the other site to link to www.mysite.com/links_in/12/ but some software that analyses apache access logs for the referer field. this would mean the

[PHP] php on linux..

2004-01-08 Thread khoa vo
I am a newbie. I'm trying to write a php script and put it on the linux server at school. index.html-- form action=action.php method=POST Your name: input type=text name=name / input type=submit /form action.php-- #!/lusr/bin/php Hi ?php echo $_POST[name]; ?. I

Re: [PHP] php on linux..

2004-01-08 Thread Miguel J. Jiménez
khoa vo wrote: I am a newbie. I'm trying to write a php script and put it on the linux server at school. index.html-- form action=action.php method=POST Your name: input type=text name=name / input type=submit /form action.php-- #!/lusr/bin/php Hi ?php echo

[PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Andy Higgins
Hello, I have a requirement to run two different sites that are in different time zones on the same machine. Does anyone know if this is possible to do by running two instances of php and making a change in the php.ini? Or do you have any other suggestions on how this can be done? Thank you.

Re: [PHP] POST_QUERY STRING without letting php to parse it.

2004-01-08 Thread nabil
It is working But i can not always control php.ini on the host ..!!! and i tried ini_set(always_populate_raw_post_data , 1); but not working , and i had to chanhe in my local php.ini ... Please Advice Mike Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to get the

Re: [PHP] POST_RAW_DATA

2004-01-08 Thread nabil
It is working But i can not always control php.ini on the host ..!!! and i tried ini_set(always_populate_raw_post_data , 1); but not working , and i had to chanhe in my local php.ini ... Please Advice I want to get the POSTED data as it is without letting php to parse it. You may be thinking

Re: [PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Tom Rogers
Hi, Thursday, January 8, 2004, 6:33:45 PM, you wrote: AH Hello, AH I have a requirement to run two different sites that are in different time AH zones on the same machine. Does anyone know if this is possible to do by AH running two instances of php and making a change in the php.ini? Or do you

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-08 Thread Christophe Chisogne
Chris Hayes wrote: It takes a lot more of users to tamper with POST data than with GET Not a lot more. Simply save the slightly modified form on a webserver you have access to (hidden field) -- or better create php code that generate the form OK, aunt Annie cant do that, but she wouldnt ever

[PHP] Turck mmcache is dead

2004-01-08 Thread zooming
http://sourceforge.net/forum/message.php?msg_id=2361065 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php on linux..

2004-01-08 Thread Jay Blanchard
[snip] index.html-- form action=action.php method=POST Your name: input type=text name=name / input type=submit /form action.php-- #!/lusr/bin/php Hi ?php echo $_POST[name]; ?. [/snip] If you are using PHP with a browser page you do not need the bash line

[PHP] Re: Problem with while loop

2004-01-08 Thread memoimyself
Hello Richard, On 7 Jan 2004 at 21:02, Richard Kurth wrote: I can't seam to get this while loop to work properly. It should create a message that has the first two lines and then it will list all the domain that meat the criteria. $lines = The following are web sites that are at 95%

Re: [PHP] POST_QUERY STRING without letting php to parse it.

2004-01-08 Thread Raditha Dissanayake
Hi, According to my understanding HTTP_RAW_POST data is populated only if PHP engine did not recognize the encoding of the post data. Since it recognizes www-url-encoded and multipart/form-data pretty well you are not likely to get much use out of it. However you can easily gain access to

Re: [PHP] Sorting data into columns vertically

2004-01-08 Thread Raditha Dissanayake
Where is your data stored? if you are using a DB surely using order by would less painfull? all the best dareal hamsta wrote: [ Please copy me off list. ] Say I have 7 items of data and I wish to sort them into 3 columns in a HTML table. The items are unevenly sized, so rather than print

[PHP] Error redirect function

2004-01-08 Thread Doug Parker
I have a message board script that requires certain parameters like message_id, thread_id, etc. The whole thing works fine, I'd like to have a generic error page to default to in the case that someone fools with the parameters above - for example, setting the thread id to 400 when there are only

[PHP] Re: Error redirect function

2004-01-08 Thread Gal
if () // Ok { } else{ Header(Location: ./error.php?iErrorType=1); die(); } Doug Parker wrote: I have a message board script that requires certain parameters like message_id, thread_id, etc. The whole thing works fine, I'd like to have a generic error page to default to in the case that

RE: [PHP] Re: Error redirect function

2004-01-08 Thread Humberto Silva
Don't forget to use the '@' before the mysql function so it doesn't show errors... Example: [EMAIL PROTECTED](..); -Original Message- From: Gal [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 8 de Janeiro de 2004 14:11 To: [EMAIL PROTECTED] Subject: [PHP] Re: Error redirect function

[PHP] PHP + Progress

2004-01-08 Thread Nilo
I would like to know if someone has already built an application where PHP access a Progress database. I'm not into Progress, so I've been experiencin' some issues on it's configuration with PHP, since PHP has no built-in Progress connectivity (as MySQL, Sybase...). I got some stuff about it on

Re: [PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Brian V Bonini
On Thu, 2004-01-08 at 03:33, Andy Higgins wrote: Hello, I have a requirement to run two different sites that are in different time zones on the same machine. Does anyone know if this is possible to do by running two instances of php and making a change in the php.ini? Or do you have any

Re: [PHP] Image Resizing with GD

2004-01-08 Thread Brian V Bonini
On Thu, 2004-01-08 at 00:20, Peter Vertes wrote: Hello List, I've tried googling but couldn't come up with anything useful so I'm turning to the list. Could anyone send me a link to a tutorial on how to resize images with GD ? Thanks in advance... FYI: Personally, I've found passing

[PHP] PHP code documentation tool

2004-01-08 Thread Karam Chand
Hello I recently got a fairly big project in PHP. Before starting I would like to clear some doubts. What is the best way to document such projects? How you developers document your project? For .NET etc. there are many documentation tools like doc-o-matic etc. Do we need to document the code

Re: [PHP] PHP code documentation tool

2004-01-08 Thread Richard Davey
Hello Karam, Thursday, January 8, 2004, 3:41:36 PM, you wrote: KC Is there any tool like doc-o-matic for PHP or anybody KC developing something like that? http://www.phpdoc.de/ -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] PHP code documentation tool

2004-01-08 Thread Matt Matijevich
[snip] What is the best way to document such projects? How you developers document your project? [/snip] GIYF http://phpdocu.sourceforge.net/ http://www.epersonae.com/snapping/archives/000390.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP code documentation tool

2004-01-08 Thread Vincent Jansen
I prefer phpDocumentor http://phpdocu.sourceforge.net/ --- Vincent Jansen -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: donderdag 8 januari 2004 16:44 To: Karam Chand Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP code documentation tool Hello Karam,

Re: [PHP] Re: Error redirect function

2004-01-08 Thread Chris Shiflett
--- Gal [EMAIL PROTECTED] wrote: Header(Location: ./error.php?iErrorType=1); Always use an absolute URL for the Location header. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook

[PHP] Re: getenv of document_name in php

2004-01-08 Thread Matt Grimm
$_SERVER['SCRIPT_NAME'] or $_SERVER['PHP_SELF'] -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org Louie Miranda [EMAIL

[PHP] Not working?

2004-01-08 Thread Jas
I think I must be missing something but this command isn't renaming the file specified... Pointers, tips appreciated! system(rename('/path/to/new.sh', '/path/to/old.$today')); /to directory has permissions set to current user and is also owned by the current user (test_user)... I can write

Re: [PHP] Not working?

2004-01-08 Thread Roger Spears
Jas wrote: I think I must be missing something but this command isn't renaming the file specified... Pointers, tips appreciated! system(rename('/path/to/new.sh', '/path/to/old.$today')); /to directory has permissions set to current user and is also owned by the current user (test_user)...

Re: [PHP] Not working?

2004-01-08 Thread R'twick Niceorgaw
Hi jason, Quoting Jas [EMAIL PROTECTED]: system(rename('/path/to/new.sh', '/path/to/old.$today')); I don't think this is correct syntax. Either use the php rename function like rename('/path/to/new.sh', '/path/to/old.$today'); or if you want to use system then use system (rename

Re: [PHP] Not working?

2004-01-08 Thread Justin Patrin
Roger Spears wrote: Try this: system(rename('/path/to/new.sh', '/path/to/old.$today')); Actually, it should be this: rename('/path/to/new.sh', '/path/to/old.$today'); -- paperCrane Justin Patrin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Not working?

2004-01-08 Thread Matt Grimm
You can't use variables inside single quotes, either. This: '/path/to/old.$today' ought to be: /path/to/old.$today -- Matt Grimm Jas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think I must be missing something but this command isn't renaming the file specified... Pointers,

[PHP] php5 overload()

2004-01-08 Thread Alex Crivat
Hallo, I;ve just installed php5 and found that overload() function does not work. Actually it does not exist...I get this error : Fatal error: Call to undefined function overload() in /usr/share/pear/DB/DataObject.php on line 2889 Any ideas ? 10x -- Alex Crivat WWW: http://axu.rdsnet.ro GPG:

php-general Digest 8 Jan 2004 19:57:13 -0000 Issue 2519

2004-01-08 Thread php-general-digest-help
php-general Digest 8 Jan 2004 19:57:13 - Issue 2519 Topics (messages 174034 through 174064): Re: script/binary that tracks links through logs 174034 by: Mike Migurski php on linux.. 174035 by: khoa vo 174036 by: Miguel J. Jiménez 174043 by: Jay Blanchard

[PHP] open_basedir clarification

2004-01-08 Thread Matt Grimm
If my server has an open_basedir restriction in place for my home directory, I understand that to mean I can only open files in the same directory as whatever script is currently running. Is that correct? -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820

[PHP] Re: php on linux..

2004-01-08 Thread memoimyself
Hello Khoa, On 8 Jan 2004 at 0:13, khoa vo wrote: index.html-- form action=action.php method=POST Your name: input type=text name=name / input type=submit /form That's fine, but that's not what you have up on your web space. Your form is pointing to action.html, not

[PHP] Content-type vs session_start()

2004-01-08 Thread Børge Strand
I have a problem with html headers using sessions. I guess it has to do with the Content-type line. My ISP uses PHP 4.3.4 with register_globals = On (although I want this to work with Off too). My program (test3.cgi, test3.php) simply logs the number of times I have accessed a web site. As a php

Re: [PHP] Content-type vs session_start()

2004-01-08 Thread Brad Pauly
On Thu, 2004-01-08 at 14:14, Brge Strand wrote: [snip] Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n;

Re: [PHP] Content-type vs session_start()

2004-01-08 Thread Chris Shiflett
--- Børge Strand [EMAIL PROTECTED] wrote: I have a problem with html headers using sessions. I think you mean HTTP headers. I guess it has to do with the Content-type line. Yes, and you seem to have a fundamental misunderstanding between using PHP as an Apache module versus using PHP as a CGI

[PHP] post vars not by form

2004-01-08 Thread Nabil
HI, Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? i want post method , to post my vars to another php on another server , then i have to read the body that will be printed by fopen ... so i can not use Location: example

[PHP] upload and RENAME picture

2004-01-08 Thread Matt Hedges
Hello, thanks to ya'll I've gotten a picture uploaded... but now what I can't figure out how to do is rename it. I want to rename it something like $id.extension... right now it is just showing up in the directory as the original file... any ideas? thanks matt -- PHP General Mailing List

Re: [PHP] upload and RENAME picture

2004-01-08 Thread Matt Matijevich
[snip] any ideas? [/snip] Have you tried move_uploaded_file? http://www.php.net/move_uploaded_file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] post vars not by form

2004-01-08 Thread Matt Matijevich
[snip] Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? [/snip] I have never used it but I think http://pear.php.net/package/HTTP_Client is what you want to look at -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] post vars not by form

2004-01-08 Thread Chris Shiflett
--- Matt Matijevich [EMAIL PROTECTED] wrote: [snip] Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? [/snip] I have never used it but I think http://pear.php.net/package/HTTP_Client is what you want to look at You

[PHP] Help parsing text file?

2004-01-08 Thread Carlton L. Whitmore
I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. Carlton.

[PHP] Please help with mail function

2004-01-08 Thread Rolf Berkenbosch
Hello all, I have a big problem with the mail function in a php script. If I run this script with root access, the mail function is working. If I try to run it like http://www.i-s-u.nl/test.php it won't work. What is happening, what can I do??? Below the little script: ? mail([EMAIL

Re: [PHP] Help parsing text file?

2004-01-08 Thread Brad Pauly
On Thu, 2004-01-08 at 16:27, Carlton L. Whitmore wrote: I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. I would guess that

[PHP] Re: post vars not by form

2004-01-08 Thread Justin Patrin
Nabil wrote: HI, Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? i want post method , to post my vars to another php on another server , then i have to read the body that will be printed by fopen ... so i can not use

[PHP] Buffalo'ed, stumped, confused...

2004-01-08 Thread Robin Kopetzky
Good evening. I'm trying to read using $_POST, 4 radio buttons named miles. I tried reading the selected value with $_POST['miles[0]'], etc. with no success. I've even tried using foreach to read the selected radio button with no success. Help!! I'm totally stumped with this one. I thought the

Re: [PHP] Buffalo'ed, stumped, confused...

2004-01-08 Thread Richard Davey
Hello Robin, Friday, January 9, 2004, 12:31:16 AM, you wrote: RK I'm trying to read using $_POST, 4 radio buttons named miles. I tried RK reading the selected value with $_POST['miles[0]'], etc. with no success. Radio buttons can only have 1 eventual outcome (hence the whole point of them) and

Re: [PHP] Buffalo'ed, stumped, confused...

2004-01-08 Thread John W. Holmes
Robin Kopetzky wrote: I'm trying to read using $_POST, 4 radio buttons named miles. I tried reading the selected value with $_POST['miles[0]'], etc. with no success. I've even tried using foreach to read the selected radio button with no success. It's just $_POST['miles']. :) -- ---John

Re: [PHP] open_basedir clarification

2004-01-08 Thread Matt Grimm
Can anyone clarify this for me? Is open_basedir recursive or restricted to the exact paths specified? -- Matt Grimm Matt Grimm [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If my server has an open_basedir restriction in place for my home directory, I understand that to mean I

Re: [PHP] php5 overload()

2004-01-08 Thread Marek Kilimajer
Alex Crivat wrote: Hallo, I;ve just installed php5 and found that overload() function does not work. Actually it does not exist...I get this error : Fatal error: Call to undefined function overload() in /usr/share/pear/DB/DataObject.php on line 2889 Any ideas ? 10x overload is the standard

[PHP] Re: upload and RENAME picture

2004-01-08 Thread Bossek
use funciton rename http://si2.php.net/manual/en/function.rename.php rename($old,$new) or die(can't do that!); Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, thanks to ya'll I've gotten a picture uploaded... but now what I can't figure out how to do is rename

[PHP] php_hostconnect()

2004-01-08 Thread Anthony Ritter
I currently have websites with two ISP's. I am getting a lot of warnings throughout a .php script on one server - such as: php_hostconnect() I have used the _same_ .php script exactly on my other ISP's server and I don't get any warnings. In addition, I have tested this script locally on

[PHP] Re: Help parsing text file?

2004-01-08 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. Carlton.

[PHP] detecting flash in php

2004-01-08 Thread Louie Miranda
is there anyway of detecting flash? in php -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] detecting flash in php

2004-01-08 Thread Leif K-Brooks
Louie Miranda wrote: is there anyway of detecting flash? in php Detecting whether the user has Flash enabled, you mean? No. PHP is server-side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: detecting flash in php

2004-01-08 Thread Paul Chvostek
On Fri, Jan 09, 2004 at 01:11:38PM +0800, Louie Miranda wrote: is there anyway of detecting flash? in php Not really. But you're not completely out in the cold. Note that PHP runs on the server, so any test you do has to be offloaded to the client side. Use Javascript for this. Use MING to

[PHP] php.ini config on 4.3.4

2004-01-08 Thread Turbo
Hi I use windows Xp,apache,php 4.3.4.I can recieve variable from form by $_POST[''] (Short Term).But i can not recieve variable from form by $HTTP_POST_VARS[''] (Long Term).Include other recieve variable ( GET,SESSION,COOKIE). How to customize config? Matrix -- PHP General Mailing

Re: [PHP] php.ini config on 4.3.4

2004-01-08 Thread John W. Holmes
Turbo wrote: I use windows Xp,apache,php 4.3.4.I can recieve variable from form by $_POST[''] (Short Term).But i can not recieve variable from form by $HTTP_POST_VARS[''] (Long Term).Include other recieve variable ( GET,SESSION,COOKIE). Yes you can. Let me use my crystal ball and guess that