Re: [PHP] converting from name - id and PHP not seeing it?

2004-09-23 Thread Jason Giangrande
Tris... The name attribute on forms is not usually needed, and I have used the id attribute before and they work fine. Do you have names on each input, select, or any of the other form elements you may have? Use these to extract the form information, and it should work just fine. -- Jason

Re: [PHP] Showing all users who are logged in

2004-07-28 Thread Jason Giangrande
come up with a solution. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Showing all users who are logged in

2004-07-27 Thread Jason Giangrande
? -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require_once '../config.php'; doesn't work?

2004-04-09 Thread Jason Giangrande
seems to work though: require_once 'settings/db.php'; Strange. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Jason Giangrande
Kelly Hallman wrote: Apr 9 at 11:12am, Jason Giangrande wrote: You shouldn't serialize() objects prior to assign to a session variable. The default session handler automatically serializes the data. Assigning a serialized object value to a session just adds redundancy and overhead. Act

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Jason Giangrande
Kelly Hallman wrote: Apr 9 at 1:44am, Jason Giangrande wrote: Jason Giangrande wrote: I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable When I var

Re: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-08 Thread Jason Giangrande
Jason Giangrande wrote: I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing. On fir

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
re overhead than storing them in a file or database. If I was to guess, storing them in a database might be less taxing. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
Jason Wong wrote: On Friday 09 April 2004 11:07, Jason Giangrande wrote: Jason Wong wrote: What does the php error have to say about it? php error? I'm sorry but I don't know what you are talking about. Sorry, I meant to say "php error log". You should ALWAYS enable f

Re: [PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
nction on a non-object in /path/to/php/script/test.php on line 16 -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Serializing objects and storing them is sessions

2004-04-08 Thread Jason Giangrande
rialize() it and store it in $auth the value is bool(false) and not an object. Can anyone tell me what I am doing wrong? Thanks, -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hiding email address from Robots ??

2004-04-08 Thread Jason Giangrande
ED]' which any mail robot will clearly be able to use. Any robots will not read the page until all PHP code has run and returned the page as complete html. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question, what to do when finding an error while validating data

2004-04-05 Thread Jason Giangrande
Mike Zornek wrote: Oops, forgot to send my original response to the list last time. On 4/5/04 1:33 PM, "Jason Giangrande" <[EMAIL PROTECTED]> wrote: What I usually do is create a select box that has only the values of the enum. That way no one should be able to (in theory) put

Re: [PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Jason Giangrande
Linux and you don't need any of the new fancy modules that can be used with Apache 2.0.x use 1.3.x. If your server is running Windows you will probably want to run Apache 2.0.x since that is supposed to run much better under Windows than 1.3.x. -- Jason Giangrande <[EMAIL PRO

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Jason Giangrande
e so many people using it now? What does it have to offer then just creating files full of functions to include later like I've always done? It's really good for code organization and reuse. The ability to reuse code every easily is it's best feature, IMO. Also, Rob has good p

Re: [PHP] Re: Methods for creating HTML with PHP

2004-03-25 Thread Jason Giangrande
ready does. --- --- As for Smarty, well, anything it can do, PHP can do better and faster, without the overhead :) Personally I've used Smarty only a little. It has it purposes in some situations, but since I know PHP (somewhat anyway :-D) I wouldn't need it for most projects. -- Jaso

Re: [PHP] Header Redirect & POST

2004-03-25 Thread Jason Giangrande
to make sure $_POST is empty for that page. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Methods for creating HTML with PHP

2004-03-24 Thread Jason Giangrande
Raditha Dissanayake wrote: How about just escaping out of php :-) and embedding the html direct? Jason Giangrande wrote: I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but that doesn't seem like a real goo

[PHP] Methods for creating HTML with PHP

2004-03-24 Thread Jason Giangrande
ble to download a package marked beta with PEAR, or does it need to be downloaded manually? Thanks, -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: string function that inserts a char

