php-general Digest 19 Jan 2005 11:08:01 -0000 Issue 3236

2005-01-19 Thread php-general-digest-help
php-general Digest 19 Jan 2005 11:08:01 - Issue 3236 Topics (messages 206719 through 206735): $_SERVER['HTTP_USER_AGENT'] in html email 206719 by: Graham Anderson 206722 by: Graham Anderson Re: Recursive Array Iterator 206720 by: Gerard Samuel Re: searching and

Re: [PHP] debugging

2005-01-19 Thread William Stokes
I'm trying to get the ini_set(error_reporting,E_ALL); work. No matter what kind of errors I write I just get blank screen when the script fails. Do I need to also echo the errors to screen? Or can the error reporting be disabled by the server admin (my adsl operator)? so that no errors are

[PHP] Re: SPL Exceptions

2005-01-19 Thread M. Sokolewicz
Gerard Samuel wrote: Does anyone know when the exception objects listed in item #6 at http://www.php.net/~helly/php/ext/spl/ will be available in base php5?? Thanks when you install the SPL extension :) I don't think it's planned for php5-source though -- PHP General Mailing List

RE: [PHP] my for loop's gone bananas.. has yours?

2005-01-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Tim Burgan [mailto:[EMAIL PROTECTED] Sent: 19 January 2005 06:19 I have a for loop to create a HTML combo box that displays the 10 year

Re: [PHP] Re: Persistent PHP web application?

2005-01-19 Thread Jochem Maas
A lame Example to illustrate the purpose of Application-Scope variables would be the persistant DB connections. Not 100% the same but it's for the same purpose So if you could have a huge object persistant( Application-Scope object ) that does alot of work for you then that object is a

Re: [PHP] debugging

2005-01-19 Thread Marek Kilimajer
William Stokes wrote: I'm trying to get the ini_set(error_reporting,E_ALL); work. No matter what kind of errors I write I just get blank screen when the script fails. Do I need to also echo the errors to screen? Or can the error reporting be disabled by the server admin (my adsl operator)? so

Re: [PHP] debugging

2005-01-19 Thread Marek Kilimajer
Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number when the script fails or something like that. It's a

[PHP] Dates, times, timezones...

2005-01-19 Thread Bruno B B Magalhães
Hi everybody, How do you save the date and time in the database? Time stamp or date and time? GMT timezone or the server timezone, or maybe the configs timezone? And when displaying apply user timezone to the GMT date? I think it's easier to save in timestamp format, so it's easy to convert to

[PHP] Name of CRON visualiser script

2005-01-19 Thread Erwin Kerk
Hi All, I've seen a script somewhere which accepts a crontab file for input, and then displays all jobs in a calendar-like screen. However, I forgot the name. Searching Google didn't help me either. Does anyone know the name (and if possible, an url) of this script? Thanks in advance, Erwin

Re: [PHP] debugging

2005-01-19 Thread Justin French
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote: Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number

[PHP] Need best way to determine if cronjob or external browser called my script

2005-01-19 Thread Al
I'm working on a script that can be initiated by a cronjob or from a browser. I want the script to act differently depending on which one called it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Nested SQL Statements

2005-01-19 Thread Jay Blanchard
[snip] Relatively new to PHP. Having an issue trying to nest sql statements. Basically I am trying to pull a variable from SQL1, Pass it as a Variable/Bind or Parm to SQL2 and then Go back to SQL1 and pull the next value and pass to SQL2 again for processing. $result1 = mysql_query('show

RE: [PHP] Need best way to determine if cronjob or external browser calledmy script

2005-01-19 Thread Jay Blanchard
[snip] I'm working on a script that can be initiated by a cronjob or from a browser. I want the script to act differently depending on which one called it. [/snip] COOL! I am suspecting that there is a question here, and I suspect the question is how do I do this? To see if the browser called

[PHP] Storing a reference to an object in another object

2005-01-19 Thread Rory McKinley
Hi All This is probably just a case of me being Mr Thicky, but maybe someone can point out the error mf my ways: I have two classes, call them admin and module. Admin stores login details as well as a pointer to the DB connection. Module will run various queries. To do that it needs access to

[PHP] Re: How to access remote files with php?

2005-01-19 Thread Jason Barnett
Sephiroth wrote: Hi all, How to access remote files with php? For ex: $sFile = http://www.php.net/123.txt;; if (file_exists($sFile)) { $hFile = fopen($sFile); ... fclose($hFile); } Regards, Sephiroth You can use the file functions with URLs so long as you have allow_url_fopen set to TRUE in

Re: [PHP] Help with encryption

2005-01-19 Thread Brian Dunning
Here is a class that uses mcrypt that might be helpful: Tom - this class is awesome. Took 5 seconds to add to my site and worked like a charm on the first try. THANKS!! :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Windows CLI and task scheduler

2005-01-19 Thread Dominic Schanen
I changed the scheduled task to use php.exe instead of php-win.exe and that cleared up the errors with unloading the profile that were appearing in the application log. Could this possibly be a bug with php-win.exe and not cleaning up properly? Thanks, Dominic Dominic Schanen wrote: I've

Re: [PHP] Re: SPL Exceptions

2005-01-19 Thread Gerard Samuel
M. Sokolewicz wrote: Gerard Samuel wrote: Does anyone know when the exception objects listed in item #6 at http://www.php.net/~helly/php/ext/spl/ will be available in base php5?? Thanks when you install the SPL extension :) I don't think it's planned for php5-source though Correct me if Im

Re: [PHP] debugging

2005-01-19 Thread Bret Hughes
On Wed, 2005-01-19 at 05:51, Marek Kilimajer wrote: Justin French wrote: On 19/01/2005, at 5:36 PM, William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the

[PHP] Re: Windows CLI and task scheduler

2005-01-19 Thread Jason Barnett
Dominic Schanen wrote: I changed the scheduled task to use php.exe instead of php-win.exe and that cleared up the errors with unloading the profile that were appearing in the application log. Could this possibly be a bug with php-win.exe and not cleaning up properly? Thanks, Dominic Honestly,

Re: [PHP] Writing static file from dynamic PHP page

2005-01-19 Thread John Hicks
Chris Bruce wrote: Hi, I am looking for a way to write to a file what the browser would see (raw html) when viewing a dynamic PHP page. I have numerous include files, MySQL db queries, loops etc. and I want to generate the static result of that file and save it as an html page. I have toyed a

Re: [PHP] searching and sorting

2005-01-19 Thread John Hicks
Michael Sims wrote: Richard Lynch wrote: Brian A. Anderson wrote: [...] I am thinking of incrementally adding the resultant hits into two associative arrays with the link to the data and a calculated relevance value, and sorting this array by these relevences. [...] One Axiom:

[PHP] Anyone attending PHP Tropics?

2005-01-19 Thread Jeremiah Johnson
Hi All, I'm wondering if anyone is planning on attending PHP Tropics (www.phparch.com/tropics), and if so whether anyone would be interested in splitting a room with a non-smoker. Thanks, Jeremiah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] too slow to unset big array (after mem fragment)

2005-01-19 Thread Xuefer Tinys
i have a big array with 20k elements, i have no problem building it, because the elements is recv from socket, i can socket_select() on 1k clients, read from them. i plan to unset the whole array every 1hour this is a not big problem when for a few times, it takes me 0.02 seconds but after many

Re: [PHP] Need best way to determine if cronjob or external browser called my script

2005-01-19 Thread Bret Hughes
On Wed, 2005-01-19 at 07:47, Al wrote: I'm working on a script that can be initiated by a cronjob or from a browser. I want the script to act differently depending on which one called it. -- I do not know what the definitive answer is but there are a bunch of environment differences.

[PHP] Best way to encode?

2005-01-19 Thread Brian Dunning
I have a form where people input some text, which is then incorporated into an HTML snippet which appears in a textarea for them to copy paste into a web page. People will be entering foreign language stuff as well as special characters like copyright, so I have to be sure this is handled

[PHP] select-option link list

2005-01-19 Thread William Stokes
Hello, Hope someone can give some directions... I'm trying to create a list box of links to other pages. I just can't figure out how to move to the other page whe user selects one of the options in the list box. here's the code... $sql=SELECT team_name FROM teams; $result=mysql_query($sql);

Re: [PHP] Re: get user attributes php/ldap/win2k active directory

2005-01-19 Thread Redmond Militante
Date: Fri, 14 Jan 2005 15:32:15 -0600 From: Redmond Militante [EMAIL PROTECTED] To: php-general@lists.php.net Subject: Re: [PHP] Re: get user attributes php/ldap/win2k active directory Reply-To: Redmond Militante [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] User-Agent: Mutt/1.4.2.1i X-Sender:

[PHP] PHP|Cruise

2005-01-19 Thread Jason Barnett
Jeremiah Johnson wrote: Hi All, I'm wondering if anyone is planning on attending PHP Tropics (www.phparch.com/tropics), and if so whether anyone would be interested in splitting a room with a non-smoker. Thanks, Jeremiah I feel really, really nerdy saying this but... I think this sounds like a

Re: [PHP] my for loop's gone bananas.. has yours?

2005-01-19 Thread Richard Lynch
Tim Burgan wrote: I have a for loop to create a HTML combo box that displays the 10 year values, starting from today's year and incrementing until 10 years it reached. The output of the loop to the browser is weird. If anyone has time, can you please let me know where I screwed up? Order Of

Re: [PHP] debugging

2005-01-19 Thread Richard Lynch
William Stokes wrote: I would like to add some debugging/info code to my pages. In test environment of course. Any ideas how to do this? I mean for example to print to a web page the line number when the script fails or something like that. It's a pain on the **s to hunt typo's by just

Re: [PHP] Nested SQL Statements

2005-01-19 Thread Richard Lynch
Greg Cullen wrote: Relatively new to PHP. Having an issue trying to nest sql statements. Basically I am trying to pull a variable from SQL1, Pass it as a Variable/Bind or Parm to SQL2 and then Go back to SQL1 and pull the next value and pass to SQL2 again for processing. It seems like the

[PHP] Re: [suspicious - maybe spam] [PHP] How to access remote files with php?

2005-01-19 Thread Richard Lynch
Sephiroth wrote: Hi all, How to access remote files with php? For ex: $sFile = http://www.php.net/123.txt;; if (file_exists($sFile)) { $hFile = fopen($sFile); ... fclose($hFile); } At the risk of being accused of copying whatshisname... Yes. :-) You're pretty much written the

Re: [PHP] $_SERVER['HTTP_USER_AGENT'] in html email

2005-01-19 Thread Richard Lynch
Graham Anderson wrote: What would be the standard/accepted way to do this? is it better to spell it out in the html email ? Download: Mac PC Linux ? YES! The software I want may not be used on the machine where I read email. In fact, odds are really good it's *NOT*

Re: [PHP] searching and sorting

2005-01-19 Thread Richard Lynch
I agree. That is a wise statement, and I have tried to do this with regular expressions but this doesn't deal with relevance at all, or is there something that I am missing? I suppose I could do multiple searches on my data to look for sports cars first, cars second, and sports last. Then I

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-19 Thread Richard Lynch
Marek Kilimajer wrote: Jason Barnett wrote: Valter Toffolo wrote: ok i have one server with a single domain, each user have it's home with a public_html so i get mydomain.com/~user1/ and mydomain.com/~user2/ and so on. but each user might like to use sessions so how can i make it work so

Re: [PHP] Windows CLI and task scheduler

2005-01-19 Thread Richard Lynch
Dominic Schanen wrote: I've written several command line scripts to run as scheduled tasks on a Windows 2000 Server machine. They run fine, no problems. However, the application log is filling up with errors stating that windows was unable to unload my registry profile. I know the PHP scripts

[PHP] Re: select-option link list

2005-01-19 Thread Ricky Morley
Like this. Here's the html code. I'm sure you can convert to the appropriate PHP html body form select size=1 name=site onChange=window.location=this.value option value=http://www.google.com;Google/option option value=http://www.yahoo.com;Yahoo/option option

Re: [PHP] Windows CLI and task scheduler

2005-01-19 Thread Jason Barnett
Richard Lynch wrote: Dominic Schanen wrote: I've written several command line scripts to run as scheduled tasks on a Windows 2000 Server machine. They run fine, no problems. However, the application log is filling up with errors stating that windows was unable to unload my registry profile. I know

[PHP] Mssql Connection

2005-01-19 Thread Pablo D Marotta
Hi there.. I´m connecting to a Ms Sql Server 2000, with the system administrator´s name, and its password. It always works fine, but... I know it´s not the safest way of connecting, so I want to use some ordinary user names and passwords. The problem is that I just can´t make it work, it always

Re: [PHP] Re: select-option link list

2005-01-19 Thread Jochem Maas
Ricky Morley wrote: Like this. Here's the html code. I'm sure you can convert to the appropriate PHP this is totally not PHP but... html body form select size=1 name=site onChange=window.location=this.value shouldn't that be something like: select size=1 name=site

Re: [PHP] Re: select-option link list

2005-01-19 Thread Richard Morley
This should work html body form select size=1 name=site onChange=if(this.value != '')window.location=this.value option value=Please select a site to visit/option option value=http://www.google.com;Google/option option value=http://www.yahoo.com;Yahoo/option option

Re: [PHP] Mssql Connection

2005-01-19 Thread Jochem Maas
Pablo D Marotta wrote: Hi there.. I´m connecting to a Ms Sql Server 2000, with the system administrator´s name, and its password. It always works fine, but... I know it´s not the safest way of connecting, so I want to use some ordinary user names and passwords. The problem is that I just can´t

[PHP] Re: Best way to encode?

2005-01-19 Thread Michiel van der Blonk
Hi, use base64_encode() and base64_decode actually, base32_encode or hexencode would be better, but oh my, php doesn't have these built in. If you're using PEAR there is a DataObject_Filter class somewhere that's handy for encoding decoding on the fly. Kind regards, Michiel

Re: [PHP] debugging

2005-01-19 Thread Jochem Maas
Justin French wrote: On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote: ... I use simple define('DEBUG', true'); in the main config file where also database login info is stored. I like to use exactly the same files for both development and live servers... it makes it much easier to mirror the

Re: [PHP] Storing a reference to an object in another object

2005-01-19 Thread Jochem Maas
Rory McKinley wrote: Hi All This is probably just a case of me being Mr Thicky, but maybe someone can point out the error mf my ways: I have two classes, call them admin and module. Admin stores login details as well as a pointer to the DB connection. Module will run various queries. To do

Re: [PHP] Mssql Connection

2005-01-19 Thread Richard Lynch
Jochem Maas wrote: FONT face=Arial color=FF size=3font/FONT FONT face=Arial color=FF size=3tags/FONT FONT face=Arial color=FF size=3suck/FONT I know nothing about MSSQL - thankgod (sorry I really can't help you there) - but I can recommend eradicating all font tags...

[PHP] SQL - INSERT INTO booleans

2005-01-19 Thread Tim Burgan
Hello, I'm trying to insert a new row using the following SQL: $db_sql = INSERT INTO tblStudents (name, username, password, expiry, permissions, website, displayUser) VALUES ('Joe', 'joejoe','pw4joe','20-Jan-05','staff','true','false');; In using MS Access via COM, the data types for each

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-19 Thread Richard Lynch
Xuefer Tinys wrote: i have a big array with 20k elements, i have no problem building it, because the elements is recv from socket, i can socket_select() on 1k clients, read from them. i plan to unset the whole array every 1hour this is a not big problem when for a few times, it takes me 0.02

Re: [PHP] Mssql Connection

2005-01-19 Thread Jochem Maas
Richard Lynch wrote: Jochem Maas wrote: FONT face=Arial color=FF size=3font/FONT FONT face=Arial color=FF size=3tags/FONT FONT face=Arial color=FF size=3suck/FONT I know nothing about MSSQL - thankgod (sorry I really can't help you there) - but I can recommend eradicating all font

RE: [PHP] SQL - INSERT INTO booleans

2005-01-19 Thread Mikey
$db_sql = INSERT INTO tblStudents (name, username, password, expiry, permissions, website, displayUser) VALUES ('Joe', 'joejoe','pw4joe','20-Jan-05','staff','true','false');; In using MS Access via COM, the data types for each column (in order) is: string, string, string, date, string,

Re: [PHP] Re: Windows CLI and task scheduler

2005-01-19 Thread Richard Lynch
Jason Barnett wrote: Dominic Schanen wrote: I changed the scheduled task to use php.exe instead of php-win.exe and that cleared up the errors with unloading the profile that were appearing in the application log. Could this possibly be a bug with php-win.exe and not cleaning up properly?

Re: [PHP] Re: Windows CLI and task scheduler

2005-01-19 Thread Richard Lynch
Dominic Schanen wrote: I changed the scheduled task to use php.exe instead of php-win.exe and that cleared up the errors with unloading the profile that were appearing in the application log. Could this possibly be a bug with php-win.exe and not cleaning up properly? I think it's just the way

Re: [PHP] Storing a reference to an object in another object

2005-01-19 Thread Richard Lynch
Rory McKinley wrote: public function checkConnection() { return $this-admin_instance-checkConnection() WILD GUESS!!! In early days of PHP objects, you sometimes couldn't use two arrow operators with, errr, references??? So an easy way to maybe fix this and move on

Re: [PHP] Need best way to determine if cronjob or external browser called my script

2005-01-19 Thread Richard Lynch
Al wrote: I'm working on a script that can be initiated by a cronjob or from a browser. I want the script to act differently depending on which one called it. Another solution: http://us2.php.net/php-sapi-name I personally think this is the cleanest and most maintainable solution posted so

Re: [PHP] SQL - INSERT INTO booleans

2005-01-19 Thread Richard Lynch
Tim Burgan wrote: I am continually getting a data type mismatch error (relating to the boolean columns) when trying to execute this code. I've tried removing the single quotes, but that returns a syntax error. I've forgotten the rules for MS-Access, but... Perhaps try 1 and 0 as your bool,

[PHP] Problem with hidden form input values

2005-01-19 Thread Ben Edwards (lists)
I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the browser. input type=hidden

Re: [PHP] Re: Windows CLI and task scheduler

2005-01-19 Thread Jason Barnett
Richard Lynch wrote: Dominic Schanen wrote: I changed the scheduled task to use php.exe instead of php-win.exe and that cleared up the errors with unloading the profile that were appearing in the application log. Could this possibly be a bug with php-win.exe and not cleaning up properly? I think

Re: [PHP] Problem with hidden form input values

2005-01-19 Thread Richard Lynch
Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the browser. input

Re: [PHP] Mssql Connection

2005-01-19 Thread Richard Lynch
having said that any HTML in production envs should degrade nicely for older browsers. it doesn't have to look the same but it should be accessible. It won't be if you use CSS. I can't count the number of CSS sites I've skipped because their links don't work (in my browser) due to CSS.

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-19 Thread kjohnson
Xuefer Tinys wrote: i have a big array with 20k elements, i have no problem building it, because the elements is recv from socket, i can socket_select() on 1k clients, read from them. i plan to unset the whole array every 1hour this is a not big problem when for a few times, it takes me

Re: [PHP] Problem with hidden form input values

2005-01-19 Thread Jason Wong
On Thursday 20 January 2005 07:07, Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show

Re: [PHP] Problem with hidden form input values

2005-01-19 Thread Jochem Maas
Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the browser. input

Re: [PHP] Problem with hidden form input values

2005-01-19 Thread Jochem Maas
Richard Lynch wrote: Ben Edwards (lists) wrote: I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the

[PHP] NT domain info

2005-01-19 Thread Mikey
Hi NG! Does anyone here know of a way of getting at the user account information from a windows domain controller from a Linux box, specifically in PHP? I was thinking of writing a COM object for the windows box running a simple socket service for updates, but that seems like an awful lot of

[PHP] Serving WML

2005-01-19 Thread Mikey
Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. Now I have a couple of test pages that I have put up on the server that I want to view, but can't seem to get to them. I am

[suspicious - maybe spam] [PHP] Re: How to access remote files with php?

2005-01-19 Thread Sephiroth
Jason Barnett [EMAIL PROTECTED] ? news:[EMAIL PROTECTED] You can use the file functions with URLs so long as you have allow_url_fopen set to TRUE in your php.ini. Doesn't works even allow_url_fopen is true PHP 4.3.10 Apache 1.3.27 Platform Windows 98 -- PHP General Mailing List

Re: [PHP] NT domain info

2005-01-19 Thread Bruce Douglas
mikey... i'm not a guru... but this sounds like something that someone should have already done (or thought about) in perl. you might find that there's already a perl app/solution that gets you close to what you need, that would allow you to either use the perl solution, or rewrite what it

RE: [PHP] NT domain info

2005-01-19 Thread Mikey
Well, I went to CPAN and found: http://www.cpan.org/modules/by-category/22_Microsoft_Windows_Modules/Win32/W in32-AD-User-0.01.readme Looks like that will have what I need, and from what I remember socks are dead simple in Perl - time to read up again! Mikey -- PHP General Mailing List

[PHP] Re: NT domain info

2005-01-19 Thread Manuel Lemos
Hello, on 01/19/2005 10:13 PM Mikey said the following: Hi NG! Does anyone here know of a way of getting at the user account information from a windows domain controller from a Linux box, specifically in PHP? I was thinking of writing a COM object for the windows box running a simple socket

RE: [PHP] Re: NT domain info

2005-01-19 Thread Mikey
If you want to just authenticate the user logged in a Windows domain, use Apache mod_ntlm. Nah, I need to be able to syphon off a whole list of users and their account details (but not their password). Thanks anyway! Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] NT domain info

2005-01-19 Thread Jordi Canals
On Thu, 20 Jan 2005 00:13:35 -, Mikey [EMAIL PROTECTED] wrote: Hi NG! Does anyone here know of a way of getting at the user account information from a windows domain controller from a Linux box, specifically in PHP? The Windows domain controllers run LDAP. So, you can use the PHP LDAP

Re: [PHP] NT domain info

2005-01-19 Thread Leif Gregory
Hello Bruce, Wednesday, January 19, 2005, 6:06:28 PM, you wrote: BD i'm not a guru... but this sounds like something that someone BD should have already done (or thought about) in perl. you might BD find that there's already a perl app/solution that gets you close BD to what you need, that would

[PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?

2005-01-19 Thread Jason Wong
On Thursday 20 January 2005 09:17, Sephiroth wrote: Jason Barnett [EMAIL PROTECTED] ? news:[EMAIL PROTECTED] You can use the file functions with URLs so long as you have allow_url_fopen set to TRUE in your php.ini. Doesn't works even HOW does it not work? Did you RTFM on the

[PHP] class structure.

2005-01-19 Thread Dustin Krysak
Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing classes. Now for example, i have written 2 versions of a class that accomplish the exact same thing. And I was just wondering if there are any advantages

Re: [PHP] Best way to encode?

2005-01-19 Thread Ligaya Turmelle
Are you talking about page encoding? if so try utf8 on the pae with the form. (meta http-equiv=Content-Type content=text/html;charset= utf-8 /) it handles just about any language for input. and as long as you don't want to do a search on the input it can go right into the database (table

[PHP] Re: corrected

2005-01-19 Thread chuck
Requested file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shell Redirection in safe_mode

2005-01-19 Thread Mirko Heise
Since i enabled safe_mode in PHP, commands like exec(mysqldump /tmp/123.sql) dont work any longer. So is redirection disabled in safe_mode ? mysqldump is executable from my safe_bin dir an i got write permission on the specified directory. Thanks in advance. With regards Mirko Heise -- PHP

[PHP] Re: 404 custom handler on a cgi-wrap PHP - No input specified error

2005-01-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Luke Barker wrote: I have made a 404 custom error handler, using .htaccess in a directory - it is usppoed to route all unfound pages to error.php, and works as expected for .htm and .html pages as well as gifs etc. But ofr .php scripts, e.g /path/to/wrongurl.php it doesnt show my page -