[PHP] PHP/MySQL difficulties on WindowsXP

2004-04-09 Thread bronto
Hello; We are having a miserable time with MySQL on a Windows/IIS server with PHP. Here's the version numbers: MySQL 3.23.58-nt PHP 4.35 Windows XP (although we previously experienced the same problems w/ Server 2000), 1gb RAM The site is for academics to submit scientific papers (data) for

[PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread Ash..
Hi, I am looking for a comprehensive handholder tutorial, that introduces the various aspects of PHP, step by step and let's u see the big picture. I have come across tons of PHP learnware which is like how to do this and how to do that. But that still doesn't introduce the language to the

[PHP] Can't copy a variable from one session to another?

2004-04-09 Thread Scott Bronson
My web site currently uses 2 sessions: mine (SBSESSID) and SquirrelMail's (SQMSESSID). They work perfectly on their own. However, I would like to allow the user to move from my area to SquirrelMail without re-entering a password. Therefore, I need to copy the password from my session to

Re: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread Andy B
www.php.net/manual/ might help - Original Message - From: Ash.. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 09, 2004 5:34 AM Subject: [PHP] Looking for a comprehensive PHP tutorial Hi, I am looking for a comprehensive handholder tutorial, that introduces the various

[PHP] Forwarding to another PHP page

2004-04-09 Thread Ash..
Hello, Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried header().. based on an example I found it in, but

[PHP] Re: Forwarding to another PHP page

2004-04-09 Thread Andy Ladouceur
Ash.. wrote: Hello, Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried header().. based on an example I found

[PHP] Re: Looking for a comprehensive PHP tutorial

2004-04-09 Thread Andy Ladouceur
Ash.. wrote: Hi, I am looking for a comprehensive handholder tutorial, that introduces the various aspects of PHP, step by step and let's u see the big picture. I have come across tons of PHP learnware which is like how to do this and how to do that. But that still doesn't introduce the language

RE: [PHP] Forwarding to another PHP page

2004-04-09 Thread Vincent Jansen
It should work even if you included something You probably have spaces outside the ?php tags You could use output buffering to prevent this from happening Vincent -Original Message- From: Ash.. [mailto:[EMAIL PROTECTED] Sent: vrijdag 9 april 2004 11:53 To: [EMAIL PROTECTED] Subject:

RE: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread Ralph G
Check these out: http://www.juicystudio.com/tutorial/php/index.asp http://www.scit.wlv.ac.uk/~jphb/sst/php/ -Original Message- From: Ash.. [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Looking for a comprehensive PHP tutorial Hi,

Re: [PHP] Forwarding to another PHP page

2004-04-09 Thread John W. Holmes
From: Ash.. [EMAIL PROTECTED] Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. You're welcome. :) Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried

RE: [PHP] Forwarding to another PHP page

2004-04-09 Thread Vincent Jansen
PS: Someone will undoubtedly mention output buffering, which is a hack to allow header() to work even if there is output. Just learn to do it the right way. :) That would be me then :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP

Re: [PHP] Use PHP to copy MySQL tables

2004-04-09 Thread Jochem Maas
it maybe too much work, but FirebirdDB + PHP5 allows the use of ibase_backup() ibase_restore() - very nifty. otherwise maybe take a look at the phpMyAdmin source for how they handle such thing - Robb Kerr wrote: Is there an easy way to create an HTML page that uses PHP to copy selected MySQL

[PHP] Sorting through an array

2004-04-09 Thread Jamie
I have an array of song artists and songs indexed by an id, i need a way of taking out all the artists names. However as there are multiple lines for each artist i have come accross a problem when only displaying the artist once. Another problem is that the artists are not grouped together so i

[PHP] security on shared servers

2004-04-09 Thread Andy B
hi... im writing this admin system for a website and need to have it write system logs to its own log files... the only problem i can really see is that its on a shared webserver and all files are restricted to your own domain/vhost dirs (whatever those happen to be). the admin wont let anybody

Re: [PHP] Forwarding to another PHP page

2004-04-09 Thread John Nichel
Ash.. wrote: Hello, Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried header().. based on an example I found

Re: [PHP] security on shared servers

2004-04-09 Thread John W. Holmes
From: Andy B [EMAIL PROTECTED] im writing this admin system for a website and need to have it write system logs to its own log files... the only problem i can really see is that its on a shared webserver and all files are restricted to your own domain/vhost dirs (whatever those happen to be).

Re: [PHP] security on shared servers

2004-04-09 Thread Andy B
You don't have access to anything outside of the webroot? If /home/user/www/ is your webroot, then write them to /home/user/. If you're saying you can't do that and they have to be put under the webroot, then give them .php extensions and make the first line ?php exit(); ? Then they can't

[PHP] Call to undefined function: dbase_open()

2004-04-09 Thread Joukje
Hi, I tried to open a dbf with, but I got an error message: Call to undefined function: dbase_open(). PHP was compiled (on linux) with the option enable-dbase. Does anyone have an idea of what's wrong? Joukje -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Call to undefined function: dbase_open()

2004-04-09 Thread Jay Blanchard
[snip] I tried to open a dbf with, but I got an error message: Call to undefined function: dbase_open(). PHP was compiled (on linux) with the option enable-dbase. Does anyone have an idea of what's wrong? [/snip] Have you run phpinfo() to make sure the option is in? -- PHP General Mailing List

Re: [PHP] Call to undefined function: dbase_open()

2004-04-09 Thread John Nichel
Joukje wrote: Hi, I tried to open a dbf with, but I got an error message: Call to undefined function: dbase_open(). PHP was compiled (on linux) with the option enable-dbase. Does anyone have an idea of what's wrong? Joukje When you look at a phpinfo() on that server, do you see the enable-dbase

[PHP] Problem running sql stored in the database

2004-04-09 Thread Ryan A
Hi, I am getting 2 values from a form: $client_id and $client_name (for understanding: client_id = '12' name='ryan') when the client submits the form: 1. I run a query in my php script inserts this data into the db,assigns a C_ID. 2. The query also checks if I have a stored sql statement for

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread Richard Harb
Not quite sure what you mean... So I assume the data was written into the worng fields. If that is the case you could modify your insert query: INSERT INTO table (id, name) VALUES ('$id', '$name') hth Richard Friday, April 9, 2004, 4:11:05 PM, you wrote: Hi, I am getting 2 values from a

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread Ryan A
Hey Richard, Thanks for replying. If that is the case you could modify your insert query: INSERT INTO table (id, name) VALUES ('$id', '$name') No, thats not the problem, its inserting the text $id and $name instead of the values the variables hold. Ideas? Thanks, -Ryan Hi, I am

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread John W. Holmes
From: Ryan A [EMAIL PROTECTED] 2. The query also checks if I have a stored sql statement for this C_ID 2a. If YES it tries to execute the query (if NO, execution stops here, all is well) 3.The stored SQL is usually something like insert into tester('$client_id','$client_name') Heres where

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread Jason Wong
On Friday 09 April 2004 22:24, Ryan A wrote: If that is the case you could modify your insert query: INSERT INTO table (id, name) VALUES ('$id', '$name') No, thats not the problem, its inserting the text $id and $name instead of the values the variables hold. Don't use single quotes. --

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread John Nichel
Jason Wong wrote: On Friday 09 April 2004 22:24, Ryan A wrote: If that is the case you could modify your insert query: INSERT INTO table (id, name) VALUES ('$id', '$name') No, thats not the problem, its inserting the text $id and $name instead of the values the variables hold. Don't use single

[PHP] \n doesnt work in error_log and windows?

2004-04-09 Thread Andy B
i have this sort of a log string: error_log(\n.$date.:.$_SESSION['username'].:Logged in:normal login\n, 3, $LogPath.admin.log); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second entry

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread John W. Holmes
From: John Nichel [EMAIL PROTECTED] Don't use single quotes. $sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name . ') awww, come on... someone besides me had to understand wtf Ryan was blabbering about, right ;) ;) ;) ---John Holmes... -- PHP General Mailing List

