Re: [PHP] How to resolve IP with PHP

2002-01-21 Thread gaouzief
hi, i think there is a function that does just that look for gethostbyaddr($ip) in the documentation beware of the implication on the ressources , this function performs a reverse dns lookup which can be time consuming regards 21/01/2002 08:20:48, Police Trainee [EMAIL PROTECTED] wrote:

[PHP] File Uploading

2002-01-21 Thread Uma Shankari T.
Hello, How to upload files in a particular directory using php script in the browser itself Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] Re: php login scripts

2002-01-21 Thread LaserJetter
Depending on how secure the login information needs to be, you could just store it in a text file, maybe using password() to encrypt passwords. You could then access it using fopen() and save the contents of the file in an array. I'm not too hot on login and authentication though myself! I did

Re: [PHP] File Uploading

2002-01-21 Thread Jason Wong
On Monday 21 January 2002 10:34, Uma Shankari T. wrote: Hello, How to upload files in a particular directory using php script in the browser itself The gory details can be found in the chapter Handling File Uploads. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Love is

[PHP] Re: Having a problem with sessions?

2002-01-21 Thread Yasuo Ohgaki
Henrik Hudson wrote: SNIP _ session_start(); if (!isset($HTTP_SESSION_VARS[count])) { $HTTP_SESSION_VARS[count] = 0; } else { $HTTP_SESSION_VARS[count]++; } //Print the counter echo Counter is now: $HTTP_SESSION_VARS[count];\nbr\n; echo Let's

[PHP] Re: manual : Call-time pass-by-reference has been deprecated

2002-01-21 Thread Yasuo Ohgaki
Bruce Brackbill wrote: Hi, If Call-time pass-by-reference has deprecated so long ago, why are the instructions on how to do it still in the manual? http://www.php.net/manual/en/html/functions.arguments.html#functions.arguments.by-reference At least it should point out that it has

[PHP] RE: While on array?

2002-01-21 Thread Tim Ward
Foreach($anotherarray as $key=$value) Tim www.chessish.com http://www.chessish.com -- From: Daniel Alsén [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 20:30 To: PHP List Subject: While on array? Hi, i am fiddling with a

RE: [PHP] PHP-JavaScript

2002-01-21 Thread Tim Ward
Or get the JS to rewrite a query string in a link, but personally I wouldn't rely on JS that far. Tim www.chessish.com http://www.chessish.com -- From: Richard Crawford [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 23:32 To: Mårten Andersson

[PHP] RE: Printing structure and data of array

2002-01-21 Thread Tim Ward
Foreach($array as $key=$value) ech0($key=$valuebr); Tim www.chessish.com http://www.chessish.com -- From: Daniel Alsén [SMTP:[EMAIL PROTECTED]] Sent: 20 January 2002 19:33 To: PHP List Subject: Printing structure and data of array

Re: [PHP] best way to approach dates

2002-01-21 Thread DL Neil
Gidday Justin, For us guys that don't get dates very often, the subject is one of intense fascination! I answered a bunch of these questions a couple of weeks back, and reproduce that discussion below. Also some comments/responses to you interspersed:- I'm looking to normalise the way in

[PHP] recursive

2002-01-21 Thread Sandeep Murphy
hi, I hv an XML tree with some elements which keep repeating.. As of now, I am able to print only the last element.. I need to make the loop recursive in order to print all the elements.. wud appreciate any help.. TIA, sands like this: app_info app_id001/app_id

[PHP] Protect your code

2002-01-21 Thread Jan Grafström
Hi! Using the method to build a html-page from png s you can in a way make it inconviniant for the user to reuse the html-code. The problem is that the textquality is not very good and my host doesn´t have support for gif with fontfiles. I wonder if there is any other way to put text on your

php-general Digest 21 Jan 2002 11:40:12 -0000 Issue 1124

2002-01-21 Thread php-general-digest-help
php-general Digest 21 Jan 2002 11:40:12 - Issue 1124 Topics (messages 81296 through 81346): Re: Edit program 81296 by: B. van Ouwerkerk 81298 by: Richard Baskett 81299 by: bvr 81322 by: David Robley best way to approach dates 81297 by: Justin French

