[PHP] session handling

2005-05-23 Thread eswar
Dear sir I am the php programmer. I am trying with session handling.It is not working properly. sessions function well when I use browser on the machine where IIS is installed. But through other machines, it always create two session file, one is OK, the other is blank, nothing in it. the later

[PHP] Php with mysql

2005-05-23 Thread Rittwick Banerjee
Hi friends, I am Rittwick Banerjee Some one gave me an idea about that past php code that is : $sql = SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name` = '$_POST['user_id']' AND '$_POST['user_id']' ; but I found that it still not working ... Plaese give me

[PHP] php encoders

2005-05-23 Thread Dustin Krysak
Can anyone recommend some good php encoders? A variance in price range would be good. Thanks in advance! d -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can you have pragmas/literals in PHP?

2005-05-23 Thread zzapper
Hi, I have set of php code lines that are often repeated . Functions are in this circumstance not suitable. So my question is does PHP have what are in other languages sometimes called pragmas or literal. I suppose they could be descibed as variables containing code. -- zzapper vim -c

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already given in a previous reply to you) is SELECT

[PHP] Free penetration test

2005-05-23 Thread Andy Pieters
Hi all I am looking at where I can get my system tested for penetration. In case someone here would like to have a go This is the url http://www.vlaamse-kern.com/yourstore-0.0.2-beta1/admin/ It is actually a kind of CMS system so if someone gets in, create a page with the cms as proof.

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
(posted again with another syntax error corrected) This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Andy Pieters
On Friday 20 May 2005 20:46, Graham Anderson wrote: Can the server variable 'user agent' be modified/spoofed by the user? I whish people would stop implementing these kinds of things! Question: do you deny access to your home because the person ringing the bell is African? Or maybe because

[Fwd: Re: [PHP] Can you have pragmas/literals in PHP?]

2005-05-23 Thread Jochem Maas
er hit the wrong reply button... Original Message zzapper wrote: Hi, I have set of php code lines that are often repeated . Functions are in this circumstance not suitable. why are functions not suitable? you are probably right but I'm interested to understand why. could

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Richard Lynch
On Mon, May 23, 2005 2:54 am, Andy Pieters said: Can you at least think of only one valid reason to do the stuff you ask to do? I don't think so. I think they're trying to stop massive bandwidth drain by peeps direct-downloading the movie... Or something like that. I can understand that, as

Re: [PHP] Can you have pragmas/literals in PHP?

2005-05-23 Thread Richard Lynch
On Mon, May 23, 2005 1:00 am, zzapper said: So my question is does PHP have what are in other languages sometimes called pragmas or literal. No. I suppose they could be descibed as variables containing code. The following are the closest matches, conceptually: http://php.net/eval

Re: [PHP] php encoders

2005-05-23 Thread Richard Lynch
On Mon, May 23, 2005 1:00 am, Dustin Krysak said: Can anyone recommend some good php encoders? A variance in price range would be good. Google.com has a nice list of them. Just type PHP Encoder in the box! -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] session handling

2005-05-23 Thread Richard Lynch
On Sun, May 22, 2005 11:09 pm, eswar said: I am the php programmer. I am trying with session handling.It is not working properly. sessions function well when I use browser on the machine where IIS is installed. But through other machines, it always create two session file, one is OK, the other

Re: [PHP] Re: Re: __get() not reentrant?

2005-05-23 Thread Richard Lynch
On Sun, May 22, 2005 3:24 pm, Christopher J. Bottaro said: And what would make it any different from a normal recursive function? The fact that *ANY* attempt to access a mis-typed property would kick in a __get() call, and that's too frickin' easy to happen in code that's too easy to fly by QA

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Jochem Maas
Andy Pieters wrote: On Friday 20 May 2005 20:46, Graham Anderson wrote: Can the server variable 'user agent' be modified/spoofed by the user? I whish people would stop implementing these kinds of things! Question: do you deny access to your home because the person ringing the bell is

RE: [PHP] financial application form

2005-05-23 Thread Jay Blanchard
[snip] I have a large application form (financial) which I have working fine but I need to be able to have it either work as a single application or a joint one. If joint it needs to display two forms for the user to fill in. I am just wondering how I can do this without having to write a second

RE: [PHP] Php with mysql

2005-05-23 Thread Jay Blanchard
[snip] $sql = SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name` = '$_POST['user_id']' AND '$_POST['user_id']' ; [/snip] echo $sql; //to see the query and check the syntax $sql = SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name` = ' . $_POST['user_id'] . ' AND ' .

[PHP] searching tables

2005-05-23 Thread Sebastian
I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. eg, i have two tables with different column names: news: title | newstext faqs: topic | faqstext currently i am just searching the news table with a query as such: SELECT *, MATCH

[PHP] Requiring stuff question

2005-05-23 Thread Robert
I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR . 'Pager_Wrapper.php'); //

[PHP] Problems with multiple arrays

2005-05-23 Thread virtualsoftware
Hi all, I have 3 arrays: $array _ids = (id_1, id_2, id_3, id_4) $array_names = (name_1, name_2, name_3, name_4) $array_emails = (email_1, email_2, email_3, email_4) I want to create an array that contains all this arrays and then to print the array. Something like that: foreach