RE: [PHP] \n doesnt work in error_log and windows?

2004-04-09 Thread Jay Blanchard
[snip] i have this sort of a log string: error_log(\n.$date.:.$_SESSION['username'].:Logged in:normal login\n, 3, $LogPath.admin.log); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread Ryan A
You have to eval() the code from the database to get the variables replaced (or use a regex). ?php $name = 'John'; $str = file_get_contents('test.txt'); //Reads Hello $name eval('$str = ' . $str . ';'); echo $str; ? Hi John, That didn't work (eval i dont know regex well enough so

Re: [PHP] \n doesnt work in error_log and windows?

2004-04-09 Thread Andy B
everything works now tnx - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 09, 2004 10:45 AM Subject: RE: [PHP] \n doesnt work in error_log and windows? [snip] i have this sort of a log string:

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

2004-04-09 Thread Kelly Hallman
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_dump() $_SESSION it

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_dump()

Re: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread -{ Rene Brehmer }-
I've been recommended the book PHP Developer's Cookbook by several PHP developers ... there's a new version of it out (3rd edition I believe) at the end of this month ... thus I haven't bought it yet... FWIW Rene At 10:34 09-04-2004, Ash.. wrote: Hi, I am looking for a comprehensive

[PHP] ** SOLVED** Problem running sql stored in the database

