Hey all (sorry I know I'm a leecher, but I soon won't be. This is my first PHP project, but not my last ).
I need help with a little problem I am having. I am using cURL to navigate through some pages to validate a login and download some sources there. What I need to do is search through the tags of these sources to parse data within them. For instance
Code: [Select]<table width="195" border="0" align="left" cellpadding="0" cellspacing="0" class="data_table">
I need to get that element so that I can get the values inside of the table.
The problem lies in the fact that i am using cURL to do this. since it is not in my document, I cannot say
Code: [Select]document.getElementByTagName('table');
or whatever. I need to make document from the source that I get from the cURL. here is my current code -
Code: [Select] //This is all code which reads the file of the website and puts the information in $data
//I am positive it works because when I echo $data, the information loads (in encoded form)
$data = curl_exec ($ch);
echo $data;
$params = $data->getElementsByTagName('data_table');
Apparently I cannot use $data and then get the elements. Does anyone have any ideas?
Weird Problem with curl while sending data
I am facing a weird problem with sending data to a site via curl.If i send the value by thisCode:
convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javascript array. is this possible? I tried with Json_encode but it doesn't seem to work. is there
grouping within a foreach?
hello all,I currently have a list of products spit out from my db via a foreach loop. Right now I am styling these as a <li>I want to style the list so that the annual and the monthly
remove innitial
and
tagsi am using tiny_mce as a text editor for my CMS.buy now the problem is it add <p> tag with dataso while retrieving the data for front end i get an extra space. so there is any why that i
Bar charts using Graphical Framework.
I am using Graphical Frameworks(GFW) to create a chart Graphic . There is no problem with the data displayed on the bar graph .The problem is that Y-axis of the chart resizes in function to the
How to add an image/C++ OpenGL?
Hi,
PHP template help
Ok, I don't know if anyone can help me but I am using PHP templates to make a site. I am a newbie and so I am finding this quite difficult so I thought I would ask some folks much better than me. I
How to insert random unique values in 2 columns ?
I have table with 2 columns
GET vs SUBMIT Button to show sections on one index.php page?
Just curious if one of these ways is better (i.e. more efficient) than the other. I have an index.php page where there is a menu across the top with 5 choices. For example, HOME | MONKEYS | CATS |
Getting Resource id #11 while trying to connect..
So i tried using "DEFINE" for the first time and im using the variables i defined to connect but it reports back this error:QuoteWarning: mysql_query(): 11 is not a valid MySQL-Link resource