Re: [PHP] Learning PHP ... online courses?
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)...
Re: [PHP] Free penetration test
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 identify theoretical weaknesses in addition to the practical ones. In addition to being less useful, penetration testing tends to be much more expensive, because it requires more time and effort. The only reason we offer the service is that some companies are uncomfortable sharing their code with anyone, regardless of NDAs and such. You might want to check out the links Christophe mentioned, as these provide free advice, which seems to be more along the lines of what you want. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Learning PHP ... online courses?
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 designers of the program as well as an instructor. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Learning PHP ... online courses?
_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 out books like Advanced PHP for Web Professionals. Hope this helps! - Clint
[PHP] PHP Programmer Needed in Miami ASAP!
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 location is a problem. Our development environment is Linux, apache, PHP, mysql. Knowledge of the smarty template system and Pear:DB are also required. We are looking for a self managed person who is organized and detailed, can follow through a project from start to finish, and comple it within reasonable time limits. Experience developing relational DB's and not just simple lookups of a DB is required, classes, functions and oops are part of the expected knowledge. Please send your resume, links to your work with an explanation of how much of the project you were responsible for and contact information ( phone & email ) to Joey at web56.net. Thanks Joey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex nightmares
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 > colon). The line looks like this: > > 22.5 J.Smith at Thropton, CONFIRMED: more text here, including commas > and info on the appointment etc > > There are other similar appointments that haven't yet been confirmed, > so..I just need to pick out the confirmed ones. Once the regex finds > "CONFIRMED:" I also need it to grab the text up to and including the > date (22.5). I don't really need any text *after* "CONFIRMED:" yet, > but possible in the future. > > There seem to be a lot of tutorials on, eg, getting hrefs from anchor > tags, but I can't get my head around this particular one. Any ideas > or pointers would be great Something like this might also work as well: if ( strstr($line, "CONFIRMED") ) { // do the magic to parse text here. } -phpninja
[PHP] Learning PHP ... online courses?
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] Error checking
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 to report errors for me? You won't see the notice for an undefined variable with this setting. You have notices turned off. You will only see warnings and fatal errors. If you want to see notices, you need to use the following setting: error_reporting = E_ALL Janet -- Janet Valade -- janet.valade.com -- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex nightmares
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 superseded by a colon). The line looks like this: 22.5 J.Smith at Thropton, CONFIRMED: more text here, including commas and info on the appointment etc There are other similar appointments that haven't yet been confirmed, so..I just need to pick out the confirmed ones. Once the regex finds "CONFIRMED:" I also need it to grab the text up to and including the date (22.5). I don't really need any text *after* "CONFIRMED:" yet, but possible in the future. There seem to be a lot of tutorials on, eg, getting hrefs from anchor tags, but I can't get my head around this particular one. Any ideas or pointers would be great Loop through your file, one at a time and match using the following: if ( ereg("^(.*)CONFIRMED:", $line, $ary) ) { $text = $ary[1]; // $text now contains what matched in (.*) above } This will mostly work. Unless "CONFIRMED:" can appear multiple times per line. The other way to do this would be via the shell... grep "CONFIRMED:" *.html | sed 's/CONFIRMED:.*//' would spit out all the matching lines from all your files.. good luck. -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex nightmares
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 colon). The line looks like this: 22.5 J.Smith at Thropton, CONFIRMED: more text here, including commas and info on the appointment etc There are other similar appointments that haven't yet been confirmed, so..I just need to pick out the confirmed ones. Once the regex finds "CONFIRMED:" I also need it to grab the text up to and including the date (22.5). I don't really need any text *after* "CONFIRMED:" yet, but possible in the future. There seem to be a lot of tutorials on, eg, getting hrefs from anchor tags, but I can't get my head around this particular one. Any ideas or pointers would be great preg_match ( "/\d{1,2}\.\d{1,2}(.*)CONFIRMED:/", $text, $result ); Any matches will be in the array $result starting at $result[1]. -- 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
Re: [PHP] Search problem
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, weight) The problem is that i don't know which field is filled in by the user (title, description, price or weight) I mean, the user can fill in all fields, or only price field, or title and weight etc How can i do the search? Thanks $query = "SELECT product_id FROM products WHERE title LIKE '%$title%' and description LIKE '%$description%' and price like '%$price%' and weight like '%weight%'"; JM While this query would work, using a fulltext index would give you a much more powerful search. Check to see if your database offers some sort of text indexing (it probably does!) Suppose you have a product title like "The Lion, the Witch, and the Wardrobe". If your user did a search on "lion witch wardrobe", you'd want my example to show up. Just comparing these fields with a LIKE will not give you my result, unless you explode the search string and create several LIKE statements based the individual terms, but then you have to do three LIKE comparisons, which will probably be slower than a full text index. If you are able to use a full text index, then you can write queries like this: $sql = 'SELECT * FROM products WHERE MATCH ( product_title ) AGAINST ( "' .$_REQUEST['product_title']. '" ) AND MATCH ( product_description ) AGAINST ( "' .$_REQUEST['product_description']. '" )'; which would give you "The Lion, the Witch, and the Wardrobe" if search terms were "lion witch wardrobe". kgt
Re: [PHP] searching tables
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 like joining another mailing list? Nice. Maybe we should join all the lists into one, then no one ever has to belong to multiple lists. -- 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
Re: [PHP] Problems with multiple arrays
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 May 23, 2005, at 9:48 AM, <[EMAIL PROTECTED]> wrote: 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 ($full_data as $key => $value) { echo "$value"; } and the result must be: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 Any help would be appreciated !!! -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Requiring stuff question
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/'); > > require(PAGER_DIR . 'Pager.php'); > > require(PAGER_DIR . 'Pager_Wrapper.php'); > > > > // Define the DB package > > define('PEAR_DB', 'DB/'); > > require(PEAR_DB . 'DB.php'); > > > > The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am > > new to PHP I may be just misunderstanding how to do it. > > PEAR requires that its path is in include_path. Use: > > ini_set('include_path', '/where/is/your/PEAR/:' . ini_get('include_path')); > Ah! Thanks! Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Requiring stuff question
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 . 'Pager_Wrapper.php'); // Define the DB package define('PEAR_DB', 'DB/'); require(PEAR_DB . 'DB.php'); The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am new to PHP I may be just misunderstanding how to do it. PEAR requires that its path is in include_path. Use: ini_set('include_path', '/where/is/your/PEAR/:' . ini_get('include_path')); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Requiring stuff question
>"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'); >require(PAGER_DIR . 'Pager_Wrapper.php'); > >// Define the DB package >define('PEAR_DB', 'DB/'); >require(PEAR_DB . 'DB.php'); > >The Smarty stuff works no problem. The DB and Pager stuff do not. Since >I am >new to PHP I may be just misunderstanding how to do it. >[/snip] > >What is the whole exact path to the DB and Pager stuff? [root] C:\Documents and Settings\me\My Documents\websites\DEV\smarty # this is where my config.inc.php file is [DB] C:\Documents and Settings\me\My Documents\websites\DEV\smarty\DB [Pager] C:\Documents and Settings\me\My Documents\websites\DEV\smarty\Pager Is that what you wanted? Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking - Fixed
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 *HATE* it when I have a problem I can't put my finger on. The important thing is that it is working, though. I want to thank those who helped me out. ---Michael 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 me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] searching tables
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 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 (topic,newstext) AGAINST ('$queryword') AS score FROM news would i have to run a second query to display results from the 'faqs' table? http://lists.mysql.com http://dev.mysql.com/doc/mysql/en/index.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Requiring stuff question
"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', 'Pager/'); >> require(PAGER_DIR . 'Pager.php'); >> require(PAGER_DIR . 'Pager_Wrapper.php'); >> >> // Define the DB package >> define('PEAR_DB', 'DB/'); >> require(PEAR_DB . 'DB.php'); >> >> The Smarty stuff works no problem. The DB and Pager stuff do not. Since I >> am new to PHP I may be just misunderstanding how to do it. > > What's the error you're getting? > There is no error in the Apache2 log file... Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Free penetration test
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: Re: Re: __get() not reentrant?
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 that's too > easy to fly by QA in large-scale applications springs to mind... > > Not saying you're "wrong" or they're "right" just that it's not quite as > simple as a normal recursive function or loop iteration. I completely disagree. I don't mean any offense to anyone here, but I find it kind of ridiculous for a language to restrict itself that like in this case. Its insulting to our intelligence as programmers. >> Every recursive function runs the risk of going into infinite loop if the >> programmer doesn't understand the basic concept (or makes a silly >> mistake). > > Just saying it's an easier silly mistake to mis-type: $whatever->fooo > instead of $whatever->foo and have that escape QA somehow. > >> Loops run the risk of going on indefinitely as well. Maybe PHP should >> disable all forms of loops/recursion to protect the programmers from >> themselves. > > That does seem a bit excessive... I was making a point. I don't see why recursion is allowed in every other function except for __get(). I think your argument is weak about protecting people from typos. If PHP wanted to protect people from typos, it should force you to declare your variables. > Maybe __get() should allow recursion and let the developer worry about > infinite recursion. > > But, today, it doesn't, so deal with it and move on. I was bringing the to the table a discussion of the current behavior of __get(). I proposed that I might be broken or maybe should be changed, and you start insulting my abilities as a programmer and suggest that we shouldn't consider "moving forward" and just deal with what we have? >> What is wrong with that? Why should PHP disallow that recursive __get() >> call? It is perfectly valid recursive code. It terminates for all >> cases. > > What happens if you do: > > class example { > function __get($x){ > return $this->recursive_get($x); > } > > function recursive_get($x){ > /* paste your current __get function body here */ > } > } > > I suspect it will work just fine at the expense of one (1) extra function > call, which is not significant in recursion. I suspect it doesn't. If __get() is anywhere in the call stack, then $this->x won't invoke a 2nd __get() call. > A recursive __get() has some serious implications to performance and > design decisions that painted you into this corner. Well, it doesn't have any implication on the performance of my app, considering the code path is executed like 5% (or less) of the time. Painted myself into this corner? Why? Because I think its easier to write $this->myvar than it is to write $this->attrs['myvar']? Its PHP's job to make my life easier and more convenient. > Obviously, it's entirely possible that your Design is the most elegant > beautiful disciplined bit of code since John von Nueman... But it's more > likely, without knowing anything about you, that you've come up with this > as a result of some bad Design decisions. > > Review your Design. :-) > Wow, how pompous of you. Bad design, huh? Since when is it bad design to calculate attribute values on the fly? Many "cookbook" style books have idioms for doing this. In my case, one of the calculated values depends on other values accessible via __get(). So why shouldn't I use __get()? The syntax is cleaner. Btw, when I say "use __get()", I mean implicitly call __get() via $this->attribute syntax. This whole problem does not exist if you call __get() explicitly, but then whats the point. Speaking of "good design", Python's __getattr__() behaves how I expect. -- C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking
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? take a read through here... http://us2.php.net/errorfunc I just read it again (I'd read it before I posted the first message), and I don't see *ANYTHING* I'm missing. Obviously, I am missing something, but I don't see it. The significant parameters seem to be error_reporting and display_errors My php.ini has error_reporting = E_ALL & ~E_NOTICE display_errors = On (I've also tried display_errors = 1) A documentation reference is always appreciated (at least by me), and I thank you for suggesting I read it again. This time, however, I seem to be too dense to see it. Thanks again ---Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image Verification - Problems in Safari, Mac OS X
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: > > > > as you can see above, its an over simplified version, but you can tune it as > you go along...works > everytime for me. Calling my image and then assigning a random string as a query string didn't really help.. I don't know if I did it correctly or misunderstood the logic you were implying. What I did made my image look like verify.png?839838ksh8 ... But that didn't really make IE display the fresh image.. It still displayed the old image from cache, only the Query string was a unique random string each time. However, your theory gave me another idea which works for now! Instead of defining the image name as verify.png.. I have defined the image name to be the random string. Each time the page opens.. A new image is created with a new image name... Thus IE cannot display the old image from it's cache because the image name's differ. The con of this method is that every time someone accesses this page, a new image will be created and stored in the folder, taking up byte space. I'll definitely run up a script to erase images a day old though. For now this works.. I don't know if it's the best way to do this, but considering nothing regarding the Cache was working, I don't mind doing this for now, at least the application is working. If I had misunderstood your method and you think your method is better then what I'm using now, I'd still really appreciate if you can clarify and explain. Thanks again, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking
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 report errors for me? display_errors = On Thanks for the reply. My config file does have display_errors = On I should have put that in my first email. I would have felt *VERY* stupid if I'd forgotten that one - and I do sometimes have enought brain freeze to forget things like this. Unfortunately, it's already set. Thanks again. ---Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Regex nightmares
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 looks like this: 22.5 J.Smith at Thropton, CONFIRMED: more text here, including commas and info on the appointment etc There are other similar appointments that haven't yet been confirmed, so..I just need to pick out the confirmed ones. Once the regex finds "CONFIRMED:" I also need it to grab the text up to and including the date (22.5). I don't really need any text *after* "CONFIRMED:" yet, but possible in the future. There seem to be a lot of tutorials on, eg, getting hrefs from anchor tags, but I can't get my head around this particular one. Any ideas or pointers would be great Cheers Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] searching tables
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 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking
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 me? display_errors = On -- 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
RE: [PHP] Search problem
> 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 problem is that i don't know which field is filled in by > the user (title, description, price or weight) > I mean, the user can fill in all fields, or only price field, > or title and weight etc > > How can i do the search? > > Thanks $query = "SELECT product_id FROM products WHERE title LIKE '%$title%' and description LIKE '%$description%' and price like '%$price%' and weight like '%weight%'"; JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error checking
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 here... http://us2.php.net/errorfunc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems with multiple arrays
Sorry, sent the wrong code. $value) { echo $full_data[0][$key], ' - ', $full_data[1][$key], ' - ', $full_data[2][$key], ' '; } ?> Result: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 This message has been delivered to the Internet by the Revenue Internet e-mail service * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems with multiple arrays
Try this: $value) { echo $full_data[0][$key], ' - ', $full_data[1][$key], ' - ', $full_data[2][$key], ' '; } ?> Result: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 I am sure someone that has been doing php for more than 2 weeks can better that code. I am still a learner in php "magic functions". ;) C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 14:48 To: php-general@lists.php.net Subject: [PHP] Problems with multiple arrays 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 ($full_data as $key => $value) { echo "$value"; } and the result must be: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 Any help would be appreciated !!! This message has been delivered to the Internet by the Revenue Internet e-mail service * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Requiring stuff question
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 . 'Pager_Wrapper.php'); // Define the DB package define('PEAR_DB', 'DB/'); require(PEAR_DB . 'DB.php'); The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am new to PHP I may be just misunderstanding how to do it. indeed you are - your require statements are ok but some of the files (with relative paths) are not found because your include_path does not include the base directory where your PEAR classes are found (I guess that the DB and Pager classes are PEAR things :-) either make sure include_path is set correctly, this can be done in the php.ini, in a .htacess file (Apache specific) or by using: // you have to decide what the value of $incPath should be! ini_set('include_path', $incPath); or you can change the define() statements in your config file so that they define the full path to the directories in question rather than a relative path e.g: define('PAGER_DIR', 'C:/Path/To/PEAR/Base/Dir/Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR . 'Pager_Wrapper.php'); I recommend reading up on include_path: http://nl2.php.net/manual-lookup.php?pattern=INCLUDE_PATH&lang=en http://nl2.php.net/manual/en/ini.core.php#ini.include-path have fun. I am using Apache/PHP on Windows. Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Requiring stuff question
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 . 'Pager_Wrapper.php'); // Define the DB package define('PEAR_DB', 'DB/'); require(PEAR_DB . 'DB.php'); The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am new to PHP I may be just misunderstanding how to do it. What's the error you're getting? -- 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
RE: [PHP] Requiring stuff question
[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 define('PEAR_DB', 'DB/'); require(PEAR_DB . 'DB.php'); The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am new to PHP I may be just misunderstanding how to do it. [/snip] What is the whole exact path to the DB and Pager stuff? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error checking
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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Free penetration test
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 so if someone gets in, create a page with > the cms as proof. You'll get only a few basic checks if you give only that URL. Ex: check if special input dont lead to usefull display of errors, or if .htaccess can't be simply retreived, etc To get a better sense of security, it's best to show the code (or at least the relevant parts) : Security through obscurity isnt the best idea, as you probably know. Of course, if you can't provide the code for various reasons, you can audit the code yourself, after reading some documentation about (PHP) security. Some links below can help you. Christophe PHP Manual -- IV. Security http://www.php.net/manual/en/security.php PHP Security Guide http://phpsec.org/projects/guide/ PHPSec Library http://phpsec.org/library/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] searching tables
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: SELECT *, MATCH (topic,newstext) AGAINST ('$queryword') AS score FROM news would i have to run a second query to display results from the 'faqs' table? http://lists.mysql.com http://dev.mysql.com/doc/mysql/en/index.html -- 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
Re: [PHP] searching tables
> 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
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I prevent Server variables from being spoofed ?
> > 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 from, what > > browser they use, or what language they speak. WellI dont really bother with the above, but I do get pissed when the jehovah witness' people come over, I promise youthe next one that comes over, Jehovah is gonna witness his/her butt being kicked! :-D Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 5/22/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can I prevent Server variables from being spoofed ?
> -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 generate the file in a new window and check that a session var has been set earlier... I´m doin that on a site with (legal) mp3s -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with multiple arrays
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 ($full_data as $key => $value) { echo "$value"; } and the result must be: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 Any help would be appreciated !!!
[PHP] Requiring stuff question
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'); // Define the DB package define('PEAR_DB', 'DB/'); require(PEAR_DB . 'DB.php'); The Smarty stuff works no problem. The DB and Pager stuff do not. Since I am new to PHP I may be just misunderstanding how to do it. I am using Apache/PHP on Windows. Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] searching tables
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 (topic,newstext) AGAINST ('$queryword') AS score FROM news would i have to run a second query to display results from the 'faqs' table? thanks for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Php with mysql
[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 '" . $_POST['user_id'] . "' "; Your variables may not be parsed due to the single quotes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] financial application form
[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 form as there are 8 pages (around a hundred fields) to this form and I don't fancy modifying all of the vars and fields to do this. If anyone knows how or can point me in the right direction, id be most thankful. [/snip] There could be several ways to do this. One would be to set a variable to the value 'joint_' (or some other value) and append that to the variables of the second form once the first form is complete $2nd_form_var_prefix = 'joint_'; if(complete == $all_first_form_vars){ $2nd_form_vars = $2nd_form_prefix . $1st_form_var_name; } Something like that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I prevent Server variables from being spoofed ?
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 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 from, what browser they use, or what language they speak. Just because someone is using a browser doesn't mean they can't play QuickTime movies. In fact, It is something that has been bothering me endlessly. I am usually forced to hack around the site to find the url of the movie, then do a wget on that url and xine the resulting file. All that for a lousy 30 sec movie! Can you at least think of only one valid reason to do the stuff you ask to do? I don't think so. good point in essence but the 'access your house' analogy is a little lame denying/allowing access to my house is my perogative... legally I am entitled to apply a racist/prejudiced door policy on my own frontdoor - however abhorent such an idea might be to the most of us. and the same goes for a site I create - I'm entitled to grant/deny access to whomever I please, in the real world this most often translates into constraints that are placed on intranet/extranet systems whereby your userbase is known/controlled and certain functionality may require a decent browser (as opposed to the POS that is IE ;-) ... and sometimes its is completely valid and correct to deny access. having said that if you want to attract customers/users to your content then forcing them to use specific applications/tools to do something which could be handled by any number of different tools (on different OSes) is plain stupid... oh and if anyone here works at a bank, maybe not forcing users to use IE when visiting your site would make you look less like monopolistic idiots (why is it that the organisations with the most freaking money are the least capable of providing a _proper_ site...?) Welcome to Monday ;-) rgds, Jochem Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: __get() not reentrant?
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 in large-scale applications springs to mind... Not saying you're "wrong" or they're "right" just that it's not quite as simple as a normal recursive function or loop iteration. > Every recursive function runs the risk of going into infinite loop if the > programmer doesn't understand the basic concept (or makes a silly > mistake). Just saying it's an easier silly mistake to mis-type: $whatever->fooo instead of $whatever->foo and have that escape QA somehow. > Loops run the risk of going on indefinitely as well. Maybe PHP should > disable all forms of loops/recursion to protect the programmers from > themselves. That does seem a bit excessive... Maybe __get() should allow recursion and let the developer worry about infinite recursion. But, today, it doesn't, so deal with it and move on. > What is wrong with that? Why should PHP disallow that recursive __get() > call? It is perfectly valid recursive code. It terminates for all cases. What happens if you do: class example { function __get($x){ return $this->recursive_get($x); } function recursive_get($x){ /* paste your current __get function body here */ } } I suspect it will work just fine at the expense of one (1) extra function call, which is not significant in recursion. A recursive __get() has some serious implications to performance and design decisions that painted you into this corner. Obviously, it's entirely possible that your Design is the most elegant beautiful disciplined bit of code since John von Nueman... But it's more likely, without knowing anything about you, that you've come up with this as a result of some bad Design decisions. Review your Design. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session handling
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 is blank, nothing in it. the later is > used by the session. So all the thing I registered for the session can not > be accessed later. need help Errr. It works for a few million people. Could you show us the first 5 lines of code that you are using that mention sessions? It should start with: If it doesn't start with that, there is your first problem. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php encoders
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can you have pragmas/literals in PHP?
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 http://php.net/include http://php.net/define http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc If you posted more about what you were doing, we could even tell you which one of those is most suitable, or if you would truly be better off writing in some other language. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I prevent Server variables from being spoofed ?
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 some of my largest hits these days are from image theft by bloggers using commercial blog-ware/blog-sites. * livejournal was the most egregious offender, if you care. You'd think the blog-site owners would force them to upload their own images, instead of stealing my bandwidth but I guess not. :-( I wouldn't mind at all it if they provided a link back or even just named our music venue in the text somewhere, and the bandwidth is no big deal any more, but it irks me. I must not care that much, cuz I haven't hacked the images to be... something interesting... when they are being "stolen"... Yet. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: Re: [PHP] Can you have pragmas/literals in PHP?]
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 you give us an example? 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. you could tackle this in 2 ways: 1. use eval() to evaluate a string containing php code - define the strings in 1 place. 2. use include()/require() to include a file that contains the relevant code whenever you need it. I would use 2. unless you have a technical reason that dictates you must use 1. eval() is comparitively slow and also has the potential to open up big security holes in your application (if you want to know why then the http://phpsec.org site is probably a good place to start reading about security and stuff). oh and there is also the create_function() function which can be very handy in some circumstances. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I prevent Server variables from being spoofed ?
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 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 from, what browser they use, or what language they speak. Just because someone is using a browser doesn't mean they can't play QuickTime movies. In fact, It is something that has been bothering me endlessly. I am usually forced to hack around the site to find the url of the movie, then do a wget on that url and xine the resulting file. All that for a lousy 30 sec movie! Can you at least think of only one valid reason to do the stuff you ask to do? I don't think so. Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+) e>$@ h++(*) r-->++ y--()> -- ---END GEEK CODE BLOCK-- -- Check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ -- -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Php with mysql
(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 given in a previous reply to you) is SELECT `User_name` , (replaces AND) `User_pass` FROM `user` WHERE `User_name` = '$_POST['user_id']' AND (PASSWORD= ADDED HERE) PASSWORD='$_POST['user_id']' -Original Message- From: Rittwick Banerjee [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 09:01 To: php-general@lists.php.net Subject: [PHP] Php with mysql 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 another code , by the way I am using Fedora 2(PCQ Linux 2004) Thank you.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, Cisco, Sun Microsystems, 3Com GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 2000' REGISTERED COMPANY ** CONFIDENTIALITY NOTICE: This Email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. GENERAL STATEMENT: Any statements made, or intentions expressed in this communication may not necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no content herein may be held binding upon Gamma Global (UK) Ltd or any associated company unless confirmed by the issuance of a formal contractual document or Purchase Order, subject to our Terms and Conditions available from http://www.gammaglobal.com E&OE ** ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, Cisco, Sun Microsystems, 3Com GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 2000' REGISTERED COMPANY ** CONFIDENTIALITY NOTICE: This Email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. GENERAL STATEMENT: Any statements made, or intentions expressed in this communication may not necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no content herein may be held binding upon Gamma Global (UK) Ltd or any associated company unless confirmed by the issuance of a formal contractual document or Purchase Order, subject to our Terms and Conditions available from http://www.gammaglobal.com E&OE ** ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Free penetration test
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. Kind regards Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+) e>$@ h++(*) r-->++ y--()> -- ---END GEEK CODE BLOCK-- -- Check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ -- -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Php with mysql
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 `User_name` , (replaces AND) `User_pass` FROM `user` WHERE `User_name` = '$_POST['user_id']' AND '$_POST['user_id']' -Original Message- From: Rittwick Banerjee [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 09:01 To: php-general@lists.php.net Subject: [PHP] Php with mysql 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 another code , by the way I am using Fedora 2(PCQ Linux 2004) Thank you.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, Cisco, Sun Microsystems, 3Com GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 2000' REGISTERED COMPANY ** CONFIDENTIALITY NOTICE: This Email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. GENERAL STATEMENT: Any statements made, or intentions expressed in this communication may not necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no content herein may be held binding upon Gamma Global (UK) Ltd or any associated company unless confirmed by the issuance of a formal contractual document or Purchase Order, subject to our Terms and Conditions available from http://www.gammaglobal.com E&OE ** ** -- 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?
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 ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?" http://www.rayninfo.co.uk/tips/ vim, zsh & success tips -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php encoders
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] Php with mysql
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 another code , by the way I am using Fedora 2(PCQ Linux 2004) Thank you.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session handling
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 is used by the session. So all the thing I registered for the session can not be accessed later. need help please help me in this situation. with regards Eswaramoorthy [EMAIL PROTECTED]