2004-04-09 Thread Ryan A
Ok, got it solved after going through all the examples at the online manual for eval() Heres the final code (case you are interested): if($sql_exists == 0){}else{$cust_qry=$o_sql; eval(\$cust_qry = \$cust_qry\;); $cust_result = mysql_query($cust_qry); Cheers, -Ryan -- PHP General Mailing

Re: [PHP] Forwarding to another PHP page

2004-04-09 Thread -{ Rene Brehmer }-
At 11:59 09-04-2004, John W. Holmes wrote: From: Ash.. [EMAIL PROTECTED] What are the various ways of forwarding to another page. I tried header().. based on an example I found it in, but it doesnt work if I have done an include before calling the header. What are the other alternatives of

[PHP] ATTN: List Admins

2004-04-09 Thread Ryan A
Please take out these two addresses: Information Desk [EMAIL PROTECTED] Advance Credit Suisse Bank [EMAIL PROTECTED] everytime we post to the list we get their damn autoresponders. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ^%$! Download accelerators

2004-04-09 Thread Raditha Dissanayake
Brian Dunning wrote: I've been using the following code for some time to deliver electronic downloads of purchased software products - header('Content-Type: '.$file_row['content_type']); header('Content-Disposition: filename='.$file_row[filename].''); $size =

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread John Nichel
John W. Holmes wrote: From: John Nichel [EMAIL PROTECTED] Don't use single quotes. $sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name . ') awww, come on... someone besides me had to understand wtf Ryan was blabbering about, right ;) ;) ;) ---John Holmes... I have

Re: [PHP] ATTN: List Admins

2004-04-09 Thread Andy B
i just blocked them whatever they are but still dont need any strange stuff going on... somebody might want to check into a pandasoft autoresponder that keeps answering my messages saying that the list couldnt accept them and it was deleted and blocked because i have a virus?? i had people try

[PHP] test

2004-04-09 Thread Strogg
test --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.655 / Virus Database: 420 - Release Date: 08/04/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem running sql stored in the database

2004-04-09 Thread Ryan A
On 4/9/2004 5:22:12 PM, John Nichel ([EMAIL PROTECTED]) wrote: John W. Holmes wrote: From: John Nichel [EMAIL PROTECTED] Don't use single quotes. $sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name . ') awww, come on... someone besides me had to understand wtf

[PHP] Need help

2004-04-09 Thread Strogg
Hi, Am working through a PHP Book (I am a noob), and it appears to fall over on the first tutorial. Any ideas where I can get help? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.655 / Virus Database: 420 - Release Date:

RE: [PHP] Beginner Question

2004-04-09 Thread jon roig
Doesn't the Apple Developer Tools disk have all that stuff? http://developer.apple.com/tools/ -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: rob [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004

RE: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread jon roig
People always mock me when I mention it, but I really dig the Learn in 24 Hours books. -- jon -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Looking for a comprehensive PHP

[PHP] Re: Need help

2004-04-09 Thread Strogg
This the script that is falling over. It calculates everything correct until the amount reaches £1,000, and then it falls over and reads only the 1 before the comma, and then outputs the price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up)) ? echo pOrder Processed at ; echo

