Does anybody know any good simple youtube search scripts in php that I could use right off the bat? I don't want to use the Zend Framework (not installed), just the basic REST calls.
Thanks
Hello,
I would like to integrate the jQuery fullcalendar into my PHP website, but I don't know how to handle the event and how to use the JSON data from MySQL.
Any advice would be appreciated.
Hi dear stackers :P
Thanks to this forum, I learnt PHP header function does not actually send header to Apache server but only to the client.
What I wanna do is to generate an error 500, and let Apache displays its corresponding page. Is there a way to force it ?
Thanks in advance !
(and allez les bleus !)
hi all, basically, what i want to know is, for the second parameter in the create_function function, is there anyway to pass a string without a semicolon? or will it not work.
example:
taken from php.net
create_function('$a,$b', 'return "CRCs: " . crc32($a) . " , ".crc32(b);'),
notice that there is a semicolon in the string. is there any possible way someone can enter a function without a semicolon that will still run/evaluate?
Is it possible to "peek ahead" while iterating an array in PHP 5.2? For example, I often use foreach to manipulate data from an array:
foreach($array as $object) {
// do something
}
But I often need to peek at the next element while going through the array. I know I could use a for loop and reference the next item by it's index ($array[$i+1]), but it wouldn't work for associative arrays. Is there any elegant solution for my problem, perhaps involving SPL?
I need to remove the '&' character from each property of a php object
I tried the code below but it's not working...what am I missing?
thanks dudes
foreach($query_item as $key => $value)
{
$key = str_replace(' & ',' & ',$value);
}
i went o http://www.dhl.com.vn/publish/vn/en/eshipping/track.high.html
and saw the form submit
and i want to take it on my site ,
How can i do it with php on my site
Hello,
I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file.
Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11"
Is there a way I can force the jquery UI slider to wait for the value to be present or to work in synchrone mode ?
Thanks in advance.
I'm trying to build a PHP preg replace string when processing poorly written xml, such that if I am given:
$x='<abc x="y"><def x="g">more test</def x="g"><blah>test data</blah></abc x="y">';
That it checks if there's a space within a closing tag and deletes everything from the space to the end of the tag such that.
becomes
<abc x="y"><def x="g">more test</def><blah>test data</blah></abc>
thanks
And from the client side, which request type (GET or POST) is better to use, to send JSON data if I use XmlHTTPRequest?
My application use this stream of data for either retrive data form database and execute some functionality in PHP.
Ok. I am just starting to use soap and my first problem is installing it. I got this error:
Fatal error: Class 'SoapClient' not found in /home/user/mysite.com/path/to/file.php on line 16
I am hosting my site in DreamHost and ask the guys there. But they told me that they don't support any third-party installation.
Does anyone has the same problem and manage to solved it?
Thansk!
I need to parse some HTML files, however, they are not well-formed and PHP prints out warnings to. I want to avoid such debugging/warning behavior programatically. Please advise. Thank you!
Code:
// create a DOM document and load the HTML data
$xmlDoc = new DomDocument;
// this dumps out the warnings
$xmlDoc->loadHTML($fetchResult);
I've been using CodeIgniter for some quite time, and I've been extremely happy with its Active Record stuff. It's great to query the database with it.
Recently I've started a new project and I can't use such a framework anymore.
Is there a simple PHP Active Record library that does its job and gets out of the way (similar to CodeIgniter's version)?
hi all,
There is a problem in this code I can not detected
<?php echo "<a href ='$rows['Link']'> .$rows['UploadName']</a> "; ?>
Do you find you have a solution???
Thank you very much.
The url: http://www.teamliquid.net/replay/download.php?replay=1830 is a download link to a .rep file.
My question is: how to download this content in java knowing the name of the original rep file in order to save it with a defined prefix, like path/_.rep
//I was trying to run wget from java but I don't see how to get the original file's name.
Hi,
I would like to ask if I have a table of events on my database, e.g.
description | startdt | enddt
event1 | 2010-04-01 10:00:00 | 2010-04-01 13:00:00
event2 | 2010-04-09 14:00:00 | 2010-04-09 18:00:00
event3 | 2010-04-30 11:00:00 | 2010-05-02 16:00:00
I have already created a php calendar, how can I display these above events onto my calendar, so that it will look something like the google calendar? e.g. on the for 2010-04-01, it will display "event1" on the month calendar.
Thank you.
How I can create a crystal report in php kindly guide me so that I can make it possible. I have tried a lot of code and tutorials but un-usefull for me.
i got an iframe in an echo:
<iframe width='100%' height='100'>$content</iframe>
$content = eval ( "\$bugs = \"" . gettemplate ('bugs') . "\";" );
but it doesnt work.
how can i use the eval function from php to show the page in an iframe?
thnx!
Hi guys, I am trying to take a variable sent from flash, and save it to a spot on my web server using PHP, I have NO idea how to do this, and I can't seem to find code that works anywhere on the web, any help would be greatly appreciated, thanx!
How to grab all variables in a post (PHP)?
I don't want to deal with $_POST['var1']; $_POST['var2']; $_POST['var3']; ...
I want to echo all of them in one shot.