php-general Digest 22 May 2006 00:22:54 -0000 Issue 4141

2006-05-21 Thread php-general-digest-help
php-general Digest 22 May 2006 00:22:54 - Issue 4141 Topics (messages 236570 through 236592): Re: IP to country DB and script 236570 by: Kevin Davies 236571 by: Kevin Davies 236573 by: Ryan A 236577 by: tedd 236579 by: Ryan A 236581 by: tedd

Re: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-21 Thread chris smith
On 5/21/06, Beauford [EMAIL PROTECTED] wrote: The following are the errors I am getting - quite lengthy. Thanks $ make gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.lo gdft.c:1366:35:

[PHP] selecting current month from a database

2006-05-21 Thread Paul Goepfert
Hi all, I know this might be trivial problem but I can't seem to figure it out. Here is my problem I have a drop down menu where I have the months of year as menu items. I want to be able to have the current month be the selected month. I have tried using the date function as the way to set

[PHP] Uploading Files

2006-05-21 Thread P. Guethlein
I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? ?php $numoffile = 1; $file_dir = d:/upload/; if ($_FILES['myfiles']) { print_r ($_FILES); for

Re: [PHP] selecting current month from a database

2006-05-21 Thread Paul Novitski
At 11:45 PM 5/20/2006, Paul Goepfert wrote: I have a drop down menu where I have the months of year as menu items. I want to be able to have the current month be the selected month. I have tried using the date function as the way to set the current month as the selected value but it seems that

Re: [PHP] Uploading Files

2006-05-21 Thread Rabin Vincent
On 5/21/06, P. Guethlein [EMAIL PROTECTED] wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? ?php $numoffile = 1; $file_dir = d:/upload/; if

[PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Hey, Can anybody recommend a IP to country (or better still IP-city) database and script? I have found some leads via google but would like to know what you guys are using or can recommend. Or just the DB would do, I can write the script if I have to. Thanks! Ryan -- - The faulty interface

RE: [PHP] IP to country DB and script

2006-05-21 Thread Kevin Davies
snip Can anybody recommend a IP to country (or better still IP-city) database and script? /snip Ryan, I've used Tracewatch (a web stats package) on a couple of sites, and it comes with a CSV of IP to Country conversions I believe. URL: www.tracewatch.com HTH, Kev -- PHP General Mailing

RE: [PHP] IP to country DB and script

2006-05-21 Thread Kevin Davies
snip URL: www.tracewatch.com /snip Seems like their data is sourced from here: http://ip-to-country.webhosting.info/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] detect if file exist

2006-05-21 Thread Alain Roger
Hi, i have 1 folder, in this folder sometime a file can be sometimes not... 1. i would like to detect if the folder contains a file or not. only 1 file can be in this folder but i do not know the name of this file, and the extension should be xls. when this file exists, i want to display the

RE: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Thanks Kevin, Will look into it, I think I found the same link via the SEs...am not sure though. Cheers! Ryan --- Kevin Davies [EMAIL PROTECTED] wrote: snip URL: www.tracewatch.com /snip Seems like their data is sourced from here: http://ip-to-country.webhosting.info/ -- PHP

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
U file_exists() ? A simple search on the search engines for php file exists gave me loads of results... Dude, dont be lazy and just post here or you are going to get a lot of grief...do a search on web then come back if you dont find anything or have questions... And trust me, this is one

Re: [PHP] detect if file exist

2006-05-21 Thread Rabin Vincent
On 5/21/06, Alain Roger [EMAIL PROTECTED] wrote: i have 1 folder, in this folder sometime a file can be sometimes not... 1. i would like to detect if the folder contains a file or not. only 1 file can be in this folder but i do not know the name of this file, and the extension should be xls.

Re: [PHP] detect if file exist

2006-05-21 Thread Rabin Vincent
On 5/21/06, Ryan A [EMAIL PROTECTED] wrote: U file_exists() ? file_exists doesn't help here since the filename of the file is not known. glob or the *dir functions do the trick. Rabin [please bottom-post...] A simple search on the search engines for php file exists gave me loads of

Re: [PHP] IP to country DB and script

2006-05-21 Thread tedd
At 4:59 AM -0700 5/21/06, Ryan A wrote: Hey, Can anybody recommend a IP to country (or better still IP-city) database and script? I have found some leads via google but would like to know what you guys are using or can recommend. Or just the DB would do, I can write the script if I have to.

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
On 5/21/06, Ryan A [EMAIL PROTECTED] wrote: U file_exists() ? file_exists doesn't help here since the filename of the file is not known. glob or the *dir functions do the trick. Rabin Its all connected, had you searched the SEs first, your would have found file_exists(), then if

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Hey Tedd, Ryan: You might want to review: http://www.weberdev.com/get_example-3091.html Thanks for the link. I also have: http://xn--ovg.com/location If you want that, please let me know and I'll provide. As usual, most generious, thanks for the offer. I'm still testing 3 that

[PHP] it don�t works fine.

2006-05-21 Thread Jo�o C�ndido de Souza Neto
Hi everyone. I´m with a big trouble using php 5 + iis 5.1 in windows xp professional. It was working fine, but suddenly stop working. under my root folder i´ve got a system folder that run php-cgi.exe fine, but files under this folder (e.g. system/function/function1.php) isn´t recognised as a

Re: [PHP] IP to country DB and script

2006-05-21 Thread tedd
At 10:43 AM -0700 5/21/06, Ryan A wrote: Hey Tedd, Ryan: You might want to review: http://www.weberdev.com/get_example-3091.html Thanks for the link. I also have: http://xn--ovg.com/location If you want that, please let me know and I'll provide. As usual, most generious,

[PHP] Re: it don�t works fine.

2006-05-21 Thread Jo�o C�ndido de Souza Neto
It´s incredible. As soon as i wrote this message, it beguns to work fine. thanks everyone. João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi everyone. I´m with a big trouble using php 5 + iis 5.1 in windows xp professional. It was working fine,

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
Hey Tedd, As always in life, your choices are quick, good, and inexpensive -- but you can only pick two. :-) Hey! Thats a good one, am going to use it in other places :-) Thanks! In any event, if you find a free one better than what I provided, please share. Will do, the problem is,