RE: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Kim Madsen
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 2:13 PM I think they're trying to stop massive bandwidth drain by peeps direct-downloading the movie... That would be faily easy to work around. Have a md5 generated filename, use PHP to

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Ryan A
Question: do you deny access to your home because the person ringing the bell is African? Or maybe because he is Muslim? Or because he/she doesn't speak English? There are laws against discrimination and you shouldn't create applications that deny access based on where the user comes

Re: [PHP] searching tables

2005-05-23 Thread Greg Donald
On 5/23/05, Sebastian [EMAIL PROTECTED] wrote: I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. http://dev.mysql.com/doc/mysql/en/union.html -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List

Re: [PHP] searching tables

2005-05-23 Thread Chris Boget
I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. Look into UNION. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
Sebastian wrote: I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. eg, i have two tables with different column names: news: title | newstext faqs: topic | faqstext currently i am just searching the news table with a query as such:

Re: [PHP] Free penetration test

2005-05-23 Thread Christophe Chisogne
Andy Pieters a écrit : I am looking at where I can get my system tested for penetration. Probably on the world wild web :-) More seriously, there are companies doing that, but it can be expensive. http://www.vlaamse-kern.com/yourstore-0.0.2-beta1/admin/ It is actually a kind of CMS system

[PHP] Error checking

2005-05-23 Thread Michael Satterwhite
I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me? -- PHP General

RE: [PHP] Requiring stuff question

2005-05-23 Thread Jay Blanchard
[snip] // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR . 'Pager_Wrapper.php'); // Define the DB package

Re: [PHP] Requiring stuff question

2005-05-23 Thread John Nichel
Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR .

Re: [PHP] Requiring stuff question

2005-05-23 Thread Jochem Maas
Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR .

RE: [PHP] Problems with multiple arrays

2005-05-23 Thread Shaw, Chris - Accenture
Try this: ?php $array_ids = array('id_1', 'id_2', 'id_3', 'id_4'); $array_names = array('name_1', 'name_2', 'name_3', 'name_4'); $array_emails = array('email_1', 'email_2', 'email_3', 'email_4'); $full_data [] = $array_ids; $full_data [] = $array_names; $full_data [] = $array_emails; foreach

RE: [PHP] Problems with multiple arrays

2005-05-23 Thread Shaw, Chris - Accenture
Sorry, sent the wrong code. ?php $array_ids = array('id_1', 'id_2', 'id_3', 'id_4'); $array_names = array('name_1', 'name_2', 'name_3', 'name_4'); $array_emails = array('email_1', 'email_2', 'email_3', 'email_4'); $full_data [] = $array_ids; $full_data [] = $array_names; $full_data [] =

Re: [PHP] Error checking

2005-05-23 Thread Philip Hallstrom
I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me? take a read through

RE: [PHP] Search problem

2005-05-23 Thread Jim Moseby
Hi, I need to build up a search module for a shop. If I make a basic search (product title for example) it is ok. $query = SELECT product_id FROM products WHERE title LIKE '%$title%'; But i need an advance search for more than one field (title, description, price, weight) The

Re: [PHP] Error checking

2005-05-23 Thread John Nichel
Michael Satterwhite wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
John Nichel [EMAIL PROTECTED] wrote: We are currently away on holiday, until 16th June. I will respond with your email on my return. Thanks James Nunnerley Lookie, lookie php list controler peopleanother reason for an active moderator. -- John C. Nichel ÜberGeek KegWorks.com

[PHP] Regex nightmares

2005-05-23 Thread W Luke
Hi, I really struggle with regex, and would appreciate some guidance. Basically, I have a whole load of files (HTML) which are updated every few minutes. I need to go through each line, looking for the word CONFIRMED: (which is always in capitals, and always superseded by a colon). The line

Re: [PHP] Error checking

2005-05-23 Thread Michael Satterwhite
John Nichel wrote: Michael Satterwhite wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-23 Thread Rahul S. Johari
Ave, On 5/21/05 9:11 AM, Ryan A [EMAIL PROTECTED] wrote: eg: first have a function to generate a modest random string (I use 8 chars) then in the image calling part call it something like this: img src='?php echo $your_image_gets_called_here; ???php echo $the_rand_string; ?' as

Re: [PHP] Error checking

2005-05-23 Thread Christophe Chisogne
Michael Satterwhite a écrit : in /etc/php4/apache, I have the setting I guess you mean /etc/php4/apache/php.ini error_reporting = E_ALL ~E_NOTICE You'll get all errors but warnings (ex unused var). What you want is error_reporting = E_ALL Ch. -- PHP General Mailing List

Re: [PHP] Error checking

2005-05-23 Thread Michael Satterwhite
Philip Hallstrom wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me?

[PHP] Re: Re: Re: __get() not reentrant?

2005-05-23 Thread Christopher J. Bottaro
Richard Lynch wrote: On Sun, May 22, 2005 3:24 pm, Christopher J. Bottaro said: And what would make it any different from a normal recursive function? The fact that *ANY* attempt to access a mis-typed property would kick in a __get() call, and that's too frickin' easy to happen in code