Re: [PHP] Need help

2004-04-09 Thread Daniel Clark
www.phpbuilder.com has some wonderful articles for beginners and advanced. Hi, Am working through a PHP Book (I am a noob), and it appears to fall over on the first tutorial. Any ideas where I can get help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] php/div question...

2004-04-09 Thread bruce
hi... a php question. i'm trying to figure out how to create a quick/sample app that will show how to set up a few buttons/links that can change colors. ideally, i'd like to be able to have a few pages, and have the buttons/links at the top of the page. if i select a button/link i'd like to

RE: [PHP] php/div question...

2004-04-09 Thread Jay Blanchard
[snip] regards, [/snip] Click button. Open CSS file and rewrite with new color. Close CSS file. Page reloads with new color. Since the CSS has be re-written all of the pages will now show the new colors where applicable. You could store color variables in a session for each individual user. --

Re: [PHP] Need help

2004-04-09 Thread Burhan Khalid
Strogg wrote: Hi, Am working through a PHP Book (I am a noob), and it appears to fall over on the first tutorial. Any ideas where I can get help? Try the book/author/publisher website? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-09 Thread Justin Patrin
Jochem Maas wrote: Chris de Vidal wrote: Jochem Maas said: 1. 'Template Engine' - you can justifyably call PHP a template engine Correct. Seems that Smarty is, for the most part, redundant (see my last post called PHP makes a great templating engine (Was: smarty)). I was not intending to

[PHP] Re: Use PHP to copy MySQL tables

2004-04-09 Thread Justin Patrin
Robb Kerr wrote: Is there an easy way to create an HTML page that uses PHP to copy selected MySQL tables to backup copies on the same MySQL server? I want to create an administration page for my client to be able to backup their database whenever they see fit. But, I can't give them direct access

[PHP] Re: Sorting through an array

2004-04-09 Thread Justin Patrin
Jamie wrote: I have an array of song artists and songs indexed by an id, i need a way of taking out all the artists names. However as there are multiple lines for each artist i have come accross a problem when only displaying the artist once. Another problem is that the artists are not grouped

Re: [PHP] PHP - Basic Auth - Cpanel

2004-04-09 Thread Hernan Marino
This is a problem I had with my onw control panel for letting logged in users use phpmyAdmin. I just setted in the redirection script the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] so the popup dont show up. But if cpanel dont use PHP, and just passwd file with an .htaccess file, NO WAY

[PHP] Re: Need help

2004-04-09 Thread Justin Patrin
Strogg wrote: This the script that is falling over. It calculates everything correct until the amount reaches £1,000, and then it falls over and reads only the 1 before the comma, and then outputs the price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up)) ? echo pOrder Processed at

[PHP] Understanding sessions

2004-04-09 Thread Todd Cary
I am trying to understand sessions are done with php. My learning script has the following: session_start(); if (isset($_SESSION['firstname'])) { $_SESSION['firstname'] = 'Todd'; } else { $_SESSION['firstname'] = 'Nobody'; } echo SESSION: . $_SESSION['firstname'] . br; echo

Re: [PHP] Understanding sessions

2004-04-09 Thread John W. Holmes
From: Todd Cary [EMAIL PROTECTED] I am trying to understand sessions are done with php. My learning script has the following: session_start(); if (isset($_SESSION['firstname'])) { $_SESSION['firstname'] = 'Todd'; } else { $_SESSION['firstname'] = 'Nobody'; }

Re: [PHP] Understanding sessions

2004-04-09 Thread Daniel Clark
Todd, I think you want the session_id() function. http://us3.php.net/manual/en/function.session-id.php I am trying to understand sessions are done with php. My learning script has the following: session_start(); if (isset($_SESSION['firstname'])) { $_SESSION['firstname'] =

[PHP] php frame/session update question...

2004-04-09 Thread bruce
how would i use frames to update a session var... i'm considering using frames as a way of updating a session var. i'd like to allow the user to select a link, have the link update a session var, and then return the user to the same frame on the same page... any examples/etc... thanks bruce

[PHP] Store e-mail in DB