[PHP] Re: it don�t works fine.

2006-05-21 Thread Jo�o C�ndido de Souza Neto
It´s incredible. As soon as i wrote this message, it beguns to work fine. thanks everyone. João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi everyone. I´m with a big trouble using php 5 + iis 5.1 in windows xp professional. It was working fine,

Re: [PHP] Date() finding yesterday

2006-05-21 Thread Scott Hurring
mktime also works: http://php.net/mktime: date(Y-m-d, mktime( ... )) On 5/21/06, Rabin Vincent [EMAIL PROTECTED] wrote: On 5/21/06, John Taylor-Johnston [EMAIL PROTECTED] wrote: I cannot seem to get this right. How can I produce yesterday? $today = date(Y-m-d); $yesterday = date(Y-m-) .

Re: [PHP] detect if file exist

2006-05-21 Thread tedd
At 3:52 PM +0200 5/21/06, Alain Roger wrote: Hi, i have 1 folder, in this folder sometime a file can be sometimes not... 1. i would like to detect if the folder contains a file or not. only 1 file can be in this folder but i do not know the name of this file, and the extension should be xls.

Re: [PHP] IP to country DB and script

2006-05-21 Thread tedd
At 11:01 AM -0700 5/21/06, Ryan A wrote: As always in life, your choices are quick, good, and inexpensive -- but you can only pick two. :-) Hey! Thats a good one, am going to use it in other places :-) Thanks! No problem -- I met with a client yesterday where I told him that. He

Re: [PHP] IP to country DB and script

2006-05-21 Thread Ryan A
--- tedd [EMAIL PROTECTED] wrote: Hey, At 11:01 AM -0700 5/21/06, Ryan A wrote: As always in life, your choices are quick, good, and inexpensive -- but you can only pick two. :-) Hey! Thats a good one, am going to use it in other places :-) Thanks! No problem -- I met with

Re: [PHP] Uploading Files

2006-05-21 Thread tedd
At 1:52 AM -0700 5/21/06, P. Guethlein wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. Im working with the below. Can you help? Guethlein: Yes, try this -- watch for line breaks. Also, create folders

[PHP] php transparent proxy

2006-05-21 Thread IraqiGeek
Hi all, Is anyone aware of a php script that runs as a proxy (not a web proxy)? I have a hosting account with a dedicated IP, and I'm wondering if I can use this account to run a proxy where I enter my account's dedicated IP in the browser as a proxy, and use that to surf the net. I am

Re: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
I'm still very frustrated trying to figure out how to upload a file. I must have tried 15 different coding examples and none of them work. When I try and debug and do a print_r($_FILES); All I'm getting back is array() with no data. File upload is allowed in my php.ini Can anyone offer any

RE: [PHP] Uploading Files - Beginner

2006-05-21 Thread Jay Blanchard
[snip] I'm still very frustrated trying to figure out how to upload a file. I must have tried 15 different coding examples and none of them work. When I try and debug and do a print_r($_FILES); All I'm getting back is array() with no data. File upload is allowed in my php.ini Can anyone

Re: [PHP] Uploading Files - SOLVED

2006-05-21 Thread P. Guethlein
It worked perfectly! ES Simple Uploader Script located at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html If anyone else is on their learning curve... -Pete At 04:56 PM 05/21/2006, P. Guethlein wrote: I'm still very frustrated trying to figure

Re: [PHP] Problem after migration of script from Fedora Core to RHEL

2006-05-21 Thread Chris
benmoreassynt wrote: Hi, This has me confused. Have just moved servers from FC4 box to RHEL box. Basically all the settings seem to be the same. PHP5.0.4, MySQL 5.0.20 So it is telling that the script is trying to insert duplicate entries. The exact same script works fine on the old box

Re: [PHP] Problem after migration of script from Fedora Core to RHEL

