[PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
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 heading at the top of a style sheet, then alter a document

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
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 heading at the top of a style sheet, then

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Richard Davey
Hello Freedomware, Monday, January 19, 2004, 7:18:10 AM, you wrote: F I just learned that you can even use PHP on style sheets. Can anyone F here tell me how to set it up? F Are you aware of any good tutorials on using PHP with style sheets? Sorry but you haven't really stumbled onto a pot of

[PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
Hello im hoping someone might have an insight into this one im getting an odd error when I use a not condition in an if statement The code is as follows: if !(isset($_REQUEST[license])) { $license = off; } The error I am receiving is: Parse error: parse error, unexpected '!', expecting '(' in

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
Sorry but you haven't really stumbled onto a pot of gold here or anything. Hmmm... it sounds like using PHP with style sheets isn't a recommended practice. John Nichel wrote: If you want PHP to parse your *.css files, you need to tell your webserver software to do so. In Apache AddType

Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Gutsche wrote: | Hello im hoping someone might have an insight into this one im getting an | odd error when I use a not condition in an if statement | | The code is as follows: | if !(isset($_REQUEST[license])) | { | $license = off; | } | |

[PHP] How to search the database?

2004-01-19 Thread Radwan Aladdin
Hello.. I made my Login and registration pages and everything is okay.. but what I want now is to know how to make this : A PHP page for the administrator.. that has a TextBox (UserName).. he will enter a user name in it.. after that he will press the button (Activate).. Now by pressing that

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

2004-01-19 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 7:33:29 PM, you wrote: SH HI, i want to check if the user filled the all inputs in the form. So, I SH checked NULL and with this function in the post receiving script. SH --- SH function is_filled_out() SH { SH // test that each

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Dagfinn Reiersøl
Freedomware wrote: Sorry but you haven't really stumbled onto a pot of gold here or anything. Hmmm... it sounds like using PHP with style sheets isn't a recommended practice. I wouldn't do it unless I had a good reason to do it. The reason that's cited on the page you referred to is to have

Re: [PHP] How to search the database?

2004-01-19 Thread Toby Irmer
RTFM and stop sending messages to this list with a high priority. The questions you are asking are answered in the first 3 chapters of any good book about php. toby - Original Message - From: Radwan Aladdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:13 AM

Re: [PHP] Is this possible ?

2004-01-19 Thread Dagfinn Reiersl
An object-oriented way of doing it: keep the extra result in a member variable and get it separately. You might not find this necessary, but it gets more useful in more complex cases. class MyClass { var $num; Function MyFunc(){ if(isset($_POST['var'])){ $sql = mysql_query(select * from

Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
Danke looks like its a simple case where the reference book had a Typo in it putting the ! on the outside of the bracket. Thanx for your help. Regards Tristan Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Gutsche

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: Files ~ \.css$ ForceType application/x-httpd-php /Files Add this to the top of your CSS file:

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

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!!

[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

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

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] 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) {

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

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:

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.

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

[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:

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

[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] 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

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

[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

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,

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

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 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

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

[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 (form action=test.php ...). What the php file

[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:

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] 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 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:

[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 ---BeginMessage--- This report relates to your message: Subject: [PHP] Re: dynamic array creation from form elements, Message-ID: [EMAIL PROTECTED], To:

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

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

[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

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: ? header(Content-Type: text/css); ? For the original style sheet, I

[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: * ?php $code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah; $url =

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: * ?php $code = blah

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: ? header(Content-Type: text/css); ? I would think

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: * ?php $code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah; $url =

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 following code

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

[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] 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] 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] Is this code right?

2004-01-19 Thread Miguel J. Jimnez
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 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,

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: *Warning*: Unknown

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

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] 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..

[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 Jeremy Davis
snip $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 to

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..

[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

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 then

Re: [PHP] Is this code right?

2004-01-19 Thread Radwan Aladdin
Do you mean this is the right code : ?php $link = mysql_connect(localhost, Database username, Database password) or die(Could not connect: . mysql_error()); mysql_select_db(Database name, $link); $UserName = $_GET['UserName']; $Password = $_GET['Password']; $Serial = $_GET['Serial']; $query =

Re: [PHP] date fiedl

2004-01-19 Thread Miguel J. Jimnez
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

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

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: [PHP] Is

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] 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 account?)

[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] 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): ?php $code = blah

[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] 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 = $var1

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 $key

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:

[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 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] 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

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] 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] 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

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] 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

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

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 = On With those

[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

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

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

[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

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

[PHP] USE_SESSION_ID

2004-01-19 Thread Ian C roberts
hello all, Im having troubled with horde and imp with php 4.3.4. I receive the 'USE_SESSION_ID' 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

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

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

[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

[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

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

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.

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

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

  1   2   >