RE: [PHP] Automatically creating an image of another website

2003-07-14 Thread Adrian Teasdale
Hamid Thanks for the reply. I was told that using html2ps and ps2gif via php pipes (if that's the right word) would let php go to a site and browse the page, print it off as postscript and then convert the postscript file to a gif. not sure if that is possible which is why I posted to the list.

[PHP] Eval var from query

2003-07-14 Thread Shawn McKenzie
How can I evaluate a var that is from a text field of a database? Example: MySQL field `name` = hi my name is $name In my script I have: $name = Shawn; After fetching a query result as an associative array I have the contents of the `name` field in $data If I echo $data I get: hi my name is

Re: [PHP] Eval var from query

2003-07-14 Thread Marco Tabini
On Mon, 2003-07-14 at 15:03, Shawn McKenzie wrote: How can I evaluate a var that is from a text field of a database? Example: Hi Shawn-- Have you looked at eval? http://www.php.net/eval. Cheers, Marco -- php|architect -- The Magazine for PHP Professionals NOW AVAILABLE IN PRINT! Get

Re: [PHP] Eval var from query

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 20:03, lines prefixed by '' were originally written by you. How can I evaluate a var that is from a text field of a database? Example: MySQL field `name` = hi my name is $name In my script I have: $name = Shawn;

Re: [PHP] What is wrong??????

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 19:58, lines prefixed by '' were originally written by you. Every time i run this script i got this error:( my apache server is very well cofigured) Warning: Cannot send session cookie - headers already sent by (output

[PHP] Re: Eval var from query

2003-07-14 Thread Shawn McKenzie
eval($data) returns Parse error: parse error, unexpected T_STRING in C:\apps\apache2\htdocs\test\query.php(23) : eval()'d code on line 1 Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can I evaluate a var that is from a text field of a database?

Re: [PHP] Re: Eval var from query

2003-07-14 Thread Kevin Stone
The string you send to eval() must be valid PHP code. So try this.. eval( 'echo '.$data.';'); - Kevin - Original Message - From: Shawn McKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 1:15 PM Subject: [PHP] Re: Eval var from query eval($data) returns

Re: [PHP] Eval var from query

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 20:15, lines prefixed by '' were originally written by you. eval($data) returns Parse error: parse error, unexpected T_STRING in C:appsapache2htdocstestquery.php(23) : eval()'d code on line 1 What are the exact contents

Re: [PHP] What is wrong??????

2003-07-14 Thread Chris Shiflett
--- phpu [EMAIL PROTECTED] wrote: Warning: Cannot send session cookie - headers already sent by (output started at c:\apache\htdocs\proiect_gsm\login.php:11) in c:\apache\htdocs\proiect_gsm\login.php on line 81 This should be obvious, but you do something on line 81 that you cannot do, because

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
yes, I can edit the httpd.conf file. I'm looking in the Apache 2.0 docs and can't find the server directive. Also, to my knowledge and according to the docs, alias mydom.com is invalid. Alias URL-path file-path|directory-path is how the docs explain it. Am I missing something. If I can do

Re: [PHP] Automatically creating an image of another website

2003-07-14 Thread Jason Wong
On Tuesday 15 July 2003 02:57, Adrian Teasdale wrote: Thanks for the reply. I was told that using html2ps and ps2gif via php pipes (if that's the right word) would let php go to a site and browse the page, print it off as postscript and then convert the postscript file to a gif. not sure if

Re: [PHP] Re: Eval var from query

2003-07-14 Thread Kevin Stone
I realized that may not make any sense. Following up the eample relates to your original query like this.. MySQL field `name` = hi my name is $name In my script I have: $name = Shawn; $data = 'hi my name is $name'; $code = 'echo '.$data.';'; $name = 'Shawn'; eval($code); // prints hi may

RE: [PHP] Automatically creating an image of another website

2003-07-14 Thread Adrian Teasdale
OK, thanks for this suggestion Jason. I'll try it and see and then see if I can find any alternative Best regards Adrian -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 20:34 To: [EMAIL PROTECTED] Subject: Re: [PHP] Automatically creating an image

Re: [PHP] Re: Eval var from query

2003-07-14 Thread Shawn McKenzie
Thanks Kevin! That works great. It outputs: hi my name is Shawn Now if I want to assign $data to another var, let's say $newdata and have it eval the $name var inside of that. How would that work? Meaning I want to $newdata = hi my name is Shawn Thanks! Shawn Kevin Stone [EMAIL PROTECTED]

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Jason Wong
On Tuesday 15 July 2003 03:33, Anthony wrote: yes, I can edit the httpd.conf file. I'm looking in the Apache 2.0 docs and can't find the server directive. Also, to my knowledge and according to the docs, alias mydom.com is invalid. Alias URL-path file-path|directory-path is how the docs

Re: [PHP] Re: Eval var from query

2003-07-14 Thread Shawn McKenzie
Got it! eval( '$newdata = '.$data.';'); Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Kevin! That works great. It outputs: hi my name is Shawn Now if I want to assign $data to another var, let's say $newdata and have it eval the $name var

[PHP] timestamp problem !!

2003-07-14 Thread Nabil
i have ?php $timy = '20030714012548'; // time stamp from MySQL echo strtotime = ($timy); $date = (Y-m-d , $timy); ? and i have a wrong result how can i extract the -MM-DD from the string $timy Please Advice Nabil -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
I am trying to crate the function that will allow the administrator to Move a selected file to a different folder. I have looked at move_uploaded_file () and it seems that the source file to move needs to actually be the file's temp name. If the file has recently been uploaded then the

Re: [PHP] timestamp problem !!

2003-07-14 Thread Chris Boget
?php $timy = '20030714012548'; // time stamp from MySQL echo strtotime = ($timy); $date = (Y-m-d , $timy); ? You are so very close! ?php $timy = '20030714012548'; // time stamp from MySQL echo strtotime = ($timy); $date = date(Y-m-d , strtotime( $timy )); ? $timy isn't a unix timestamp,

Re: [PHP] timestamp problem !!

2003-07-14 Thread Jason Wong
On Wednesday 16 July 2003 02:00, Nabil wrote: ?php $timy = '20030714012548'; // time stamp from MySQL echo strtotime = ($timy); $date = (Y-m-d , $timy); ? and i have a wrong result how can i extract the -MM-DD from the string $timy MySQL TIMESTAMP != UNIX TIMESTAMP Look up

[PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Burhan Khalid
Listees, Personally, I'm getting a little annoyed by this, and rather than flame any thread in general, I would like to post this note regarding some guidelines that I believe constitute responsible list posting. Firstly, please refrain from using obscure subjects. Some recent ones

Re: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread Brad Pauly
caspar kennerdale wrote: - I'm a little confused. The files are already in there real location. It is just that someone may want to change that location at a later date. e.g. they upload an image to a folder and two months later decide it is better placed in a different folder. Or am I missing

Re: [PHP] timestamp problem !!

2003-07-14 Thread Nabil
Hi Chris.. thanks but your code generate the following error Warning: date() [function.date]: Unexpected error in . what's wrong? any idea ?? Chris Boget [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ?php $timy = '20030714012548'; // time stamp from MySQL echo strtotime =

Re: [PHP] timestamp problem !!

2003-07-14 Thread Nabil
thanks Jason, you've been always helping me ... Please i still have some fog regading this.. can u expaling me more about the timestamp and unix timestamp... and regaring me issue i have a string with '20030714012548' what ever i got it from (because i m getting this from MSSQL some time and

Re[2]: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread Burhan Khalid
On Monday, July 14, 2003, 11:04:48 PM, caspar wrote: ck If you want the file to go into a holding location until your administrator ck can approve it and move it to its real final location, then the holding ck location should be the target of the move_uploaded_file(). This makes it up ck to you

Re[2]: [PHP] How do I dump a blob or text into a mySQL Database?

2003-07-14 Thread Burhan Khalid
On Monday, July 14, 2003, 8:51:22 PM, Brad wrote: BP Dan Anderson wrote: I'm trying to split up a file and dump it into a mySQL database BLOB. Wherever I run the query: mysql_query(INSERT INTO table (field) VALUES ('{$buffer}')); Nothing ever shows up in the table -- whethere field is a

[PHP] security- ports, your comments will be appreciated

2003-07-14 Thread Nabil
I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running MSSQL server 7 THE POINT IS the only way I have to connect is throu ODBC connection because the network administrator only allowed me to connect thru port 1433 that ODBC uses.. I tried to make it

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Chris Shiflett
--- Burhan Khalid [EMAIL PROTECTED] wrote: Next thing, please add a reply-to header that has the lists mailing address. This is a topic of debate, and many people (including myself) would urge people to ignore this advice. Mangling mail headers can have bad consequences, and there is very

Re: [PHP] Re: Eval var from query

2003-07-14 Thread Kevin Stone
- Original Message - From: Shawn McKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 1:51 PM Subject: Re: [PHP] Re: Eval var from query Thanks Kevin! That works great. It outputs: hi my name is Shawn Now if I want to assign $data to another var, let's say

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Brad Pauly
Burhan Khalid wrote: Listees, Personally, I'm getting a little annoyed by this, and rather than flame any thread in general, I would like to post this note regarding some guidelines that I believe constitute responsible list posting. Here is a another resource on mailing list etiquette

RE: [PHP] Capturing Windows Login Details

2003-07-14 Thread Jonathan Wilkes
Why would you want to do this ? -Original Message- From: Gary Ogilvie [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 13:35 To: [EMAIL PROTECTED] Subject: [PHP] Capturing Windows Login Details Hi All, I need to capture the username and password used to login to Windows 2000/XP with PHP.

Re: [PHP] timestamp problem !!

2003-07-14 Thread Curt Zirzow
Nabil [EMAIL PROTECTED] wrote: thanks Jason, you've been always helping me ... Please i still have some fog regading this.. can u expaling me more about the timestamp and unix timestamp... mysql's timstamp in this case is in the format: MMDDHHMMSS Unix timstamp number of seconds

[PHP] A MySQL question

2003-07-14 Thread zavaboy
Ok, I want to delete only 1 row off of a database table... Example: I have a table with columns user and item... Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243 | Toothbrush 582-668243 | Toothbrush 582-668243 | Trash can 582-668243 | Trash can

Re: [PHP] security- ports, your comments will be appreciated

2003-07-14 Thread Curt Zirzow
Nabil [EMAIL PROTECTED] wrote: I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running MSSQL server 7 THE POINT IS the only way I have to connect is throu ODBC connection because the network administrator only allowed me to connect thru port 1433

[PHP] Re: A MySQL question

2003-07-14 Thread Kevin Stone
Zavaboy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok, I want to delete only 1 row off of a database table... Example: I have a table with columns user and item... Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243 | Toothbrush

Re: [PHP] A MySQL question

2003-07-14 Thread Chris Shiflett
--- zavaboy [EMAIL PROTECTED] wrote: Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243 | Toothbrush 582-668243 | Toothbrush ... Anyway, how can I remove only 1 Toothbrush from user 582-668243? With the information you provided, you can't. You

Re: [PHP] A MySQL question

2003-07-14 Thread Curt Zirzow
zavaboy [EMAIL PROTECTED] wrote: Ok, I want to delete only 1 row off of a database table... Example: I have a table with columns user and item... Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243 | Toothbrush Note the 'LIMIT' part in the delete

RE: [PHP] Missing php.ini file

2003-07-14 Thread Ralph Guzman
Chris, Not sure how you went about searching for php.ini, but you can type in the following find command in your command prompt and it will search your entire system: find / -name php.ini -print You may also want to look for php.in in /usr/local/lib. This is where php install php.ini by

Re: [PHP] Capturing Windows Login Details

2003-07-14 Thread Curt Zirzow
Jonathan Wilkes [EMAIL PROTECTED] wrote: Why would you want to do this ? -Original Message- From: Gary Ogilvie [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 13:35 To: [EMAIL PROTECTED] Subject: [PHP] Capturing Windows Login Details Hi All, I need to capture the username

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Kevin Stone
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Burhan Khalid [EMAIL PROTECTED] wrote: Next thing, please add a reply-to header that has the lists mailing address. This is a topic of debate, and many people (including myself) would urge people to ignore this

Re: [PHP] How To Ask Questions - Some List Guidelines

2003-07-14 Thread Ray Hunter
I would like to also say that if one follows some sort of guideline that person is likely to recieve more help (responses). I know that if there are subjects that are vague and emails that contain little information, i tend to delete them. Whereas, if someone takes the time to address the issue,

[PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Patrick Hutchinson
Hi, I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache 1.3.26. Now, documents are not being executed. I am just getting the source listed back. I have the propper AddModule/LoadModule stuff in my conf as well as the propper AddType for php documents. When I tried to revert back

[PHP] Session Problem

2003-07-14 Thread Sourabh G
Hi, I am getting a weird session problem in my site. Background of the Problem: -- My site use sessions for user authentication. Site has a Admin Panel where admin can search users and then through a link (which has login and password appended) login as user. On login

RE: Re[2]: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
In your application code ... you can implement a move() function that can either call the unix (mv) or windows (move) commands to move the file to another location (same permission restrictions apply). The thing about move is, its a copy + delete function in one, so you have to be careful about

Re: [PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Ray Hunter
Here is how i trouble shoot it: 1. make sure that there is a libphp4.so file in libexec. 2. make sure that you have these lines in httpd.conf: LoadModule php4_module libexec/libphp4.so AddType application/x-httpd-php .php 3. restart apache That should work for you. Also make sure that when

Re: [PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Patrick Hutchinson
Yeah, I have all that in the conf file. I've rebuilt it twice and made sure it was pointing to the propper apxs and everything. Even did a make clean to be sure. Still doesn't work. I've checked everything I can think of. -Patrick Ray Hunter wrote: Here is how i trouble shoot it: 1. make

[PHP] Mp3 Conversion, using PHP

2003-07-14 Thread Simon Fredriksson
I'm wondering if there's any crazy dude out there that would like to join me in making a class for PHP to convert Mp3's to Mp3Pro. Even better would be if it could take other formats aswell, but mainly MP3 to MP3Pro. There are a few reasons why I want it in PHP. One is that PHP is

Re: [PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Ray Hunter
Try this: Stop apache first. 1. Delete the libphp4.so file from libexec in apache dir. 2. make clean in php src dir. 3. rm config.cache 4. ./config.nice (gives you all the stuff that u configured) 5. make make install 6. verify httpd.conf 7. start apache up and verify. -- bigdog On Mon,

RE: [PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Ralph Guzman
Most ftp programs allow you to chmod. If using windows, check out wsftp www.ipswitch.com. I don't think there is another way to change directory/file privileges other than chmod. -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 12:14 AM

RE: [PHP] Lots of PHP

2003-07-14 Thread Ralph Guzman
If you're going to be keeping track of all these demographics, you'll want to store these in a database rather than a text file. -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2003 7:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Lots of PHP Hi all,

Re: [PHP] Session Problem

2003-07-14 Thread Kevin Stone
- Original Message - From: Sourabh G [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 13, 2003 11:15 AM Subject: [PHP] Session Problem Hi, I am getting a weird session problem in my site. Background of the Problem: -- My site use sessions for user

RE: [PHP] php script billing receipt

2003-07-14 Thread Ralph Guzman
What you are looking for is called an Invoice. I'm attaching a simple invoice for you to look at. -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2003 4:09 AM To: [EMAIL PROTECTED] Subject: [PHP] php script billing receipt Hi, I just finished a script

Re: [PHP] A MySQL question

2003-07-14 Thread zavaboy
Ok, I added a primary key. I figured it out and I have it working... Thanks! Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- zavaboy [EMAIL PROTECTED] wrote: Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243 |

RE: [PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Jeff Harris
|-Original Message- |From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] |Sent: Monday, July 14, 2003 12:14 AM |To: [EMAIL PROTECTED] |Subject: [PHP] SquirrelMail + Writable Directories | |My question is simple - I want to install Squirrelmail on my webserver, |but I can't chmod or chown

[PHP] Text file manipulation question.

2003-07-14 Thread Lloyd Bayley
Greetings All! I'm still in the learning stages of PHP and require some help with a small problem. I need to take a text file which looks like this (and no I can't get it output in CSV - damn and blast!) user1 26:48:59 6 logins 4:28:09 hrs/login user2

[PHP] Problem getting phpMyAdmin to work on localhost

2003-07-14 Thread Richard White
I have a couple of problems with newish MySQL database. I am running WinXP-Pro, MySQL V 4.0.12-nt, Apache etc. I previously got this all working, but today (after a break of a couple of weeks) I can't get phpMyAdmin-2.5.0-rc1 to work. I have configured {config.inc.php} exactly as per

[PHP] Re: Problem getting phpMyAdmin to work on localhost

2003-07-14 Thread Shena Delian O'Brien
What's your: $cfg['PmaAbsoluteUri'] $cfg['Servers'][$i]['host'] ? Should be something like : $cfg['Servers'][$i]['host'] = 'http://localhost/phpMyAdmin'; $cfg['Servers'][$i]['host'] = 'localhost'; Post other config entries that you've changed...? What authentication method are you using, etc?

RE: [PHP] A MySQL question

2003-07-14 Thread Giz
You have made a mistake in your database design. Every table should have a primary key that allows you to uniquely identify any single row in the table. You do not have a primary key, hence when you want to delete a single row from a series of duplicates, you can't do it. Unlike oracle, mysql

Re: [PHP] Text file manipulation question.

2003-07-14 Thread Curt Zirzow
Lloyd Bayley [EMAIL PROTECTED] wrote: Greetings All! I'm still in the learning stages of PHP and require some help with a small problem. I need to take a text file which looks like this (and no I can't get it output in CSV - damn and blast!) user1 26:48:59 6

Re: [PHP] Text file manipulation question.

2003-07-14 Thread Lloyd Bayley
Thankyou! That works a treat! Lloyd. :-) At 11:36 PM 14/07/2003 +, you wrote: Lloyd Bayley [EMAIL PROTECTED] wrote: Greetings All! I'm still in the learning stages of PHP and require some help with a small problem. I need to take a text file which looks like this (and no I can't get it

[PHP] PHP Perl information sharing

2003-07-14 Thread Jeff Harris
I'm working on a site which is mostly in PHP. However, I have to use perl for a couple of scripts. Does anyone have any experience in sharing session information between PHP and perl? I'm writing for a client who I will know has cookies enabled, and I have a mySQL database, so I'm looking for

Re: [PHP] timestamp problem !!

2003-07-14 Thread myhan
mysql's timstamp in this case is in the format: MMDDHHMMSS and it's default value is current time. | TIMESTAMP(14) | MMDDHHMMSS | | TIMESTAMP(12) | YYMMDDHHMMSS | | TIMESTAMP(10) | YYMMDDHHMM | | TIMESTAMP(8) | MMDD | | TIMESTAMP(6) | YYMMDD | | TIMESTAMP(4) |

Re: [PHP] timestamp problem !!

2003-07-14 Thread myhan
The quick and easy to convert a mysql timestamp is to use the UNIX_TIMESTAMP(field_name) function in mysql when you query the data. It converts a 14-digit mysql timestamp to a standard unix timestamp. Myhan [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] mysql's timstamp in this case is in the

Re: [PHP] BigEndian to integer

2003-07-14 Thread Tom Rogers
Hi, Monday, July 14, 2003, 6:00:04 PM, you wrote: GS A bit off topic GS Im trying to figure out how to convert BigEndian byte words to integers. For example - GS 0 0 0 18 = 18 GS The only way I know how to convert this is by writing down on paper, and GS writing 8 4 2 1 above the numbers and

Re: [PHP] PHP Perl information sharing

2003-07-14 Thread Ray Hunter
u could set up a perl script to read cookies and vice versa with php. That should not be a problem you could also create a form with php variables and post it to a perl script. u you also create a link to a perl script that passes varibles via the url. Very easy to do just a matter of how you

RE: [PHP] Grabbing info from other Sites

2003-07-14 Thread Ow Mun Heng
Hi, Mind my ignorance but what is webservices?? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] Grabbing info from other Sites

2003-07-14 Thread Curt Zirzow
Ow Mun Heng [EMAIL PROTECTED] wrote: Hi, Mind my ignorance but what is webservices?? hmm... I was wondering that myself... http://www.w3.org/2002/ws/ A google search on 'Web Services stock quote' returns some interesting pages. Cheers, Mun Heng, Ow H/M Engineering Western

[PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Justin French
Hi, Is there any danger in overwriting the $_GET array? Will it still remain a superglobal in all circumstances? ? // Example 1: $_GET['foo'] = base64_decode($_GET['foo']); // modify a value // Example 2: $_GET = array();

[PHP] numberformat

2003-07-14 Thread Harry.de
Is there a way, to define an integer number e.g. 7, to be defined as 07? (Maybe with numberformat) Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php4_module is already loaded

2003-07-14 Thread CDitty
I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the error [warn] module php4_module is already loaded, skipping. Can anyone offer any suggestions? I searched the archives, but didn't see anything that would help. Apache/PHP seem to be running ok, but I would like to get

Re: [PHP] numberformat

2003-07-14 Thread Larry_Li
printf(%02d, $integer); Use sprintf() if you want to save output. Larry ---

[PHP] console script html tags?

2003-07-14 Thread Larry Brown
How can I rid myself of the html tags around error messages when writing console scripts? (Besides avoiding errors) Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php4_module is already loaded

2003-07-14 Thread Chris Shiflett
--- CDitty [EMAIL PROTECTED] wrote: I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the error [warn] module php4_module is already loaded, skipping. Can anyone offer any suggestions? You are probably loading the library twice in your httpd.conf file. Check that, and

Re: [PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Curt Zirzow
Justin French [EMAIL PROTECTED] wrote: Hi, Is there any danger in overwriting the $_GET array? Will it still remain a superglobal in all circumstances? yes and yes. see below for explaination ? // Example 1: $_GET['foo'] = base64_decode($_GET['foo']); // modify a value

Re: [PHP] console script html tags?

2003-07-14 Thread Curt Zirzow
Larry Brown [EMAIL PROTECTED] wrote: How can I rid myself of the html tags around error messages when writing console scripts? (Besides avoiding errors) You can set up another system or user php.ini for the php binary to read then pass the location of the php.ini to the php binary: php -c

[PHP] activex and PHP on linux

2003-07-14 Thread Jeremy
I'm running a website (www.revitcity.com) on linux/PHP/MySQL and the site is for architecture components. The compenents or objects called famlies are uploaded by users and shared freely. The program these objects are used in is Revit, a windows only program. So here's my question. Currenly users

[PHP] Older Version problems

2003-07-14 Thread ed
I'm moving some scripts to a new server but the PHP installation on the new server is actually older than the version I currently have installed on the production server. I'm moving from 4.2.3 to 4.1.2. In my file upload scripts I can't seem to get any $_FILES values out of my upload. The

Re: [PHP] php4_module is already loaded

2003-07-14 Thread Ray Hunter
Most likely your php is a core module that does not require the load module in your httpd.conf file... you can verify if it is core (static not DSO) with httpd -l -- BigDog On Mon, 2003-07-14 at 21:01, CDitty wrote: I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the

Re: [PHP] console script html tags?

2003-07-14 Thread Ray Hunter
Turn the html errors off in your php.ini file or write a function that handles all your errors for you and u dont echo out html tags. http://us3.php.net/manual/en/function.set-error-handler.php -- BigDog On Mon, 2003-07-14 at 21:32, Curt Zirzow wrote: Larry Brown [EMAIL PROTECTED] wrote:

Re: [PHP] Older Version problems

2003-07-14 Thread Ray Hunter
Have you checked that the files are indeed getting to the directory that is specified by the upload_dir setting in php.ini? Also check your tmp dirs to see if they are getting there too. If they are not getting to the tmp dir then there are some issues. -- BigDog On Mon, 2003-07-14 at 21:19,

Re: [PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Justin French
On Tuesday, July 15, 2003, at 01:24 PM, Curt Zirzow wrote: Have you tried running the script to see if $_GET['myNewKey'] actually is filled out? You'll find that it is. of course I tried it, and yes it works, but that doesn't mean it's smart/safe :) Using the special name space variable

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Joel Rees
Is it possible to check a file in $_FILES['userfile']['tmp_name'] to make sure it is of a certain format? I want to allow a user to only upload jpegs or mpegs, and want to check what format the file is in. If there are only a few types, and you know what those types should look like, it

Re: [PHP] Looking for experienced PHP programmer in the Memphis, TN area

2003-07-14 Thread Joel Rees
This position requires strong technical knowledge in a server-side scripting technology such as PHP (preferred) /JSP/Perl/ASP. Knowledge of SQL queries, stored procedures and database design required. Must have experience in HTML/CSS and familiarity with HTTP and networking concepts. Graphic

[PHP] Sessions and objects

2003-07-14 Thread Matt Silva
I create a new object and then assign it to a session var $customer = new Customer($_GET['facilityID'], $_GET['customerID']); $_SESSION['acceptPayment']['customer'] = $customer; but later when I access that session var [in the the same file but in a different function and different instance], php

Re: [PHP] any danger in overwriting $_GET ?

2003-07-14 Thread Curt Zirzow
Justin French [EMAIL PROTECTED] wrote: On Tuesday, July 15, 2003, at 01:24 PM, Curt Zirzow wrote: [...] I'm fully aware of the reasons why one would use $_GET['foo'] over $foo, but as stated in the OP, i'm interested in using search-engine-friendly URLs like: Good, I was just making sure

<    1   2