2004-03-20 Thread Jason Giangrande
$text; Test it and you will see that a space is added into the text without replacing any of it. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML/PHP page print

2004-03-18 Thread Jason Giangrande
or printer driver. Therefore, it would be very hard if not impossible to turn off through server-side scripting or even with JavaScript. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.giangrande.org http://www.dogsiview.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jason Giangrande
return true; } ~} ~return false; } if (kick($ip)) { echo "Sorry, the access is denied."; } It seems each ip address in the $file_ip has a new line on the end too, so you need to remove that before the current ip address in $ip will match anything that i

[PHP] MySQL query

2004-01-27 Thread Jason Giangrande
es with fatal error global $db_name; if (mysql_error()) { die("Error " . mysql_errno() . ": " . mysql_error()); } else { die("Could not connect to database, $db_name"); } } -- Jason Giangrande <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part

Re: [PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
n happy with that allowance. > > HTH & HAND > > :-D Thanks for your help guys. Cutting the ping timeout helped speed things up quite a bit. I will also look into BigBrother and your other suggestions. Thanks again. -- Jason Giangrande <[EMAIL PROTECTED]> http://www.

Re: [PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
On Sat, 2003-11-29 at 12:20, Adam Maas wrote: > why not try: > > passthru("ping $host"); > > Adam That still takes a little while to execute on multiple hosts, Plus I need to modify the output of the command to print just the IP address and discard the rest

[PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
c 1 $host), and while I could get that to work, since it returns non-zero status if the host can not be contacted, it takes quite a while to execute for even a few hosts at once. Anyone ever do this king=d of thing before or have any suggestions on what might work? -- Jason Giangrande <[EMAI

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
av > variable. It prints nothing when I try to print the variable. > > > "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Eric, If you want to check to see if $subnav is equal to "home" you want > > to use ==

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, If you want to check to see if $subnav is equal to "home" you want to use == and not =. Perhaps this is your problem. Jason On Thu, 2003-07-24 at 15:35, Eric Fleming wrote: > Here is a snippet from the header file. You can see that I am just trying > to determine what the value of the sub

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Is the code you are trying to call $subnav from inside a function? If so you will need to tell the function that by using the global keyword (i.e. global $subnav;). Other than that the code you've shown looks right to me. Jason On Thu, 2003-07-24 at 13:55, Eric Fleming wrote: > I am having some

Re: [PHP] Global variable question question

2003-07-23 Thread Jason Giangrande
Jason On Wed, 2003-07-23 at 16:13, Lars Torben Wilson wrote: > On Wed, 2003-07-23 at 12:19, Jason Giangrande wrote: > > When registered globals is set to off this does not effect the $PHP_SELF > > variable right? In other words I should be able to call $PHP_SELF with > > out

[PHP] Global variable question question

2003-07-23 Thread Jason Giangrande
When registered globals is set to off this does not effect the $PHP_SELF variable right? In other words I should be able to call $PHP_SELF with out having to do this $_SERVER['PHP_SELF'], right? Thanks, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Deleting array fields...

2003-07-22 Thread Jason Giangrande
r them so I might as well get rid of them. Thanks again. Jason On Tue, 2003-07-22 at 22:36, Curt Zirzow wrote: > * Thus wrote Jason Giangrande ([EMAIL PROTECTED]): > > Is there a way to delete array fields without resort the keys? The keys > > of this particular array are the posi

[PHP] Deleting array fields...

2003-07-22 Thread Jason Giangrande
reiterate, what I want to do is remove a key from an array but not have the keys automatically reassigned. Thanks, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms and PHP

2003-07-19 Thread Jason Giangrande
; look around the JS lists and sites for something that might give you a > head start. > > > justin > > > > On Sunday, July 20, 2003, at 02:37 PM, Jason Giangrande wrote: > > > I have a question about forms and PHP. Here's what I'm looking to do. > >

[PHP] Forms and PHP

2003-07-19 Thread Jason Giangrande
other words, I would like the user to be able to check the spelling without actually submitting the form. Thanks, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replacing newlines (n) with smething else

2003-07-13 Thread Jason Giangrande
My problem is solved. Thank you to everyone who responded. Jason On Sun, 2003-07-13 at 18:33, David Nicholson wrote: > Hello, > > > This is a reply to an e-mail that you wrote on Sun, 13 Jul 2003 at 23:12, > lines prefixed by '>' were originally written by you. > > Maybe the browser you are u

Re: [PHP] Replacing newlines (\n) with smething else

2003-07-13 Thread Jason Giangrande
It's really strange because I type the following into the form field. Test Test Test And get this as output. Test Test Test Do form fields not preserve spacing or line breaks? Jason On Sun, 2003-07-13 at 17:45, David Otton wrote: > On 13 Jul 2003 17:27:04 -0400, you wrote: > > >Perh

Re: [PHP] Replacing newlines (\n) with smething else

2003-07-13 Thread Jason Giangrande
Perhaps. When getting text from a form field, what is substituted for a newline (i.e. when someone hits enter). Jason On Sun, 2003-07-13 at 17:21, David Otton wrote: > On 13 Jul 2003 17:01:24 -0400, you wrote: > > >I'm trying to replace newlines with something else. For this example > >I'll us

Re: [PHP] Re: Replacing newlines (\n) with smething else

2003-07-13 Thread Jason Giangrande
I did not know about nl2br. Thanks. But what if say I want to replace a newline with something else, say . How would I do that? Jason On Sun, 2003-07-13 at 17:09, J. Cox wrote: > "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > &g

[PHP] Replacing newlines (\n) with smething else

2003-07-13 Thread Jason Giangrande
o replace the newlines in. I tried this with a period and that works as expected. Can I not replace newlines this way? Thanks, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing to file with function

2003-07-12 Thread Jason Giangrande
Never mind everyone, I figured it out. In this line: $data_line = implode($separator, $data_array)."\n"; I was adding a newline when I didn't need too. Jason On Sat, 2003-07-12 at 17:03, Jason Giangrande wrote: > I have written this function to rewrite the contents of a text

[PHP] Writing to file with function

2003-07-12 Thread Jason Giangrande
I have written this function to rewrite the contents of a text file after it's been updated. I store lines of data in an array and then implode them into one string. The problem is that I'm getting an extra line break (in other words a blank line is showing up in my text file) after I modify a pa

Re: [PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jason Giangrande
ot talking millions, or even thousands of users, more like a few hundred a day. If using files should not be a problem, I would much rather use that method in this particular project. Thanks again, Jason On Fri, 2003-07-11 at 21:27, Michael Smith wrote: > Jason Giangrande wrote: > >

[PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jason Giangrande
ain them I only get one value. Anyone have any ideas why? Regards, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Thanks for the help guys. Jason On Fri, 2003-07-11 at 15:43, David Nicholson wrote: > Hello, > > > This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37, > lines prefixed by '>' were originally written by you. > > Any ideas on how I can print the lines of my file in reverse o

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Any ideas on how I can print the lines of my file in reverse order, then? Does fgets() always process from the beginning of the file even if you open the file with the pointer at the end? I tried to get the line count of the file and go through each line of the file backwards but that doesn't see

[PHP] Writing to files

2003-07-11 Thread Jason Giangrande
es at the top of the file. Thanks, Jason Giangrande -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning values from functions

2003-07-09 Thread Jason Giangrande
Thanks. I'm new to PHP, but still I should have seen that. :-) Jason On Wed, 2003-07-09 at 18:44, David Nicholson wrote: > Hello, > > > This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 23:40, > lines prefixed by '>' were originally written by you. > > auth_user($_SESSION['logi

[PHP] Returning values from functions

2003-07-09 Thread Jason Giangrande
); } } else { die ("Sorry, you are not logged in. Please log in and try again."); } } Here's the code that calls the function which is in another script. auth_user($_SESSION['login']); var_dump($username); Thanks, Jason Giangrande -- PHP General Ma