2004-04-09 Thread MadHD
Hi, i'm searching some script that can read e-mails with attachments from an account pop3 and that store them in a db. Someone can help me? Thanks, Heber. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Understanding sessions

2004-04-09 Thread Todd Cary
If I use session_id(), I do get a value. However, I have session_use_cookies = 0 and I do not have a value for SID. Is that correct? Todd Daniel Clark wrote: Todd, I think you want the session_id() function. http://us3.php.net/manual/en/function.session-id.php I am trying to understand

Re: [PHP] Understanding sessions

2004-04-09 Thread Todd Cary
Daniel - As suggested, if I turn off cookies in my browser, then SID is set. So the directive in php.ini does not cause the use of cookies to be completely turned off? Another question envolves the use of the back button. My client wants the use of the back button to be turned off for

Re: [PHP] Understanding sessions

2004-04-09 Thread Daniel Clark
I'm not certain. I normally use session variables to store and hold login username or order state. e.g. $_SESSION['username'] If I use session_id(), I do get a value. However, I have session_use_cookies = 0 and I do not have a value for SID. Is that correct? Todd -- PHP General

Re: [PHP] Understanding sessions

2004-04-09 Thread Daniel Clark
As suggested, if I turn off cookies in my browser, then SID is set. So the directive in php.ini does not cause the use of cookies to be completely turned off? My understanding is the php.ini sessions.save_path(?) is for PHP to have a temp directory to write session information on the server.

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

2004-04-09 Thread Kelly Hallman
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. Actually, only if you

Re: [PHP] Understanding sessions

2004-04-09 Thread Curt Zirzow
* Thus wrote Todd Cary ([EMAIL PROTECTED]): If I use session_id(), I do get a value. However, I have session_use_cookies = 0 and I do not have a value for SID. Is that correct? SID is controlled by session.use_trans_sid Curt -- I used to think I was indecisive, but now I'm not so sure. --

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

2004-04-09 Thread Gerben
you could make it more difficult when you replace the href=... with href=#. the only problem now is that people without javascript can's use it. you can make the onClick part (almost)impossible to harvest by putting part(s) of the adres into a variable somewhere else in the html-code like this:

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

[PHP] No Back Button in forms

2004-04-09 Thread James E Hicks III
On Friday 09 April 2004 02:14 pm, Daniel Clark wrote: Another question envolves the use of the back button. My client wants the use of the back button to be turned off for security reasons for some pages. His preference is to have a page expire if it is arrived on by pressing the back

[PHP] Re: Store e-mail in DB

2004-04-09 Thread Michelle Konzack
Am 2004-04-09 19:18:18, schrieb MadHD: Hi, i'm searching some script that can read e-mails with attachments from an account pop3 and that store them in a db. Someone can help me? Thanks, Heber. Use fetchmail to get the Mails and forward ist to procmail. Here you install a filter like :0 ci *

Re: [PHP] Understanding sessions

2004-04-09 Thread Justin Patrin
Daniel Clark wrote: As suggested, if I turn off cookies in my browser, then SID is set. So the directive in php.ini does not cause the use of cookies to be completely turned off? My understanding is the php.ini sessions.save_path(?) is for PHP to have a temp directory to write session

[PHP] Finding value in multi-dimensional array

2004-04-09 Thread Verdon Vaillancourt
Hi, being somewhat of a noob, I hope I'm using the right language to phrase this question... In a project I am working with, I have a multi-dimensional array in session when a user logs in. Visually, it looks something like this... OBJ_user username = value isAdmin = value

[PHP] Re: Finding value in multi-dimensional array

2004-04-09 Thread Andy Ladouceur
Verdon Vaillancourt wrote: Hi, being somewhat of a noob, I hope I'm using the right language to phrase this question... In a project I am working with, I have a multi-dimensional array in session when a user logs in. Visually, it looks something like this... OBJ_user username = value

Re: [PHP] Finding value in multi-dimensional array

2004-04-09 Thread Richard Harb
do a print_r() for the structure. -- print_r($_SESSION[OBJ_user]); and look at the page source. at each level ... if is says array refer to it with ['property'] if obj (stdClass or otherwise) use - that arrow thingy I am not sure what the arrows in you desc mean, whether it's key/value pair of