Re: [PHP] How to call Calling Non-Existing function

2002-01-21 Thread val petruchek
Not sure this is exactly what you need but try this: @Draw_Table() or default_func(); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: S. Murali Krishna [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, January 21,

[PHP] Can't include for higher level directory in php4.1.1

2002-01-21 Thread Khairil Yusof
Sorry if this is a newbie question, but I haven't followed the development of 4.1. All my previous code.. I've been able to do this: /index.php /general /content /content/index.php where under content I could include images from a higher level directory like this in content/index.php:

Re: [PHP] File Uploading

2002-01-21 Thread Pedja Delic
Try this: ?php copy($PHP_UPLOADED_FILE_NAME,$DOCUMENT_ROOT.$REQUEST_URI); ? - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 21, 2002 3:34 AM Subject: [PHP] File Uploading Hello, How to upload files in a particular

[PHP] Printout paper

2002-01-21 Thread Uma Shankari T.
Hello, How we find out how many printout pages taken by each user using php script? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] File Uploading

2002-01-21 Thread Uma Shankari T.
Hello, When i upload the file it is updating only in the document root directory.It is not updated in some other directory except the root directory.why is it so? Any one tell me the solution for this? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] File Uploading

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:24 * Uma Shankari T. said Hello, When i upload the file it is updating only in the document root directory.It is not updated in some other directory except the root directory.why is it so? Any one tell me

[PHP] News story with image - help

2002-01-21 Thread Will Hives
I guess you must all be getting very bored with this type of question..but away.. I have recently put together a simple news section which allows admin people to add, edit and delete stories from the site...I would like to add the function of adding an image to a story...I have managed to use the

[PHP] Integer in PHP

2002-01-21 Thread Jerry
Hi, I'm new in PHP, coming from JavaScript. In JavaScript you had the function parseInt which was really useful. For example parseInt(2.05) will return 2... How can I do that in PHP ? Thanks. Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] File Uploading

2002-01-21 Thread Jason Wong
On Monday 21 January 2002 21:17, Uma Shankari T. wrote: Hello, When i upload the file it is updating only in the document root directory.It is not updated in some other directory except the root directory.why is it so? Any one tell me the solution for this? The general procedure for

Re: [PHP] News story with image - help

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:32 * Will Hives said I guess you must all be getting very bored with this type of question..but away.. I have recently put together a simple news section which allows admin people to add, edit and delete stories from the

Re: [PHP] Integer in PHP

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:34 * Jerry said Hi, I'm new in PHP, coming from JavaScript. In JavaScript you had the function parseInt which was really useful. For example parseInt(2.05) will return 2... How can I do that in PHP ? Look up

Re: [PHP] Integer in PHP

2002-01-21 Thread val petruchek
intval (2.05); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Jerry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 21, 2002 3:35 PM Subject: [PHP] Integer in PHP Hi, I'm new in PHP, coming from JavaScript.

Re: [PHP] News story with image - help

2002-01-21 Thread Will Hives
in article [EMAIL PROTECTED], Nick Wilson at [EMAIL PROTECTED] wrote on 1/21/2002 1:36 PM: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:32 * Will Hives said I guess you must all be getting very bored with this type of question..but away.. I have recently put

Re: [PHP] News story with image - help

2002-01-21 Thread Nick Wilson
* On 21-01-02 at 14:46 * Will Hives said I guess you must all be getting very bored with this type of question..but away.. I have recently put together a simple news section which allows admin people to add, edit and delete stories from the site...I would like to add the function

[PHP] Re: Having a problem with sessions, Part Deux.

2002-01-21 Thread jean-david Arzur
Hello i had the same problem with horde (apache and php 4.1.1) (tried with apache 1.3.19, 1.3.20 and 1.3.22) i tried with session.use_cookies=0 in the php.ini and now it's correct, perhaps a cookie's management bug ? jean-david Arzur Henrik Hudson wrote: Just FYI. I posted the forwarded

RE: [PHP] Having a problem with sessions, Part Deux.