Re: [PHP] Free penetration test

2005-05-23 Thread John Nichel
snip Gee, I wonder why this one ended up in my spam folder. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Requiring stuff question

2005-05-23 Thread Robert
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR',

Re: [PHP] searching tables

2005-05-23 Thread Sebastian
I am quite aware of a mysql mailing list. I don't feel like joining another list, anyway, move along,.. I've already solved the problem without your help, but from others on this list. John Nichel wrote: Sebastian wrote: I'd like to know if it is possible to perform a search across

Re: [PHP] Error checking - Fixed

2005-05-23 Thread Michael Satterwhite
But I have no idea how. I made a series of changes trying to figure out what I missed. Most of the changes didn't look like they'd do anything - but the error reporting started working. I then tried changing things back - at least I thought I did. The error checking continued to work. I

[PHP] Re: Requiring stuff question

2005-05-23 Thread Robert
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php');

Re: [PHP] Requiring stuff question

2005-05-23 Thread Marek Kilimajer
Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR .

Re: [PHP] Requiring stuff question

2005-05-23 Thread Robert
On 5/23/05, Marek Kilimajer [EMAIL PROTECTED] wrote: Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/');

Re: [PHP] Problems with multiple arrays

2005-05-23 Thread Brent Baisley
For your result, you want to create the array something like this: $array_data[] = array('id'='1', 'name'='1', 'email'='1'); $array_data[] = array('id'='2', 'name'='2', 'email'='2'); $array_data[] = array('id'='3', 'name'='3', 'email'='3'); ... Each array record will contain three fields. On

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
Sebastian wrote: I am quite aware of a mysql mailing list. I don't feel like joining another list, anyway, move along,.. I've already solved the problem without your help, but from others on this list. So you feel it's a-okay for *you* to post off topic questions because *you* don't feel

Re: [PHP] Search problem

2005-05-23 Thread Kristen G. Thorson
Jim Moseby wrote: Hi, I need to build up a search module for a shop. If I make a basic search (product title for example) it is ok. $query = SELECT product_id FROM products WHERE title LIKE '%$title%'; But i need an advance search for more than one field (title, description, price,

Re: [PHP] Regex nightmares

2005-05-23 Thread John Nichel
W Luke wrote: Hi, I really struggle with regex, and would appreciate some guidance. Basically, I have a whole load of files (HTML) which are updated every few minutes. I need to go through each line, looking for the word CONFIRMED: (which is always in capitals, and always superseded by a

Re: [PHP] Regex nightmares

2005-05-23 Thread Philip Hallstrom
On Mon, 23 May 2005, W Luke wrote: Hi, I really struggle with regex, and would appreciate some guidance. Basically, I have a whole load of files (HTML) which are updated every few minutes. I need to go through each line, looking for the word CONFIRMED: (which is always in capitals, and always

Re: [PHP] Error checking

2005-05-23 Thread Janet Valade
Michael Satterwhite wrote: Philip Hallstrom wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get

[PHP] Learning PHP ... online courses?

2005-05-23 Thread Bill McEachran
I'm just learning PHP. If anyone knows of any affordable quality on-line based PHP courses please pass on the details. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex nightmares

2005-05-23 Thread phpninja
W Luke wrote: Hi, I really struggle with regex, and would appreciate some guidance. Basically, I have a whole load of files (HTML) which are updated every few minutes. I need to go through each line, looking for the word CONFIRMED: (which is always in capitals, and always superseded

[PHP] PHP Programmer Needed in Miami ASAP!

2005-05-23 Thread Joey
You or someone you know maybe interested in the programming position we have available. We have the need for a part time / possibly contract PHP programmer. We are looking for people that can work in our Miami office (even contractors), so please do not try and sell us your services if the

Re: [PHP] Learning PHP ... online courses?

2005-05-23 Thread Esteamedpw
_www.Lynda.com_ (http://www.Lynda.com) has a new Video tutorial... about 9 1/2 hours long. Best one I've found for the price would be _www.VTC.com_ (http://www.VTC.com) which is $30 a month and you can get like 25 total hours of PHP and MySQL... They're good for Beginners - then check

Re: [PHP] Learning PHP ... online courses?

2005-05-23 Thread Chris Shiflett
Bill McEachran wrote: I'm just learning PHP. If anyone knows of any affordable quality on-line based PHP courses please pass on the details. php|architect provides a live, comprehensive online training course for PHP: http://phparch.com/shop_product.php?itemid=89 Disclaimer: I'm one of the

Re: [PHP] Free penetration test

2005-05-23 Thread Chris Shiflett
Andy Pieters wrote: I am looking at where I can get my system tested for penetration. We offer penetration testing at Brain Bulb, but I always try to convince clients to let us perform a security audit instead. Auditing the code allows us to be much more productive and thorough, plus we can

Re: [PHP] Learning PHP ... online courses?

2005-05-23 Thread Esteamedpw
The Manual is great - but most people seem to get the hang of PHP faster if they Watch people in action - then move onto reading the Manual... Chris Shifflett's link (where he's an Instructor) is great too (phparch.com)...