Re: [PHP] Finding value in multi-dimensional array

2004-04-09 Thread Verdon Vaillancourt
Sorry, my example was poor :) Thanks for the print_r tip. When added to the bottom of the page, print_r($_SESSION[OBJ_user]); Prints... phpws_user Object ( [user_id] = 5 [username] = agent [password] = 77abcd5cb2ef4a366c2749ea9931c79e [email] = [EMAIL PROTECTED]

Re: [PHP] Finding value in multi-dimensional array

2004-04-09 Thread Richard Harb
No problem .. Let's see: if($_SESSION['OBJ_user']-modSettings['listings']['active'] == '1') { That should be it ... Sidenote: use single quotes whenever the string needn't be evaluated (i.e. is a variable itself) you save a couple cycles every time. hth Richard Friday, April 9, 2004, 10:32:25

[PHP] Re: Forwarding to another PHP page

2004-04-09 Thread Jason Barnett
Ash.. wrote: Hello, Thanks John (Holmes) for the clue on form-param-reading. Simple one, but shows I got a lot of basics to learn yet. Here I have another doubt I cant resist asking help for. What are the various ways of forwarding to another page. I tried header().. based on an example I found

Re: [PHP] Can't copy a variable from one session to another?

2004-04-09 Thread Scott Bronson
After talking with some folks on IRC, it sounds like this is effectively impossible?? I'd just like to check -- is it really impossible in PHP to copy a variable from one session to another? I don't mind subtle trickery. Thanks, - Scott On Fri, 9 Apr 2004 02:37:05 -0700 (PDT) Scott

Re: [PHP] Can't copy a variable from one session to another?

2004-04-09 Thread Robert Cummings
On Fri, 2004-04-09 at 18:40, Scott Bronson wrote: After talking with some folks on IRC, it sounds like this is effectively impossible?? I'd just like to check -- is it really impossible in PHP to copy a variable from one session to another? I don't mind subtle trickery. If they're both on

Re: [PHP] ATTN: List Admins

2004-04-09 Thread -{ Rene Brehmer }-
I'll second that ... keep getting this in response from them: Thank you !! Your message has been received; we will treat your message and get back to you as soon as possible. Besides the fact that mailman more or less makes this list useless for me ... this is just another annoyance... Rene

[PHP] regular expressions

2004-04-09 Thread René Fournier
I'm trying to 'clean up' some text that is extracted from a web directory, and I need to use (I think) preg_replace or ereg_replace, etc. I've read a bunch of tutorials, but none of them seem to cover the particular thing I want to do. Here's an example of text I need to process: -

RE: [PHP] Looking for a comprehensive PHP tutorial

2004-04-09 Thread -{ Rene Brehmer }-
I've got a Lean C++ in 24 hours which has only proven useless to me ... and that's after nearly 20 years programming in nearly all other programming languages... so I basically don't like them ... the Learn ... in 21 days seems alot better written ... both series are by Sams btw Rene At 16:38

Re: [PHP] regular expressions

2004-04-09 Thread Richard Harb
Saturday, April 10, 2004, 2:02:04 AM, you wrote: I'm trying to 'clean up' some text that is extracted from a web directory, and I need to use (I think) preg_replace or ereg_replace, etc. I've read a bunch of tutorials, but none of them seem to cover the particular thing I want to do. Here's

[PHP] Store e-mail in DB

2004-04-09 Thread Michelle Konzack
Am 2004-04-09 19:18:18, schrieb MadHD: Hi, i'm searching some script that can read e-mails with attachments from an account pop3 and that store them in a db. Someone can help me? Thanks, Heber. Use fetchmail to get the Mails and forward ist to procmail. Here you install a filter like :0 ci *

Re: [PHP] ATTN: List Admins

2004-04-09 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [postmaster@ added to Cc:] Hello, On Saturday 10 Apr 2004 00:39, -{ Rene Brehmer }- wrote: I'll second that ... keep getting this in response from them: Thank you !! Your message has been received; we will treat your message and get back to

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

2004-04-09 Thread Kelly Hallman
Apr 9 at 2:49pm, Jason Giangrande wrote: Kelly Hallman wrote: Try it without serializing, it works. After retesting, it seems you are correct. I guess the same bad __sleep() code that was causing the object not to unserialize at all was also preventing automatic serialization. For some

[PHP] Fwd: failure notice

2004-04-09 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello PHP group :) The qmail alias for ezmlm-postmaster seems broken. Please see the below message (apologies if I should have sent this elsewhere) Elfyn - -- Forwarded Message -- Subject: failure notice Date: Saturday 10 Apr

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-09 Thread Raditha Dissanayake
Richard Davey wrote: Hello Ben, Friday, April 9, 2004, 3:36:04 AM, you wrote: BR Well, is there actually a way to do this or a way to check the filesize BR and send a nice message to the user that the file is over the BR limit--other than just some error being thrown? Not until it gets to the

