hi,
I want to extract particular part of HTML using tidy in php.
the html page has table in it and i just want to fetch that table from html page.
please help and post the solution....
Thanks
Hey guys,
How can I, in PHP, get a summary of any URL? By summary, I mean something similar to the URL descriptions in Google web search results.
Is this possible? Is there already some kind of tool I can plug in to so I don't have to generate my own summaries?
I don't want to use metadata descriptions if possible.
-Dylan
Trying to wrap my head around the new PayPal Adaptive Payments API - specifically the ConvertCurrency functionality. Has anyone had any luck with this in PHP?
Documentation: https://www.x.com/docs/DOC-1400
Just a quick question: is the following PHP code secure? Also is there anything you think I could or should add?
$post = $_GET['post'];
if(is_numeric($post))
{
$post = mysql_real_escape_string($post);
}
else
{
die("NAUGHTY NAUGHTY");
}
mysql_select_db("****", $*****);
$content = mysql_query("SELECT * FROM tbl_***** WHERE Id='" . $post . "'");
Hello,
I am trying to send something to serial port (r232) with PHP.
I am using this class: http://www.phpclasses.org/browse/package/3679.html
The problem is that I am allowed to send only 1 byte.
But if I send something like "1", I am actually sending 49 (ASCII for 1).
Instead of send("1"), I tried with send(1) but it is no good, because this is integer which has 2 bytes.
So is there a way to send a "real" char, not ASCII equivalent?
Whats the best way to send data to the server and have it run through a php script. Bearing in mind I do not want to have the user redirected to a different page and no response needs to be sent back from the server.
I'm new to PHP and i was trying to learn mod rewrite to rewrite my URLs i use godaddy as my hosting company and they say to add the desired code to the body of your .htaccess file how do I mod rewrite my URLs and add it to my .htaccess file?
Can some one give me an example of how to do this as well as point me to a good tutorial and or book on how to mod rewrite my URLs?
(don't know if this better belongs to SU/SF, feel free to move if so)
Hi, I've got a directory with 1000+ subfolders full with hi-res images. I'm looking for php software that would allow me to explore it server-side: browse folders - preview images - download hi-res. NB: support for print formats (tiff, eps) is a must!
Hi everybody!
Can you please help me for this problem:
It shows me this error in WAMP:
Notice: Undefined index: searchstring in C:\wamp\www\Reece Calendar 0.9\includes\search.php on line 180
AND THE LINE IS:
<input type=\"text\" name=\"searchstring\" size='70' value='".htmlspecialchars($_POST['searchstring'])."'/>
How can I modify it?Please help me!Thnx in advance=)
I have a PHP redirect page to track clicks on links. Basically it does:
- get url from $_GET
- connect to database
- create row for url, or update with 1 hit if it exists
- redirect browser to url using Location: header
I was wondering if it's possible to send the redirect to the client first, so it can get on with it's job, and then log the click. Would simply switching things around work?
in server ,
i have some.php , when i try to read the content using file_get_content and fread both these not reading my content..
if i try some other url like yahoo.com , these function reading content , any idea, WHY this prob
I coudn't find the solution for Php deployment to remote server using FTP from SVN after each commit.
How can I upload to server by FTP the only added or edited files and delete the deleted files from SVN
I think about write post-commit script...
I have a local network in the company with a mail server, how can i make php application built locally on the server to send and email to a local email address?
thanks in advance
Hi!
Is there a straightforward way of determining the number of decimal places in a(n) integer/double value in PHP? (that is, without using explode)
Thanks,
Erwin
Say i have an xml file of this nature
some data
I wan to replace attributes of each later using one function in php:
example say:
replaceAttribute("collections","somecollection,"newcollection");
Hi, I'm looking for an alternave to the parse_ini_file() function in php. I want a simple way to store config settings, but want the flexibility to store unlimited levels of multiple arrays, special characters, etc. Any ideas?
Here are the objects:
courses
{ "name" : "Biology", "_id" : ObjectId("4b0552b0f0da7d1eb6f126a1") }
students
{
"name" : "Joe",
"classes" : [
{
"$ref" : "courses",
"$id" : ObjectId("4b0552b0f0da7d1eb6f126a1")
}
],
"_id" : ObjectId("4b0552e4f0da7d1eb6f126a2")
}
Using the PHP Mongo Class, how do I get all the students that has a biology course?
Thanks
I have a build a web portal based on the Cricket concept,
I have build a Custom based CMS where I can upload the News for the site
Once I upload the news, the URL Will be like this
http://cricandcric.com/news/news.php?id=841&An-emotional-moment:-Dhoni.html
But I am trying to have the above Url as follows (some thing like this)
http://cricandcric.com/news/An-emotional-moment:-Dhoni.html
Or similar to Stackoverflow.com,
Can any one please help me how can i build that?
Do I need to rewrite the URL ?
The FILTER_VALIDATE_URL filter seems to have some trouble validating non-ASCII URLs:
var_dump(filter_var('http://pt.wikipedia.org/wiki/', FILTER_VALIDATE_URL)); // http://pt.wikipedia.org/wiki/
var_dump(filter_var('http://pt.wikipedia.org/wiki/Guimarães', FILTER_VALIDATE_URL)); // false
Why isn't the last URL correctly validated? And what are the possible workarounds? Running PHP 5.3.0.
I'd also like to know where I can find the source code of the FILTER_VALIDATE_URL validation filter.
I'm starting to get sick of PHP and search for a web-development language with future.
What to learn next?
Can I rely on the availability of Ruby (on Rails) on my client's hosters?
Could Django be a better choice?
Hi, can someone please tell me where to find the example codes used in this book:
Sitepoint The Php Anthology 2nd
edition
? Ive been looking for this since yesterday. Thanks for answering.
I have a MD5 hash: 10f86782177490f2ac970b8dc4c51014
http://www.fileformat.info/tool/hash.htm?text=10f86782177490f2ac970b8dc4c51014
Result: c74e16d9
but PHP: crc32('10f86782177490f2ac970b8dc4c51014');
Result: -951183655
I don't understand!
Hi.
I need HTML SAX (not DOM!) parser for PHP able to process even invalid HTML code.
The reason i need it is to filter user entered HTML (remove all attributes and tags
except allowed ones) and truncate HTML content to specified length.
Any ideas?