2002-01-21 Thread Jaime Bozza
Henrik, Which session handler are you using? Files, mm, User? Jaime Bozza -Original Message- From: Henrik Hudson [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 20, 2002 11:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Having a problem with sessions, Part Deux. Just FYI. I

[PHP] RE: recursive

2002-01-21 Thread Tim Ward
I'm not quite sure what you're having difficulty with, but this is, in principle, like mapping a file system structure ... which I do like this: function sitemap($path) { if ($dhandle = opendir($path)) { echo(ul); while ($file_name = readdir($dhandle))

Re: [PHP] on-line athletic training log

2002-01-21 Thread Miles Thompson
Check hotscripts, google, etc. Check phpauction - there is a remarkable similarity: here is an item (training schedule) and inputs which apply to it (results) (results) (results) Miles Thompson At 09:36 AM 1/21/2002 -0500, Brian V Bonini wrote: I need to build an on-line training log where a

[PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
Hello, I have a PHP content management application that I've developed. I'm looking to add data caching to it so the database doesn't get pounded all day long, the content on the site changes slowly, once or twice a day. Does anyone know of where I can look to find an

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 16:25 * Jeff Bearer said Hello, I have a PHP content management application that I've developed. I'm looking to add data caching to it so the database doesn't get pounded all day long, the content on the site

[PHP] Re: password=password('$password') ----- ? help me... :P

2002-01-21 Thread Robert V. Zwink
Try this: $query = SELECT username,password FROM users WHERE username=\.$username.\ AND password=\.password($password).\; MySQL needs all string data wrapped in quotes. Maybe the backslashes are a bit confusing at first, but its worth taking the time to

[PHP] It Worked! Re: agh - what am I doing wrong - regular expressions

2002-01-21 Thread sgibbs
Dear Martin, it worked!! Thank you SO much! - Shawna -Original Message- From: Martin Towell To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Sent: 1/20/02 10:25 PM Subject: RE: [PHP] agh - what am I doing wrong - regular expressions try this... I changed 1. the double quotes in $pattern =

[PHP] PHP vs Java reliability

2002-01-21 Thread Geoff Caplan
Hi folks Just putting together a brochure for a product authored in PHP, and making the case for LAMP (Linux/Apache/MySQL/PHP) as a platform, in a market where most competitors are Java based. I recently spoke to a very experienced sysadmin at an ISP who said they always recommend LAMP over

[PHP] Having a poblem with the mail() function

2002-01-21 Thread David Orn Johannsson
The thing is when i run this script which seems allright to me atleast, it always fails, Can anyone even guess what the problem might be? The webserver is running a php 4.1, SunOS 5.7, Apache, and sendmail which is required for the mail() function if I'm right? Thanks David

[PHP] Php login scripts using PHP4.01, Apache3.01 CGI on W2K

2002-01-21 Thread ignacio . estrada
Hi, am looking for good samples scripts for authentication, but I am using the CGI version of Apache. However could be a good way for make authentication using some file or database as the source for the login name and so on. Please let me know if you know where exists a good samples scripts

Re: [PHP] Having a poblem with the mail() function

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 16:41 * David Orn Johannsson said The thing is when i run this script which seems allright to me atleast, it always fails, Can anyone even guess what the problem might be? The webserver is running a php 4.1, SunOS 5.7,

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
On Mon, 2002-01-21 at 10:30, Nick Wilson wrote: I have a PHP content management application that I've developed. I'm looking to add data caching to it so the database doesn't get pounded all day long, the content on the site changes slowly, once or twice a day. On that basis

RE: [PHP] Having a poblem with the mail() function

2002-01-21 Thread David Orn Johannsson
It simply prints out Didn't work or fails the if statement, no errormsg or nothing, the page executes fine but the mail function is the enly thing that fails to execute. -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 21. janúar 2002 15:45 To: [EMAIL PROTECTED]

Re: [PHP] PHP-JavaScript

2002-01-21 Thread Richard Crawford
Unfortunately, that won't work if the value of the JS variable needs to change dynamically based on user interaction; document.write() only works as the page is loaded (well... MSIE might be different, but writing MSIE-only code is a bad practice). The best bet is to use an input field; input

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 16:47 * Jeff Bearer said On Mon, 2002-01-21 at 10:30, Nick Wilson wrote: I have a PHP content management application that I've developed. I'm looking to add data caching to it so the database doesn't get pounded

Re: [PHP] Having a poblem with the mail() function

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 16:54 * David Orn Johannsson said $address = [EMAIL PROTECTED]; $subject = Test; $body = test; if(mail($address, $subject, $body)) { echo(Success); } else {

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
Well, if you're caching but having your content updated twice a day wouldn't you be better off letting the db take the strain? I don't see how else you are going to make sure people are seeing the latest content as opposed to cached pages that are out of date. Let your db do the work, that's

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
But at 300,000 page views a day, even if the caches only have a ttl of 1 hour I'm still saving over %90 of the traffic from having to query the database. During our busy times I have a bottle neck with the database maxing out the CPU's, so If I can cut the queries the server won't be

[PHP] Error notification and pretty error page

2002-01-21 Thread Dan McCullough
How can i include error notification, like if an MySQL error occurs, to notify me of the offending page and what the error was, while having the page die quietly or nicely, like an message saying that the webmaster will be notified please continue? = dan mccullough

RE: [PHP] Having a poblem with the mail() function

2002-01-21 Thread David Orn Johannsson
Thanks alot I'll check into the php.ini Regards, David -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 21. janúar 2002 16:06 To: 'PHP-General' Subject: Re: [PHP] Having a poblem with the mail() function -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 17:24 * val petruchek said The greatest way of doing this is 1. develope php-script for generating updated html from moved php-script and updating index.html (e.g. ;) 2. develope another script or program which

[PHP] File upload

2002-01-21 Thread Danielle van Gladbach
How can I, using: INPUT TYPE=\FILE\ NAME=\UPLOAD_FOTO\ SIZE=\40\ specify the file extension. I want the user only to upload *.jpg. Thanks, Danielle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: PHP vs Java reliability

2002-01-21 Thread Philip Hallstrom
http://www.zend.com/zend/art/php-over-java.php the Why PHP on zend.com is a great place to go for this sort of stuff... On Mon, 21 Jan 2002, Geoff Caplan wrote: Hi folks Just putting together a brochure for a product authored in PHP, and making the case for LAMP (Linux/Apache/MySQL/PHP) as

Re: [PHP] Error notification and pretty error page

2002-01-21 Thread Jimmy
Hi Dan, How can i include error notification, like if an MySQL error occurs, to notify me of the offending page and what the error was, while having the page die quietly or nicely, like an message saying that the webmaster will be notified please continue? you can make a generic function to

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
The greatest way of doing this is 1. develope php-script for generating updated html from moved php-script and updating index.html (e.g. ;) 2. develope another script or program which will call the first one periodically (once an hour, e.g.) I like that. It sounds similar to

[PHP] .php unrecognizable extension

2002-01-21 Thread Dion
I am running Apache 1.3 on WindowsXP just for some developement stuff that I do at home. I just installed PHP to the server but I can't get it to recognize .php as an extension and to have it load those as if they were .html files. IE index.php it just shows a directory listing instead of

Re: [PHP] File upload

2002-01-21 Thread val petruchek
How can I, using: INPUT TYPE=\FILE\ NAME=\UPLOAD_FOTO\ SIZE=\40\ specify the file extension. I want the user only to upload *.jpg. You can only check $userfile_type to detect the type of uploaded file. You can specify nor extension to browse dialog neither default path for browsing...

Re: [PHP] .php unrecognizable extension

2002-01-21 Thread val petruchek
I am running Apache 1.3 on WindowsXP just for some developement stuff that I do at home. I just installed PHP to the server but I can't get it to recognize .php as an extension and to have it load those as if they were .html files. IE index.php it just shows a directory listing instead

Re: [PHP] Regex error

2002-01-21 Thread Bas Jochems
use $rgTemp = split('[|]',$szTag); instead of $rgTemp = split(|,$szTag); on line 2 PHP List wrote: Hi, Can someone please tell me why the this is happening: 1) $szTag = test|3; 2) $rgTemp = split(|,$szTag); 3) $szTag = $rgTemp[0]; 4) $nItemID = $rgTemp[1]; ^line numbers for

Re: [PHP] .php unrecognizable extension

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 17:45 * Dion said I am running Apache 1.3 on WindowsXP just for some developement stuff that I do at home. I just installed PHP to the server but I can't get it to recognize .php as an extension and to have it load those

Re: [PHP] File upload

2002-01-21 Thread JSheble
you could write a bit of JavaScript to run on the form's onSubmit event or even the fields onBlur event. Then in your JavaScript, parse out the file name and extension to validate. It's not 100% accurate since users could rename any file to have a JPG extension, but it works for the

Re: [PHP] Having a problem with sessions, Part Deux.

2002-01-21 Thread Henrik Hudson
I am using files on both systems. The session files are also showing up on both systems. (/tmp) On Monday 21 January 2002 08:15, Jaime Bozza wrote: Henrik, Which session handler are you using? Files, mm, User? Jaime Bozza -Original Message- From: Henrik Hudson

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread DL Neil
The greatest way of doing this is 1. develope php-script for generating updated html from moved php-script and updating index.html (e.g. ;) 2. develope another script or program which will call the first one periodically (once an hour, e.g.) I like that. It sounds similar to

RE: [PHP] PHP-JavaScript

2002-01-21 Thread Tim Ward
hence my qualification, but you can alter the contents of elements using javascript on the fly, using the innerHTML property, for example. Tim www.chessish.com -Original Message- From: Richard Crawford [SMTP:[EMAIL PROTECTED]] Sent: 21 January 2002 15:59 To: Tim

[PHP] PHP cross referencer

2002-01-21 Thread DL Neil
Is anyone aware if such a debugging/documentation tool exists? What is/do I mean by a cross referencer? A tool which will list all of the variables (and function names ?and include files) used within a program/script, together with the line number(s) where they are mentioned - hopefully

Re: [PHP] PHP-JavaScript

2002-01-21 Thread Richard Crawford
Yes, but only in MSIE. As far as I know, no other browser supports the innerHTML property; at least, I have never managed to get it to work in Netscape, Mozilla, Konquerer, or Opera. And I stand firmly behind my earlier statement that developing code that bombs on non-MSIE browsers is a bad

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
Since reading your first post I've been racking my brains/teasing my memory. I'm sure there's an article on one of the popular PHP sites that talks about exactly this: creating a web page dynamically, but serving it as static HTML (ie with no back-end db access per serving). This idea came to

Re: [PHP] File upload

2002-01-21 Thread Bogdan Stancescu
The official way to do this would be using the accept attribute: accept = content-type-list [CI] This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly. User agents may use this information to filter out non-conforming files when

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
Are you sure that cacheing database data is the right way to approach the problem? How about using a cron job to write static HTML pages from live data? You could set up such a system to run every few hours or so. I haven't done that in PHP, but it's something I'm looking at doing for a

Re: [PHP] Re: Programming a state controller for page transitions

2002-01-21 Thread Erik Price
Check out phorum's source, I find it very well-documented and educational. I can't imagine how a collaborative effort can work with obfuscated source... On Saturday, January 19, 2002, at 05:03 AM, Geoff Caplan wrote: Some authors compound the problem by using cryptic variable names,

[PHP] associative arrays..help!

2002-01-21 Thread Sandeep Murphy
Hi, This is a long one so pl bear with me... I have an XML structure as follows: app_info app_id001/app_id app_nameWORD/app_name app_info //SUB APPLICATION app_id002/app_id

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be misunderstanding

RE: [PHP] Error notification and pretty error page

2002-01-21 Thread Alex Dowgailenko
Create a function like error_handling() in it have it do echo We're sorry, we are currently experiencing technical difficulties blah blah blah and have it email you whatever mysql_error() says. then do: mysql_query(SELECT whatever FROM whatever) or die(error_handling()); -Original

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be

[PHP] ftp functions

2002-01-21 Thread sundogcurt
disclamer Before I get flamed for not reading the manual or trying on my own, I would just like to say that I have been working on this for a few days and have read the manual and looked at quite a few examples, all of which seem to elude me. /disclamer I want to upload an image, and I want

[PHP] Tracking users...

2002-01-21 Thread jas
I am fairly new to PHP and have setup a site that connects to a MySQL db to store different information from our users, however what I would like to setup is something that I could place on a few pages to track users for demographic purposes. What I need to do is as a page is visited I need to

Re: [PHP] ftp functions

2002-01-21 Thread Jim Lucas [php]
one problem, the ftp functions that you are trying to use are on the server. therefor you are trying to connect one server to another server. you are not connecting from your workstation to the remote server. for what you are attempting to do, ftp will not work. Jim Lucas - Original

Re: [PHP] Tracking users...

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 19:58 * jas said I am fairly new to PHP and have setup a site that connects to a MySQL db to store different information from our users, however what I would like to setup is something that I could place on a few pages to

[PHP] Best way to get the remote IP address?

2002-01-21 Thread Alan McFarlane
I'm trying to get the remote IP address of a user in a (PHP) version and server-software independant way, but am having a few problems. Obviously, I've seen $HTTP_SERVER_VARS['REMOTE_ADDR'], but Ive also seen references to $HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']. Is there any generic solution

Re: [PHP] Re: Programming a state controller for page transitions

2002-01-21 Thread Geoff Caplan
Erik I can't imagine how a collaborative effort can work with obfuscated source... Nor can I, but it is surprising how often I download code that is pretty much unreadable. I think a lot of people who try to get projects going just don't think this through, and then wonder why they don't get

[PHP] when 1+1 is not equal to 2... STRANGE float behavior

2002-01-21 Thread Marc Swanson
I understand the issues about binary precision for floating point numbers on standard base 2 systems but I'm unsure of the propper way to fix this problem. Here is the base test case: ? $contract_amount = 9961.00; $bill1 = .95; $bill2 = .05; $billable_this_month += ($contract_amount *

Re: [PHP] While on array?

2002-01-21 Thread anders nawroth
ie - i have: while($myrow=mysql_fetch_array($result)) { etc... But i want the loop to run with an array i created earlier ($anotherarray = [key1] = value1, [key2] = value2). use foreach($anotherarray as $key = $value) { . A Nawroth -- PHP General Mailing List

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread DL Neil
Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be

Re: [PHP] when 1+1 is not equal to 2... STRANGE float behavior

2002-01-21 Thread Marc Swanson
Answered my own question... rounding using the round function to two decimal places did the trick: ? $contract_amount = 9961.00; $bill1 = .95; $bill2 = .05; $billable_this_month += ($contract_amount * $bill1); $paid_to_date += ($contract_amount * $bill2); $paid_to_date =

Re: [PHP] ftp functions

2002-01-21 Thread sundogcurt
Would you suggest that I use the copy function instead? I have tried the copy function in a prelim test and I had trouble with the function finding the file on the local machine. From what I have seen in the FAQs on PHPBUILDER and this is not an uncommon problem. One possible solution was that

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Richard Crawford
DL Neil wrote: Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be

[PHP] ok, I ask again.. how to encrypt to be able to match database info?

2002-01-21 Thread Hawk
I've asked this several times but it doesn't seem like anyone understands my problem, the passwords are encrypted in the database, but I don't know how to match an unencrypted password from the login form with the database? is it possible to encrypt the password I sent from the form in php or

[PHP] Index.PHP won't load like Index.HTML

2002-01-21 Thread Dion
I finally got PHP running on Apache in WinXP. I can execute PHP and all that, but I can't get it to open in index.php file like it would open an index.html file.. ie, first file it looks for in a new directory is index.xxx but it won't open the PHP file... Anyone tell me what i need to

Re: [PHP] Index.PHP won't load like Index.HTML

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 20:44 * Dion said I finally got PHP running on Apache in WinXP. I can execute PHP and all that, but I can't get it to open in index.php file like it would open an index.html file.. ie, first file it looks for in a new

Re: [PHP] ok, I ask again.. how to encrypt to be able to match database info?

2002-01-21 Thread Mark
what kind of encryption are you talking about? If you mean mysql's password() function, then no you can't do that in php. obviously whatever you use has to match the original encryption. - Mark On Mon, 21 Jan 2002 20:36:59 +0100, Hawk wrote: I've asked this several times but it doesn't seem

Re: [PHP] ok, I ask again.. how to encrypt to be able to matchdatabase info?

2002-01-21 Thread Antonio S. Martins Jr.
On Mon, 21 Jan 2002, Hawk wrote: I've asked this several times but it doesn't seem like anyone understands my problem, the passwords are encrypted in the database, but I don't know how to match an unencrypted password from the login form with the database? is it possible to encrypt the

[PHP] Connection to MySQL with SSL.

2002-01-21 Thread Rodolfo Gonzalez
Hi, if a MySQL server is compiled with SSL support (that's for the 4 series), is it possible to use this secure connection from a PHP script (with mysql_connect)?. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Nobody know nothing about? Php login scripts using PHP4.01, Apache3.01CGI on W2K

2002-01-21 Thread ignacio . estrada
Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 ignacio.estrada@ cfe.gob.mx Para: [EMAIL PROTECTED] cc:

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread DL Neil
Even with straight HTML, a server's load capacity is not infinite. If my own server, an old Pentium with 4 GB of hard drive space, and which serves nothing but static HTML pages, got hit with more than a couple hundred hits in a short period of time, it would bomb. I must be

Re: [PHP] Best way to get the remote IP address?

2002-01-21 Thread Bogdan Stancescu
I can't seem to find any references to HTTP_X_FORWARDED_FOR in the PDF PHP documentation from January 2001, so you should probably best stick with either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use $REMOTE_ADDR in functions make sure you do a global on it first) - I

Re: [PHP] Best way to get the remote IP address?

2002-01-21 Thread Ing. Daniel Manrique
I can't seem to find any references to HTTP_X_FORWARDED_FOR in the PDF PHP documentation from January 2001, so you should probably best stick with either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use $REMOTE_ADDR in functions make sure you do a global on it first) - I

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
DN, Yes the db server and the webserver are on the same box, local connections are much faster than network ones according to mysql. When the site is busy the percent of the system being used by mysql and that being used by PHP/Apache, I estemate would be around 90%-10% so if I get the

Re: [PHP] ftp functions

2002-01-21 Thread Jim Lucas [php]
the copy() function is subject to the same problem that the ftp functions are. you are trying to call a function that is on the remote server and you want it to do things to the local machine. unfortunatly you cannot do this. through a web browser you have no direct access to the local client

[PHP] foreach array into mail isn´t working

2002-01-21 Thread Josepablo Pérez
Hello people, I got this script: ? $maildb = file(mailaddr.txt); foreach ($maildb as $address) { mail($address, THis is the subject\n, This is the message\n, From: [EMAIL PROTECTED]\n); } ? The mailaddr.txt looks like: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] However the

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread DL Neil
Jeff, Seeing Richard thinks I have blue (?blood) in (my) veins, I'd better respond nobly and quickly... Yes the db server and the webserver are on the same box, local connections are much faster than network ones according to mysql. When the site is busy the percent of the system being

Re: [PHP] foreach array into mail isn´t working

2002-01-21 Thread DL Neil
Josepablo, ? $maildb = file(mailaddr.txt); foreach ($maildb as $address) { mail($address, THis is the subject\n, This is the message\n, From: [EMAIL PROTECTED]\n); } ? The mailaddr.txt looks like: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] However the script does send

RE: [PHP] ok, I ask again.. how to encrypt to be able to match database info?

2002-01-21 Thread Martin Towell
whichever way the original password was encrypted, encrypt the incoming password the same way, ie. if the original was encrypted in php, encrypt the incoming password in php before passing it to the sql statement, similarly if the original password was encrypted using mysql. Martin

  1   2   >