Re: [PHP] connecting PHP to MS Access

2004-01-19 Thread Tom Rogers
Hi, Tuesday, January 20, 2004, 1:24:46 PM, you wrote: TT> Hi, TT> Ok, I know I've already spoken blasphemy ... but hear me out. I have a TT> client who wants to move her real estate site from a local ISP to a TT> somewhat decent service. Currently her site is all in Access/ASP - since I TT> know

Re: [PHP] connecting PHP to MS Access

2004-01-19 Thread Joey Manley
There are far more elegant ways to do it. But for such a small file, the looping-through-and-writing-sql-inserts-one-at-a-time should work just fine. As long as you don't have to do it more than once, and the file is so small, that's what I'd do. I've done it that way before. An even uglier way:

RE: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Williams, Olwen - SAL
Name it for example something.csv The in your .htaccess file put ForceType application/x-httpd-php Olwen Williams [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 4:43 PM To: Ben Ramsey Cc: [EMAIL PROTECTED] Subject: R

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread John W. Holmes
Ben Ramsey wrote: Adding any of those headers still does not remove the ".php" from the end of the file when I am prompted for the download. I have a client that will be downloading this file, and I do not wish to instruct them to first remove the ".php" extension before they can view it. Are y

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Adding any of those headers still does not remove the ".php" from the end of the file when I am prompted for the download. I have a client that will be downloading this file, and I do not wish to instruct them to first remove the ".php" extension before they can view it. -Ben [EMAIL PROTECTED

[PHP] connecting PHP to MS Access

2004-01-19 Thread Tim Thorburn
Hi, Ok, I know I've already spoken blasphemy ... but hear me out. I have a client who wants to move her real estate site from a local ISP to a somewhat decent service. Currently her site is all in Access/ASP - since I know not of that world, I'm converting it to MySQL/PHP. The person they h

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread daniel
> Alright. You've all given some great suggestions, and I'm going to > track them down. But, for now, I'm settling for creating a CSV file. > > My next question: How do I get the file to download without the ".php" > extension on the end? It's downloading it as "filename.csv.php". > > The code

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Alright. You've all given some great suggestions, and I'm going to track them down. But, for now, I'm settling for creating a CSV file. My next question: How do I get the file to download without the ".php" extension on the end? It's downloading it as "filename.csv.php". The code to right m

[PHP] Re: Can this head section, which loads many style sheets, be improved or simplified?

2004-01-19 Thread Luke
Well you could use elseif statements so you only have to set one true instead of X amount false eg if($includenorth){ //Do North Include }elseif($includesw){ //Do Southwest Here } the only thing is with that way, only one well get done, not all, but it depends on what you want, that may

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Justin French
On Tuesday, January 20, 2004, at 04:08 AM, John Nichel wrote: Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at t

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Manuel Lemos
Hello, On 01/19/2004 09:40 PM, Ben Ramsey wrote: I'm pretty sure I know how to use header() create a CSV file for a client to download data from a database, but I think it would really impress this client if I could generate a Microsoft Excel file instead of a CSV file. Anyone know how to do t

RE: [PHP] Generating an Excel file?

2004-01-19 Thread daniel
Geez what really bad advice, giving an end user a totally useless unfriendly csv file is bad bad bad. I suggest you check out http://pear.php.net/package/Spreadsheet_Excel_Writer , its a pain to get the layout perfect, but once its done you have what you need. I've also been trying to hassle to get

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian V Bonini wrote: | Kind of funny... Back before PHP had sessions this was how everyone did | it and everyone wished for session support in PHP, now that it's had it | for a while :) I hear ya. I recall a job interview in like 1999 or something

Re: [PHP] Generating an Excel file?

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Ramsey wrote: | I'm pretty sure I know how to use header() create a CSV file for a | client to download data from a database, but I think it would really | impress this client if I could generate a Microsoft Excel file instead | of a CSV file. Anyo

RE: [PHP] Generating an Excel file?

2004-01-19 Thread Jeremy
Google is your friend ;-) -J -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Generating an Excel file? I'm pretty sure I know how to use header() create a CSV file for a client to download data fr

[PHP] Generating an Excel file?

2004-01-19 Thread Ben Ramsey
I'm pretty sure I know how to use header() create a CSV file for a client to download data from a database, but I think it would really impress this client if I could generate a Microsoft Excel file instead of a CSV file. Anyone know how to do this? -Ben -- PHP General Mailing List (http://ww

[PHP] Can this head section, which loads many style sheets, be improved or simplified?

2004-01-19 Thread Freedomware
I now that have a system that works beautifully. I just wondered if it could be simplififed or improved even more. The head section on every page consists of an included page, which I appended below. But the most important part is the style sheet section, which begins with two or three default

Re: [PHP] dreaded sessions

2004-01-19 Thread daniel
sorry i missed this thread, but what seems to be the problem with php sessions ? I had to use phplib sessions on the works php3 server, which one is better disk based sessions or database based sessions ? I have no problem whatsoever with 60 concurrent users on a php session based system but what a

Re: [PHP] dreaded sessions

2004-01-19 Thread Brian V Bonini
On Mon, 2004-01-19 at 17:38, Greg Donald wrote: > I'd say it has something to do with you transactions. Can you duplicate > the errors using the same code on a system where the Innodb transactions > do not require committing? > > Here is my own drop-in PHP session handling code if you care to co

[PHP]

2004-01-19 Thread Ian C roberts
hello all, Im having troubled with horde and imp with php 4.3.4. I receive the '' in the login field. This is a bit of a nuisance whenever someone wants to log in they have to remove this from the login field. Is there a php.ini configuration setting i can set to get rid of this? How do I pr

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Horner wrote: | Simply here is my problem: | | After logging into the system, I set a session with information for | the Username and Password for verifiying | the user's login into the system, that way I don't have to | continually ask

[PHP] dreaded sessions

2004-01-19 Thread Matt Horner
Hi all, Sessions have become one my nightmares. Unfortunately, I have built a system based on sessions and for some reason I having some really irritating issues. Simply here is my problem: After logging into the system, I set a session with information for the Userna

Re: [PHP] another mysql question, sorry

2004-01-19 Thread Chris W
Christian Calloway wrote: I am sorry to post another mysql question, but this one is design related. I need to create a relationship between two different tables in two different databases. I feel like I am commiting a sin doing so, but it makes sence at the application level, and to redesign ever

Re: [PHP] another mysql question, sorry

2004-01-19 Thread Chris Boget
> I am sorry to post another mysql question, but this one is design related. I > need to create a relationship between two different tables in two different > databases. I feel like I am commiting a sin doing so, but it makes sence at > the application level, and to redesign everything would be dis

[PHP] another mysql question, sorry

2004-01-19 Thread Christian Calloway
I am sorry to post another mysql question, but this one is design related. I need to create a relationship between two different tables in two different databases. I feel like I am commiting a sin doing so, but it makes sence at the application level, and to redesign everything would be disastrous.

Re: [PHP] Error Reporting help

2004-01-19 Thread Jason Wong
On Tuesday 20 January 2004 03:44, Chris Edwards wrote: > Here's a snippet from my PHI_INI > > ; - Show all errors > ; > error_reporting = E_ALL > ;error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_CORE_WARNING & > ~E_USER_WARNING & ~E_USER_NOTICE & ~E_COMPILE_WARNING > > display_errors =

Re: [PHP] Error Reporting help

2004-01-19 Thread John W. Holmes
Chris Edwards wrote: but do I need to do something to get PHP to actually work off of these setting once they have been changed, Restart your web server. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.

Re: [PHP] Error Reporting help

2004-01-19 Thread Chris Edwards
Here's a snippet from my PHI_INI ; - Show all errors ; error_reporting = E_ALL ;error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_CORE_WARNING & ~E_USER_WARNING & ~E_USER_NOTICE & ~E_COMPILE_WARNING display_errors = On The commented out error_reporting was the original setting and "dis

Re: [PHP] Dokument

2004-01-19 Thread John Nichel
haitham wrote: I need some PHP Dokument, Can any one HELP me. Thanks http://us4.php.net/manual/en/index.php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John W. Holmes wrote: In $url, the periods still need to be escaped, too. This is where preg_quote() comes in handy. $url = "http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]";; $url = preg_quote($url); $code = preg_replace("#$url#",$replace,$code,1); I hope the OP took notice of the

[PHP] PHP OpenDirectory extension - alpha - need testers

2004-01-19 Thread Justin Hannus
If there are any OpenDirectory users out there I just finished an alpha version of a PHP extension that wraps Darwin's OpenDirectory API. I'm in dire need of people to test it out the help me get an idea of its usefulness. If your interested you can find it on the PECL website or on... my site :)

RE: [PHP] PHP Dokument

2004-01-19 Thread Jay Blanchard
[snip] I need some PHP Dokument, Can any one HELP me. [/snip] http://www.php.net please do not reply to me off-list -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dokument

2004-01-19 Thread haitham
I need some PHP Dokument, Can any one HELP me. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Dokument

2004-01-19 Thread haitham
I need some PHP Dokument, Can any one HELP me. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Securing php from rogue php scripts

2004-01-19 Thread Adrian Teasdale
Hi there I have been reading about certain php scripts that, if used incorrectly, can compromise servers. There are certain open source scripts that I know if (no names mentioned) that have exploits that allow this and I want to know if there is a "How to" or best practice anywhere for securing PH

Re: [PHP] Hot to MD5 two values (Valu1+Valu2)

2004-01-19 Thread John W. Holmes
Radwan Aladdin wrote: Can I use : $md5 = md5($variable1 + $variable2); Is it right to use that? Yes, you can do that. Whether it's "right" or not depends. You could have taken the two seconds to try it, either way. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5

Re: [PHP] Re: how to check the form filled all

2004-01-19 Thread John W. Holmes
Chris W wrote: Sungpill Han wrote: HI, i want to check if the user filled the all inputs in the form. So, I checked NULL and "" with this function in the post receiving script. --- function is_filled_out() { // test that each variabl has a value foreach($_POST as $ke

RE: [PHP] Hot to MD5 two values (Valu1+Valu2)

2004-01-19 Thread Jay Blanchard
[snip] Can I use : $md5 = md5($variable1 + $variable2); Is it right to use that? Notice : I don't want "&" I want to add the first value to the second one(1=2=3).. then make them MD5...MD5(3) (For example).. [/snip] Have you tried it? Of courser if all else failed you could do ... $myDog = $va

[PHP] Hot to MD5 two values (Valu1+Valu2)

2004-01-19 Thread Radwan Aladdin
Hi all.. I want to know.. Can I use : $md5 = md5($variable1 + $variable2); Is it right to use that? Notice : I don't want "&" I want to add the first value to the second one(1=2=3).. then make them MD5...MD5(3) (For example).. Regards..

Re: [PHP] Help with preg_replace

2004-01-19 Thread John W. Holmes
joel boonstra wrote: The problem is that there are still special chars that need escaping. Specifically, the question mark (?) and the square braces ([]). Here is some modified code (apologies for poor word-wrapping): http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah "; $url = "'

[PHP] Re: how to check the form filled all

2004-01-19 Thread Chris W
Sungpill Han wrote: HI, i want to check if the user filled the all inputs in the form. So, I checked NULL and "" with this function in the post receiving script. --- function is_filled_out() { // test that each variabl has a value foreach($_POST as $key => $value) {

Re: [PHP] execute php script with crontab

2004-01-19 Thread Jason Wong
On Monday 19 January 2004 21:14, Developer wrote: > Could I add a question regarding the cron command? > If you automatically run a php script through the cron command is timeout > taken under account or does it run through the "command line" which is > faster (and timeout is not taken under accoun

Re: [PHP] Help with preg_replace

2004-01-19 Thread Jason Wong
On Tuesday 20 January 2004 01:31, John Clegg wrote: > Is there any php command to delimit all of these characters as I am > getting the string I am trying to replace from the database. preg_quote() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Is this code right?

2004-01-19 Thread Radwan Aladdin
Just what I'm trying to do (Comparing the database with the GET) :) :) Thanks alot for your help.. Regards.. - Original Message - From: "Ben Ramsey" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Radwan Aladdin" <[EMAIL PROTECTED]> Sent: Monday, January 19, 2004 10:16 PM Subject: Re: [

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
Radwan Aladdin wrote: Do you mean this is the right code : The code overall looks right, but you set $Serial twice... first you do: $Serial = $_GET['Serial']; Then you do: $Serial = htmlspecialchars($row[0]); Then you set $UserSerial to $row[1] (the same as the Password column). So, when you

Re: [PHP] date fiedl

2004-01-19 Thread "Miguel J. Jiménez"
Diana Castillo wrote: Does anyone know if there is any speed advantage to saving a date as a unix timestamp or a numeric field instead of a date field? (in Mysql) thanks, Well, I prefer using an int(14) field for saving unix dates (so, I save the date as unix and not as date field). Thus is easi

Re: [PHP] Is this code right?

2004-01-19 Thread Radwan Aladdin
Do you mean this is the right code : Right serial! END; }else{ print<< Sorry, wrong serial! END; } if($UserPassword == $Password){ print<< Logged in successfully END; }else{ print<< Sorry, wrong password! END; } ?> - Original Message - From: "Jeremy Davis" <[EMAIL PROTEC

Re: [PHP] Error Reporting help

2004-01-19 Thread Jason Wong
On Monday 19 January 2004 22:34, Chris Edwards wrote: > I retried most of the combinations and still cannot get it to report syntax > errors. If I have errors, from say undefined variables, the error handler > catches those just fine. Again: > > But if "display_errors" (in php.ini) is disabled t

[PHP] Re: Server Map Path

2004-01-19 Thread Ben Ramsey
Is there an equivalent to Server.MapPath("MyDir\MyLocation") in php? I've looked in the docs and don't seem to find it. I did find a reference to; I believe what you're looking for is: realpath('./') That should do the same trick as Server.MapPath(). -Ben -- PHP General Mailing List (http://w

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
Radwan Aladdin wrote: Oh sorry.. I didn't notice that.. anyway.. I want to know.. what to add to this code to make it also check the serial between the database (That users' row) and the GET variable before it echos anything.. so the UserName, Password and Serial must be the same for that user.. It

RE: [PHP] Is this code right?

2004-01-19 Thread Jeremy Davis
>$query = "SELECT Serial, Password from accounts where UserName='$UserName'"; >$result = mysql_query($query) or die("Query errort: " . mysql_error()); >$row = mysql_fetch_row($result) or die("User Not found: " . mysql_error()); mysql_fetch_row only pulls data one cell at a time so you would need

[PHP] Server Map Path

2004-01-19 Thread Alex Hogan
Hi All, Is there an equivalent to Server.MapPath("MyDir\MyLocation") in php? I've looked in the docs and don't seem to find it. I did find a reference to; $db = 'server//path'; But I get errors. I am connecting to an access db for testing and I'm using an ADO connection. $db =

Re: [PHP] Is this code right?

2004-01-19 Thread Radwan Aladdin
Oh sorry.. I didn't notice that.. anyway.. I want to know.. what to add to this code to make it also check the serial between the database (That users' row) and the GET variable before it echos anything.. so the UserName, Password and Serial must be the same for that user.. Waiting your reply.. r

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Nichel wrote: John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John Maybe addslash

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 07:15:53PM +0200, John Clegg wrote: > Hi Joel, > > Thanks for the reply. > > I have tried using "/" to delimit the string and I get the following error > > String > > $url = "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; > > Gives the error: > *Wa

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel, Tha

Re: [PHP] Is this code right?

2004-01-19 Thread "Miguel J. Jiménez"
Radwan Aladdin wrote: Hi all.. I made this code for the login.php page.. it will compare A value from the users machine (Serial) and with a value inside the database (In that users' row).. so after logging it will check if also this value is the same and then echo something..is the following code

RE: [PHP] Help with preg_replace

2004-01-19 Thread craig
> Hi Joel, > > Thanks for the reply. > > I have tried using "/" to delimit the string and I get the > following error > > String > > $url = > "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; you have to escape all of the slashes execpt the first and last that delineate the re

[PHP] Is this code right?

2004-01-19 Thread Radwan Aladdin
Hi all.. I made this code for the login.php page.. it will compare A value from the users machine (Serial) and with a value inside the database (In that users' row).. so after logging it will check if also this value is the same and then echo something..is the following code is right for that? :

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi Joel, Thanks for the reply. I have tried using "/" to delimit the string and I get the following error String $url = "/http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/";; Gives the error: *Warning*: Unknown modifier '/' in* /test.php* on line *8* I found out that I could use

[PHP] Re: libphp_common430 is in conflit with php-4.3.1-11mdk

2004-01-19 Thread Ben Ramsey
What's the error? Luiz Gustavo Sarubi Macchi wrote: > Please, I´m trying to compile PHP so it´s reporting an error: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trying again: Random(?) blank pages when using sessions

2004-01-19 Thread Matt Grimm
No, it's running on a FreeBSD server. I don't suppose it could have to do with the firewall or browser security settings on my machine, though ... could it? I can verify that the session file is being written to the server's tmp directory... I'm stumped. -- Matt Grimm Web Developer The Health TV

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 11:08:29AM -0600, John Nichel wrote: > Freedomware wrote: > >OK, it looks like there are at least three ways to do this. I now have > >an original style sheet with a .css extension and copies with .php and > >.css.php extensions. > > > >All three style sheets have the foll

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah"; $url = "'http://www.foo.com/maxbid/Unsubscrib

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at the top: I would think that the above is going to cause proble

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 06:50:37PM +0200, John Clegg wrote: > Hi > > I am having some problems with preg_replace and I wondering if someone > could suggest a fix or explain why it is not working. > > > > Here is the Code: > * > $code = "blah http://www.foo.com/Unsubscribe.

[PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah"; $url = "'http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at the top: For the original style sheet, I pasted the following text into a .htacc

[PHP] libphp_common430 is in conflit with php-4.3.1-11mdk

2004-01-19 Thread Luiz Gustavo Sarubi Macchi
Please, I´m trying to compile PHP so it´s reporting an error: Is anyone knows to solve this ? thanks any help I´m using: php-ini-4.3.0-1mdk mod_php-4.3.1-1mdk php-readline-4.3.0-1mdk php-domxml-4.3.0-2mdk php-xslt-4.3.0-3mdk php-manual-en-4.3.0-2mdk libphp_common430-430-11mdk php-gd-4.3.0-2mdk p

RE: [PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-19 Thread Jay Blanchard
[snip] What the heck does this mean? I've been receiving a ton of these even though I haven't sent many messages to the list. [/snip] Someone's e-mail address in the list is bad. The list will keep trying to send the e-mail until it reaches a certain failure limit. -- PHP General Mailing List (

RE: [PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-19 Thread Arthur Pelkey
As have I. -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 10:59 AM To: [EMAIL PROTECTED] Subject: [PHP] [Fwd: Delivery Report (failure) for [EMAIL PROTECTED] What the heck does this mean? I've been receiving a ton of these even though I hav

[PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-19 Thread Ben Ramsey
What the heck does this mean? I've been receiving a ton of these even though I haven't sent many messages to the list. -Ben --- Begin Message --- This report relates to your message: Subject: [PHP] Re: dynamic array creation from form elements, Message-ID: <[EMAIL PROTECTED]>, To

Re: [PHP] Re: Variables not working!

2004-01-19 Thread Chris Boget
> [snip] > Try using $_POST['fname'] instead of $fname. > [/snip] > Or $_GET['fname'] depending on your form method Or even $_REQUEST['fname'], which doesn't care about which method is specified in the form. :p Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] v

2004-01-19 Thread Kaushalya
v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Variables not working!

2004-01-19 Thread Jay Blanchard
[snip] Try using $_POST['fname'] instead of $fname. [/snip] Or $_GET['fname'] depending on your form method -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables not working!

2004-01-19 Thread Ben Ramsey
Try using $_POST['fname'] instead of $fname. This just means that register_globals is probably set to off in php.ini, which is the recommended setting. Take a look at the section on predefined variables in the PHP manual for more on this: http://www.php.net/manual/en/language.variables.predef

[PHP] Variables not working!

2004-01-19 Thread Kaushan
Hi, I am new to PHP scripting and struggling with the following problem. I have two files, an HTML file and a PHP file. HTML file contains a form with one text field and a submit button. When a user pressed the submit button, it calls the php file (). What the php file does is just echo back the

RE: [PHP] Debug code

2004-01-19 Thread Jay Blanchard
[snip] I have a large PHP application that has a ton of statements like the first email for catching problems. I would like to 'automatically' remove them before I ship the code to eliminate the extra size. I can do it in C, C++, VB but I don't know if it can be done in PHP. [/snip] Whoever create

RE: [PHP] Debug code

2004-01-19 Thread Jay Blanchard
[snip] If PHP is interpreted, then the debug code is always there. If it's compiled, you 'should' be able to remove it with a pre-processor. Does PHP have a pre-processor or am I stuck with the bloated code? [/snip] Are you working with PHP source code? What are you doing Sparky? -- PHP General M

RE: [PHP] Debug code

2004-01-19 Thread Jay Blanchard
[snip] Well, I guess I mean the php 'interpreter'. [/snip] You mean that the 'interpreter' or 'compiler' adds code to your code? Are you by some chance using Dreamweaver? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Debug code

2004-01-19 Thread Nathan Taylor
Aye, PHP is compiled by the executable, nothing else- what are you using? - Original Message - From: Robin Kopetzky To: PHP General Sent: Monday, January 19, 2004 10:32 AM Subject: [PHP] Debug code Good morning! Is there any way to keep the compiler from adding 'debug co

RE: [PHP] Debug code

2004-01-19 Thread Jay Blanchard
[snip] Is there any way to keep the compiler from adding 'debug code'? Example: if ($b_debug) { echo ... } Just trying to eliminate code bloat. [/snip] Which 'compiler' added debug code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Debug code

2004-01-19 Thread Robin Kopetzky
Good morning! Is there any way to keep the compiler from adding 'debug code'? Example: if ($b_debug) { echo ... } Just trying to eliminate code bloat. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Brian V Bonini
On Mon, 2004-01-19 at 02:18, Freedomware wrote: > I just learned that you can even use PHP on style sheets. Can anyone > here tell me how to set it up? > > I found a page at http://www.webdeveloper.co.nz/forum/topic/50 that > apparently cites two different methods. The first is to put a php > h

RE: [PHP] Re: Adding Text to .txt file

2004-01-19 Thread Jay Blanchard
[snip] And this function was differs from fopen("myFile.txt", "a"); [/snip] Ah well, that would leave me ignorant then. Sorry to have barfed up your day with bad information. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Adding Text to .txt file

2004-01-19 Thread Labunski
And this function was differs from fopen("myFile.txt", "a"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Adding Text to .txt file

2004-01-19 Thread Jay Blanchard
[snip] I've lost the name of the function I found in php.net some time ago. This function was able to write the text line at the end of the text file. Can you tell me the name of this function? [/snip] http://www.php.net/fopen fopen("myFile.txt", "a"); -- PHP General Mailing List (http://www.ph

[PHP] Adding Text to .txt file

2004-01-19 Thread Labunski
Hello, I've lost the name of the function I found in php.net some time ago. This function was able to write the text line at the end of the text file. Can you tell me the name of this function? Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] unsupported operand types

2004-01-19 Thread Burhan Khalid
Diana Castillo wrote: why do I get this error? Fatal error: Unsupported operand types in c:\program files\apache group\apache\htdocs\web\usr\local\global\php\providers\interfaces\TouricoTes tInterface.php on line 827 the code is as follows: $price=0; Here $price is an integer. foreach ($price_data

Re: [PHP] Error Reporting help

2004-01-19 Thread Chris Edwards
Thanks for all you replies, most of what you have suggested, I had already tried, in vain, before joining the list. I retried most of the combinations and still cannot get it to report syntax errors. If I have errors, from say undefined variables, the error handler catches those just fine. Questi

Re: [PHP] execute php script with crontab

2004-01-19 Thread Developer
Could I add a question regarding the cron command? If you automatically run a php script through the cron command is timeout taken under account or does it run through the "command line" which is faster (and timeout is not taken under account?) Thanks all Mario - Original Message - From:

FW: [PHP] date fiedl

2004-01-19 Thread Angelo Zanetti
I have a feeling that saving it as a numeric field would be quicker. Numeric fields are generally quicker than alphanumeric fields and the date field in mySQL has the format of -mm-dd, so it probably does some error checking/validation to see the format is correct and also it contains alphanu

[PHP] unsupported operand types

2004-01-19 Thread Diana Castillo
why do I get this error? Fatal error: Unsupported operand types in c:\program files\apache group\apache\htdocs\web\usr\local\global\php\providers\interfaces\TouricoTes tInterface.php on line 827 the code is as follows: $price=0; foreach ($price_data as $price) { $room_price=$price->getAttri

Re: [PHP] How to search the database?

2004-01-19 Thread Radwan Aladdin
I did a search and I found my request :) Notice : I'm sorry I didn't tell you anything about me and my brother.. So I attached with this message our CVs.. hope you will know that I'm at 9th class at school :) That why I ask very much :) Regards.. - Original Message - From: "Radwan Aladdin"

php-general Digest 19 Jan 2004 11:02:54 -0000 Issue 2539

2004-01-19 Thread php-general-digest-help
php-general Digest 19 Jan 2004 11:02:54 - Issue 2539 Topics (messages 174981 through 175009): Re: Using lists over newsgroup, Problem 174981 by: Luke Re: Error Reporting help 174982 by: Chris Edwards 174984 by: Luke 174993 by: Jason Wong Re: recompiling php

[PHP] date fiedl

2004-01-19 Thread Diana Castillo
Does anyone know if there is any speed advantage to saving a date as a unix timestamp or a numeric field instead of a date field? (in Mysql) thanks, -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROT

RE: [PHP] How to search the database?

2004-01-19 Thread Angelo Zanetti
you should try to figure parts of it out before just asking. By us just giving you the answer means that you aren't going to learn anything. TRy and battle but when you get it working you will feel as if you've accomplished something rather than cut and paste someone else's code!! -Origin

Re: [PHP] How to search the database?

2004-01-19 Thread Ryan A
Hmmm, your problem sounds like a serious one but something everyone must know... I have found this site to be particularly useful http://php.net,as for some reason these guys seem to know what they are talking about. after going through the online manual (or downloading it...),...go to this s

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Justin French
On Monday, January 19, 2004, at 06:18 PM, Freedomware wrote: I just learned that you can even use PHP on style sheets. Can anyone here tell me how to set it up? Add this to your .htaccess file: ForceType application/x-httpd-php Add this to the top of your CSS file: Then you can use it

  1   2   >