Re: [PHP] Arrays?
Nicholas Yim wrote: > Hello William Stokes, > > 1 write a callback function: > [php] > function cmp_forth_value($left,$right){ > return $left[4]<$right?-1:($left[4]==$right[4]?0:1); return $left[4]<$right[4]?-1:($left[4]==$right[4]?0:1); ^^^ add this > } > [/php] > > 2 use the usort function > > usort($test,'cmp_forth_value'); > > Best regards, -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Arrays?
Nicholas Yim wrote: > Hello William Stokes, > > 1 write a callback function: > [php] > function cmp_forth_value($left,$right){ > return $left[4]<$right?-1:($left[4]==$right[4]?0:1); return $left[4]<$right[4]?-1:($left[4]==$right[4]?0:1); ^^^ add this > } > [/php] > > 2 use the usort function > > usort($test,'cmp_forth_value'); > > Best regards, -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: RE: web analytics
Kencana wrote: Hi, can google analytics keep track on the search keywords of the website? I got one search features (connected to my database) in my web page. so i need to keep track on the user search history. google analytics has been an impressive piece of work. it has everything any SEO would need. and great tools... but i have noticed that there is a mark different between what apache reports to you and what google analyltics does... and i am sticking to apache logs. they are more accurate... (i am assuming) -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Class returning more than one value
Paul Scott wrote: On Sat, 2006-10-14 at 11:06 +0100, Deckard wrote: How can i code a class with a function that returns more than one value ? 1. return array(); 2. return stdClass; --Paul another option.. can be avoid, is to use global variables or references...and modify them in the function -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] any PHP script for membership / subscription of articles with paypal integration...?
dear friends had anyone user or tried any PHP based available software for membership / subscription site. I need to build a site for Content Articles. the software should allow full customization of the user interface with articles. the software should also have paypal integration. -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [newbie in session] Is is right behavior???
clive wrote: Mariusz Topczewski wrote: Hi, I just start in using session, but unfortunatly I meet first problem right now :-( On some PC when i load the page, the is no content, and on other PC the page is loaded properly. On computer where the page is blank i have to press F5 (refresh), and the page appear ?. u also try to turn the error_reporting on error_reporting(E_ALL); this will display you all the errors. -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] security question
dear richard, yours was an amazing reply... simple and true and well written... where did u learn all the stuff?... ;-) anyway. is there a step by step process for checking if your site is secure?... i know you would say to get a hacker or something... but as a programmer, i would like to know (some) more info... i use GET instead of POST for most of the forms... even in a shopping cart or admin panel... do u think that is risky? one the biggest threat is sql injections and now xml injections... but can u give some more info... like what commands do i need to use and what part of the website do i need to check?... what is penetration and black box testing for a php website? is there any software for this kind of testing... some part of the process can be automated... like grabbing all the links or urls and purposely bombarding them with sql statements. if i do the same from a professional, what should be a average cost for testing a website for security?... also > Security is not something one can just slap on to the site after one > finishes it -- It has to be a living breathing process that is in > symbiosis with the life-cycle of the project. > that is a beautiful statement... thanks a lot... sumeet Richard Lynch wrote: On Wed, November 22, 2006 11:20 am, Alain Roger wrote: Now that i finished the client side of the web application i would like to improve the security of my administration side of this web application. My web hoster support a shared SSL protocol, however i would like to do more than simply use the SSL... I think the amazing thing is that you just used "simply" and "SSL" in the same sentence... :-) SSL is a VERY safe way to ensure that the data traveling from the browser to the server, and data going back from server to browser, is secure in transit. SSL is pretty much the armored truck ploughing its way through the Internet, shedding bullets like a duck sheds water. Security is not something one can just slap on to the site after one finishes it -- It has to be a living breathing process that is in symbiosis with the life-cycle of the project. -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] security question
Western, Matthew wrote: where did u learn all the stuff?... ;-) Maybe reading the manual? thanks matthew, maybe we should all refer to forum and google, and stop posting in this forum can u please start first... thanks anyway...mani needed some silly sarcastic comments to get past my day. -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] backing up a database
Brad Fuller wrote: $command = "mysqldump -u $dbuser -p$dbpass $dbname | gzip > $backupFile"; system($command); what if system() has been disabled on the server? -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cannot quiet notice error
how can I do to shut up these f** notices? :$ error_reporting( 0 ); -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Database Question
[EMAIL PROTECTED] wrote: So you have two "single table" votes.. make this a third. I'm guessing that each time you collect data, it's going to be one of each piece of data every time. As for efficiency, it's probably more efficient to keep everything in one table and do your statistics by using SQL to filter down by date and use aggregate functions like SUM() and whatever your database's version of AVERAGE and other math functions are. This way, it's handled very quickly and efficiently inside the database engine another suggestion. create several another tables also. that maintains only the daily averages etc... or any other data that u may need to run on to get your stats. running Mysql average, sum command on that single database everytime will be rather cumbersome. it will be faster to run commands once and store in a database. ie. cache -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Poping array which has the matching value
Che Hodgins wrote: Leo, $letters = array('a', 'b', 'c', 'd', 'e', 'f'); $key = array_search('c', $letters); you can also try unset( $letters[$key] ); sumeet $value = array_splice($letters, $key, 1); $value[0] will contain 'c' $letters will contain Array ( [0] => a [1] => b [2] => d [3] => e [4] => f ) regards, Che On 12/21/06, Leo Liu <[EMAIL PROTECTED]> wrote: Hi, I wanted to search through the array and pop out the value which match my search criteria. For example If array has {a,b,c,d,e,f} I wanna search for "c" and once I found it, took it out from the array. So the result of the array after operation will be {a,b,d,e,f} If I do array_pop(); function it will only pop the last element inside the array and the array will become {a,b,c,d,e} Anyway to search the desire element inside the array and took it out from the array? Regards, Leo Reality starts with Dream __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to Separate PHP Errors to a file different than Apache Errors
dear sir, > But Apache php errors generated by scripts served up by Apache as web pages > all show up in error_log. > > I'd like these Apache errors to go into php_errors so I can keep my "Apache: > file not found type errors" and "PHP Syntax" errors separate. when u run a script, apache first accesses the script. if there are no errors, then passes the same to php. if errors are generated, the script is not passed to php.exe but immediately stopped. hence i cannot see a way to access apache errors in php... > > Is this possible? > > Thanks again, > Shanon > -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Clarification: Jump to a record/PHP paging...
T.J. Mahaffey wrote: > > My problem is that when a user performs a search, I need to display the > page on which their search string is found, but still display ALL > records within the paging of the entire database. > I've since discovered the core of what I need to do: > i would suggest u run the query function twice. first time u get the search results and the second time u get all the results. that way you will be able to differentiate the records perfectly -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Counting the occurences of items in an array
Dotan Cohen wrote: Has this wheel been invented, but simpler? I've an array of words that I'd like to know how many occurences of each there are. For instance: $fruits = array( "lemon", "orange", "banana", "apple", "orange", "banana", "orange"); And I'd like to create this: $fruit_count = array( "lemon" => 1, "orange" => 3, "banana" => 2, "apple" => 1); check http://in2.php.net/manual/en/function.array-count-values.php -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] calling a function in the same page
Jahangir wrote: I am trying to call a function from "a href" inside the same page. this is the code: echo "More results from Mysite"; // calling the function isearch function isearch($query) {$query=urlencode($query); $request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja hangir&query=' .urlencode($query). '&output=php&results=100&site=mysite.com; $response=file_get_contents($request); if ($response === false) { die('Request failed');} $phpobj=unserialize($response); $count=$phpobj["ResultSet"]["totalResultsReturned"]; if($phpobj["ResultSet"]["totalResultsAvailable"]==0) {echo "NO RESULTS TO DISPLAY"; } add a 'die;' here.. like { echo "NO RESULTS TO DISPLAY"; die; } -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date question
William Stokes wrote: Hello, I have a datetime column in MySQL DB. How can I match to that column from php code if I only have the date information available. 2006-02-24 12:00:00 against2006-02-24 This might be more SQL question sorry about that. Thanks -Will use date_format("%Y-%m-%d",'date_column') in the sql http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] we are looking for experienced php programmers full time freelance...
Robert Cummings wrote: quote your charges and the time that you will be available. also mention msn or yahoo ids. skype id is more welcome. What about a MUD? I'm usually logged into a mud. It's a great place for telnet wocmud.org 4000 hi robert, thanks for the info... but a MUD? ...for doing business? anyway i used the MUDand remembered the time on the BBS...(Bulletin Board Service) thanks... -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: we are looking for experienced php programmers full time freelance...
Barry wrote: Sumeet schrieb: What the hell is a full time freelance? Why don't you just give aprogrammer the job? I dont' get it. Please enlight me/us :) most freelancers are working and hence not available during office hours... a full time freelance is a person who does not have a regular job but is working mainly on freelance...and is available most of the time. Knowing? Like: Oh pear? Yeah i know it www.php.net/pear lol... maybe you know java too.. www.java.com or maybe oracle too www.oracle.com or maybe mysql too... www.mysql.com ... maybe if you go through a directory...you will know all the people by just saying their name once. quote your charges and the time that you will be available. also mention msn or yahoo ids. skype id is more welcome. Why don't you offer something? i have just offeredsome php freelance work...people will get in touch and thanks for your email -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] we are looking for experienced php programmers full time freelance...
John Nichel wrote: cajbecu wrote: $300 / hr 8 hr minimum per day available 0800 - 0900EST it`s a joke, right? Not at all. Ready to sign the contract? hmm...$300 sorry my budget is only $299 per hour. -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Drop down directory structure list box
Sugrue, Sean wrote: Does anyone know what the best way to list a directory dialog box or directory drop down list in Php? The script I'm writing has a form that asks the user where his files are and I don't want the user to have to remember the whole directory path in order to type it. Sean u can also usethis will open the Explorer dialog box for select files. sumeet shroff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Controling buffer: php/smarty or apache?
robert mena wrote: Hi, I am facing a strange problem. My site, even tough designed to appear quickly at user's browser, appears at "once". If I test the static HTML version it starts to appear as downloaded If I test the php generated version the page seems render as a whole. I am using smarty as a template and it seems to be related to a buffer somewhere: php/smarty or apache. I've used microtime and from the begin of the php script until after the smarty->display it takes from 0.05s (min) to 0.32s (max) Any tips of how can I figure out what is "slowing" down my site? tks yes..use cache and use gzip compress... check http://pear.php.net if u use cache, that page is generated once and the next time is download from the table. php script does take timehence cache always helps. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hiding the index.php page.
Barry wrote: Gregory Machin wrote: Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- not sure...but u can use frames. the main page being within the frame. and the visitor can then browser within the main frame. the top url will remain the same. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't printout class variable
Scott Gunn wrote: This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user); echo "Welcome " . $user->firstName; The print_r command prints out: __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => User [isLoggedIn] => 1 [lastName] => Gunn [firstName] => Scott ) try $user = (User)$_SESSION['user']; rest remains the same. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with getting PHP to see Pear.
Payne wrote: Hi, I just installed SuSE 10 and I am having a problem with my phpnuke site and my maia site. PHPNUKE gives me this error... *Warning*: main(db/mysql.php): failed to open stream: No such file or directory in */srv/www/htdocs/bse/db/db.php* on line *53* *Warning*: main(): Failed opening 'db/mysql.php' for inclusion (include_path='/usr/share/php') in */srv/www/htdocs/bse/db/db.php* on line *53* i think it has to do with the 'include_path' set in php.ini include_path = 'your_path'; -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] need help to update a mysql table from dynamic form
Patrick Aljord wrote: could someone please help me on that one? http://hashphp.org/pastebin?pid=6156 basically this is how I do: I display a mysql table in an html table and I put each value in an input text box. At the bottom I put a submit button to update changes. My question is how do I update everything knowing that I don't know in advance the name of all the input textbox? Here is the code to display the table: English Français Español "; $getdisplaycatname = "select catid,categoryfr,categoryen,categoryes,categoryar from category"; $getdisplaycatnameq = mysql_query($getdisplaycatname); while ($getcatrow = mysql_fetch_array($getdisplaycatnameq)){ //$display_category=mysql_result($getcatnameq, 0); $showcatid=$getcatrow['catid']; $showcat=$getcatrow['categoryfr']; $showcaten=$getcatrow['categoryen']; $showcates=$getcatrow['categoryes']; echo " \" value=\"$showcaten\" size=\"18\"/> \" value=\"$showcat\" size=\"18\"/> \" value=\"$showcates\" size=\"18\"/> "; } echo " "; thanx in advance Pat not sure of exactly u r try to do...but i can suggest the following code. while ($getcatrow = mysql_fetch_array($getdisplaycatnameq)){ /* assuming getcatrow is an array like getcatrow = array( "field1" => "value1", "field2" => "value2"); */ while( list($key,$value) = each($getcatrow) ) { echo " size='18'/>"; } } u can then complete the code -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Reverse Engineering of Smarty
Rory Browne wrote: If you don't have backups, then: 1: Why do you not have backups? 2: Are you insane? hmm. totally uncalled for -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to show 6 randomly selected featured products?
[EMAIL PROTECTED] wrote: Hi, I have to show 6 of up to 1000 (most likely 200-600) featured products on my online store. My first thought was using this query: $query = mysql_query(" SELECT p.prod_id, p.prod_name, p.prod_no, pr.price_id, pr.method, pr.qty, pr.price, pr.sale_price, chp.cat_id FROM products as p LEFT JOIN prices as pr ON pr.prod_id = p.prod_id LEFT JOIN categories_has_products as chp ON chp.prod_id = p.prod_id ORDER BY RAND() LIMIT 6 "); but I needed 4 to 6 secunds to finish downloading the page. Then I tried as a solution to grab all featured products from db, store them as an array in $_SESSION[FEFATURED_PRODUCTS] and then evey time actually just grab randomly 6 products form the array. The home page is now much faster, of course, but I'm not sure how "smart" is keep an array with 1000 elements in $_SESSION? Thanks for any opinion! :) -afan hello afan, it is not "smart" at all.. 1. array takes valuable computer memory. 1000 (arrays) is a lot. 1 char = 1 byte, 40 chars each string. and several fields. 2. sessions actually store the same on file in the session directory. reading of files is slower and requires a lot of computer overheads. the sql is easier to use and much efficient. moreover u must try to use a Profiler. a profiler is a software that gives you more details on all the functions and the time taken and the number of times used. you will be able to determine the frequency of the usage of the function and can improve or developed further the most commonly used functions. Pear's Benckmark Profiler is easy to install and to use...try it. Use session only for dynamic data that CANNOT be stored in a database. like carts, navigation info, or form elements etc. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form without JavaScript
Peter Lauri wrote: > Best mailing list member, > > I have an external payment gateway provider (similar to PayPal) and need to > send POST variables to them to initiate the Payment Process. > > Is there any function in PHP that can send POST variables to a URL without > using and then a javascript that submits it when the page is loaded? You can submit pages to a url without using forms. there are several ways. check Snoopy class from sourceforge.net. but this is not an efficient way, because there are lot of redirection and responses and header informations with the payment gateway. Instead you should create a "confirmation" page. After submitting all the details of the form, php should then process it and create a "confirmation" page which the user has to again click to "confirm" the action. then the variables go to paypal via browser. > > My dream is to have a function (or class) that would be used this way: "dream"...really?.. mine is to own a merc. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] can't output sql query with php code.
Paul Goepfert wrote: This is the full code for the code that doesn't work. \n'; $month_query = mysql_query("SELECT m_id, months FROM Month"); while ($r = mysql_fetch_array($month_query)); { $v = $r["m_id"]; $out = $r["months"]; echo "$out\n"; } echo '\n'; ?> dear sir, overall, i can see no visible error. but u must debug the process. 1. please add print_r($r) within the while loop to see the contents. 2. check the num of rows returned by mysql_query. 3. check it mysql_query is not returning an error. -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form without JavaScript
Peter Lauri wrote: Yes this is a solution, but I want to keep the data sent to PayPal out of the HTML code. If you would use that solution someone can get the username from just checking the source from the page. /Peter i believe in paypal, the username is the email id... why do u want to hide that?... infact people have to mention the email to others or similarly send bank details to clients for bank transfer. even if the visitor gets the username... he cannot login without password. most of all payment gateways make sure that the html code submitted to them are not insecure otherwise it would beat the purpose of ecommerce. i came across this http://www.phpclasses.org/browse/package/2249/download/zip.html -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Window close.
tedd wrote: Hi: This might seem like a odd question, but in php I can leave a script by "exit;" But, how can I also close the html page that contains the script? I know that I can close the page many different ways via a user actions, but how can I close it from within a conditional php statement? Thanks. tedd try echo '<tt>type="text/JavaScript">window.close();'; -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing HTML
Boby wrote: I need to extract news items from several news sites. In order to do that, I need to parse the HTML data. I know how to use Regular Expressions, but I wonder if there are other ways to do that. Can anybody please give me some pointers? i could suggest you to use html parsing libraries available on the net try. http://www.sourceforge.net and http://www.phpclasses.org -- Sumeet Shroff http://www.prateeksha.com Web Design and Ecommerce Development, Mumbai India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php