[PHP] The Smarty Aftermath

2004-04-09 Thread Justin French
In the aftermath of the Smarty debate (which turned from intelligent to stupid very quickly), I decided to look closely at templating again (though not smarty), and I've found one are where these excel in comparison to PHP. Textpattern [1] is a gamma release CMS/blog tool which uses XML

Re: [PHP] Finding value in multi-dimensional array - Solved

2004-04-09 Thread Verdon Vaillancourt
Hi, Thanks much to Richard and Andy for the input :) This one did the job... if($_SESSION['OBJ_user']-modSettings['listings']['active'] == '1') { I'm still not entirely sure I understand the syntax ;) verdon From: Richard Harb [EMAIL PROTECTED] Date: Fri, 9 Apr 2004 22:49:44 +0200 Let's

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

2004-04-09 Thread Mike Zornek
Is it true I can't include a file up a dir like this: require_once '../config.php'; This seems to work though: require_once 'settings/db.php'; Strange. ~ Mike - Mike Zornek Web Designer, Media Developer, Programmer and Geek Personal site: http://MikeZornek.com New Project:

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

2004-04-09 Thread Jason Giangrande
Mike Zornek wrote: Is it true I can't include a file up a dir like this: require_once '../config.php'; You should be able to include a file up one (or more) directories. Are you sure it's only up one directory from were your script is being called from? This seems to work though:

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

2004-04-09 Thread Richard Harb
Depends on where the executed script is located ... And it always depends on the script that is called - if you give a relative path like you did here. if the script you called would be http://www.example.com/news/2004-04-10/mypage.php then config.php would have to be in /news if your layout is

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

2004-04-09 Thread Marek Kilimajer
Mike Zornek wrote: Is it true I can't include a file up a dir like this: require_once '../config.php'; This seems to work though: require_once 'settings/db.php'; Strange. Both works as long as other settings permit it - file permission and owner, safe mode restrictions -- PHP General

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

2004-04-09 Thread Tom Rogers
Hi, Saturday, April 10, 2004, 10:51:20 AM, you wrote: KH Apr 9 at 2:49pm, Jason Giangrande wrote: Kelly Hallman wrote: Try it without serializing, it works. After retesting, it seems you are correct. I guess the same bad __sleep() code that was causing the object not to unserialize at

Re: [PHP] Beginner Question

2004-04-09 Thread Kris J. Hagel
On Thu, 2004-04-08 at 22:30, rob wrote: I am a newcomer to PHP and I am looking for an intsallation package similar to to FoxPro for MAC OSX 10.2.(Ie intsall appache, MY SQL and Latest version of PHP) Does anyone know where I may find one? Thanks RB Try http://www.serverlogistics.com They

Re: [PHP] Beginner Question-Solution-packages

2004-04-09 Thread rob
On 10/4/04 1:37 AM, jon roig [EMAIL PROTECTED] wrote: Thank you for your help! Php and mysql ship on MAC OSX servers but not on on the normal machines. Apple provides support for these two at http://developer.apple.com/internet/opensource/osdb.html for help on MySQL on MAC OSX including step by

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

2004-04-09 Thread Kelly Hallman
Apr 10 at 1:39pm, Tom Rogers wrote: Is your __sleep() function returning the array required by serialization? Since you mentioned it, I tried returning an array and it did not segfault, thought it was initially unclear what the array was for. After reading over most of the documentation about