2006-05-21 Thread Chris
Chris wrote: benmoreassynt wrote: Hi, This has me confused. Have just moved servers from FC4 box to RHEL box. Basically all the settings seem to be the same. PHP5.0.4, MySQL 5.0.20 So it is telling that the script is trying to insert duplicate entries. The exact same script works

RE: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
Jay, Thanks for the response. I finally found a script that actually worked immediately. I posted the link in an earlier message. I found the authors directly link here http://www.energyscripts.com/Products/product2.html for others that may need help. -Pete At 05:23 PM 05/21/2006, you

[PHP] Need Help Please

2006-05-21 Thread marvin hunkin
Hi. doing an assignment, for my Certificate Four In Website Administration. now got a couple of problems. will explain what i have to do. create a html form, which i have done. in textpad. now, when i open the form, it does not set focus to the first form field which is the user name. goes to

Re: [PHP] Need Help Please

2006-05-21 Thread Wolf
Sure we can... Go back and read your manual. Then surf Google. Then tell us where you are getting the certificate from since some of us might be wasting our time taking a class some place that teaches you so poorly. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Need Help Please

2006-05-21 Thread Chris
marvin hunkin wrote: Hi. doing an assignment, for my Certificate Four In Website Administration. Wow someone doing an assignment has written some code :) Good stuff! $_POST['username']; $_POST['password']; if ('username'='username') ('password'='password') This little bit of code is your

Re: [PHP] Need Help Please

2006-05-21 Thread Chris
Wolf wrote: Sure we can... Go back and read your manual. Then surf Google. Then tell us where you are getting the certificate from since some of us might be wasting our time taking a class some place that teaches you so poorly. At least there were attempts at code which makes a nice

Re: [PHP] Need Help Please

2006-05-21 Thread John Nichel
marvin hunkin wrote: Hi. doing an assignment, for my Certificate Four In Website Administration. The tutor list is down the hall. now got a couple of problems. will explain what i have to do. create a html form, which i have done. in textpad. now, when i open the form, it does not set focus

[PHP] /usr/local/libexec/apache22/libphp4.so not installed

2006-05-21 Thread Noah
FreeBSD-4.11 After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 I no longer and finding that /usr/local/libexec/apache22/libphp4.so is getting installed. Any clues as to what I am doing wrong? I cant figure it out at the moment. --- snip --- # /usr/local/etc/rc.d/apache22.sh

Re: [PHP] Need Help Please

2006-05-21 Thread Paul Novitski
At 07:38 PM 5/21/2006, marvin hunkin wrote: now, when i open the form, it does not set focus to the first form field which is the user name. goes to the login button. why is this? Marvin, Although someone else has suggested you use JavaScript to set the focus on a particular form field, I

[PHP] /usr/local/libexec/apache22/libphp4.so not installed

2006-05-21 Thread Noah
FreeBSD-4.11 After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 from /usr/ports - I no longer am finding that /usr/local/libexec/apache22/libphp4.so is getting installed. Any clues as to what I am doing wrong? I cant figure it out at the moment. --- snip --- #

Re: [PHP] /usr/local/libexec/apache22/libphp4.so not installed

2006-05-21 Thread Chris
Noah wrote: FreeBSD-4.11 After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 from /usr/ports - I no longer am finding that /usr/local/libexec/apache22/libphp4.so is getting installed. Any clues as to what I am doing wrong? I cant figure it out at the moment. The error makes

[PHP] Thank You for Helping Me

2006-05-21 Thread marvin hunkin
Hi. would like to give a big thanks for helping me with my php problems. have resolved them, and just tested it, and works fine. thanks for chris, john and paul with their help. now have just uploaded my assignment. and now it works fine, when i tested it. typing in the correct username and

[PHP] Getting the right path output from $_SERVER

2006-05-21 Thread Dave M G
PHP General, What I am trying to achieve is to output the path in which the current script is executing, without having the name of the file attached. I'm hoping to be able to do this without complicated code to truncate path names and whatnot. Either of these two variables do what I want,

Re: [PHP] Getting the right path output from $_SERVER

2006-05-21 Thread Chris
Dave M G wrote: PHP General, What I am trying to achieve is to output the path in which the current script is executing, without having the name of the file attached. I'm hoping to be able to do this without complicated code to truncate path names and whatnot. Either of these two variables

Re: [PHP] /usr/local/libexec/apache22/libphp4.so not installed

2006-05-21 Thread Noah
On Mon, 22 May 2006 14:24:33 +1000, Chris wrote Noah wrote: FreeBSD-4.11 After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 from /usr/ports - I no longer am finding that /usr/local/libexec/apache22/libphp4.so is getting installed. Any clues as to what I am doing

Re: [PHP] /usr/local/libexec/apache22/libphp4.so not installed

2006-05-21 Thread Chris
Noah wrote: On Mon, 22 May 2006 14:24:33 +1000, Chris wrote Noah wrote: FreeBSD-4.11 After rebuilding php4-4.4.2_2 with Apache Module and apache-2.2.2 from /usr/ports - I no longer am finding that /usr/local/libexec/apache22/libphp4.so is getting installed. Any clues as to what I am doing