Apache lets you set php.ini values for virtual hosts with the php_value directive.
Does nginx have something similar? Is there another way to set the include_path on a per-site basis?
Hey, I'm using php 5 and need to communicate with another server that runs completely in unicode. I need to convert every string to unicode before sending it over. This seems like an easy task, but I haven't been able to find a way to do it yet. Is there a simple function that returns a unicode string? i.e. convert_to_unicode("the string i'm sending")
Hi, I wanted to ask:
when I am using php.net/bzopen, does I need to bzwrite() already compressed by bzcompress() string or it being compressed automatically while writing?
I have an online gateway which requires an HTML form to be submitted with hidden fields. I need to do this via a PHP script without any HTML forms (I have the data for the hidden fields in a DB)
To do this sending data via GET:
header('Location: http://www.provider.com/process.jsp?id=12345&name=John');
And to do this sending data via POST?
Hi ALL~
I'm getting this error while I was implementing and testing PHP webservice using Zend Soap.
I'm testing the same codes under 2 different protocols(http & https) in 2 different web servers.
http site works just fine, but I get "SoapFault exception: [VersionMismatch]..." error in https.
The two web servers almost have the same specs.
Is there anyone who can help me with this?
I have a set of points (stored as lat/lon) for a polygon, I want to compute the lat/lon center point of the polygon inPHP.
Basically to do the same thing as the getCenter() function in Google Maps LatLngBounds.
Any ideas on how I can achieve this?
Hey guys,
How do I go about setting a string as a literal variable in PHP? Basically I have an array like
$data['setting'] = "thevalue";
and I want to convert that 'setting' to $setting so that $setting becomes "thevalue".
Thanks for any help!
I have an array of file-path strings like this
videos/funny/jelloman.wmv
videos/funny/bellydance.flv
videos/abc.mp4
videos/june.mp4
videos/cleaver.mp4
fun.wmv
jimmy.wmv
herman.wmv
Is there a library or easy way I can get to a data structure json or xml? Something like this: (I see there are a lot of snippets available for traversing actual folders, but again, I just have strings.)
{
files:{
file:[
{
filename:'fun.wmv'
},
{
filename:'jimmy.wmv'
},
{
filename:'herman.wmv'
}
],
folder:{
foldername:'videos',
file:[
{
filename:'abc.mp4'
},
{
filename:'june.mp4'
},
{
filename:'cleaver.mp4'
}
],
folder:{
foldername:'funny',
file:[
{
filename:'jelloman.wmv'
},
{
filename:'bellydance.flv'
}
]
}
}
}
}
Hi.
I'm looking for a jQuery Plugin to create a graph like that http://www.panic.com/blog/2010/03/the-panic-status-board/. To update the graph every x miliseconds from a PHP page and the numbers that are on the top. Is it possible?
Do you know any plugin that does that? Thanks!
Hi,
Is it possible to have Javascript compute a timestamp returned from php's time() function and present it in a readable format such as "Sun, 18th April 2010 at 4:00 pm"?
Thanks:)
I have some strings which contain the words LIMIT 3, 199 or LIMIT 0, 100.
Basically I want to replace the word LIMIT and everything after it in my string.
How do I do this in PHP? str_replace only replaces an item and the LIMIT text after is dynamic/
So it could be
WHEN JOHN WAS TRYING HIS SQL QUERY, HE FOUND THAT LIMIT, 121
// RETURN WOULD BE
WHEN JOHN WAS TRYING HIS SQL QUERY, HE FOUND THAT
WHEN JOHN TRIED LIMIT 343, 333 HE FOUND
// RETURN WOULD BE
WHEN JOHN TRIED
Hi,
I'm sending email with PHP's mail function.
It works just as it should except all email clients show blank From-field.
Here's how i'm using the function:
mail( '[email protected]', "Example subject", $msg,
implode( "\r\n", array( Content-Type: text/html; charset=UTF-8', 'From: [email protected]') ) );
As i said everything works fine except From field is all blank when the message arrives.
Any ideas why this is happening?
hi
just wondering. i've seen sites with this kind of url http://www.something.com/?somedata with the 'somedata' is the value of some 'unmentioned' variable
how can i do something like that? all I know is the traditional http://www.something.com/index.php?arg=somedata
thanks a lot
Does anybody have a PHP (or other language) script for drawing a spiral. A simple (Archimedean spiral) would be just fine. Of course the principle is simple but coding it in SVG or GD would take some time, so I wonder if somebody has one ready :-)
I have a Php script I want to use for creating a new blog in WPMU. I am having trouble calling wordpress functions like "wpmu_create_user" and "wpmu_create_blog".
My hope is to get this script running as a cron job from command line and pick up new blog creation requests from an external db, create a new blog using the wordpress functions and update the db with new blog info.
Any help/suggestions are highly appreciated.
Sid.
Hi, I'm just wondering how I could remove everything after a certain substring inPHP
ex:
Posted On April 6th By Some Dude
I'd like to have it so that it removes all the text including, and after, the sub string "By"
Thanks
Hello.
I want to fetch all my emails available in different online accounts eg:(gmail, yahoo, hotmail, aol, etc..) using PHP such that if necessary to reply any email then I could reply.
How it is possible?
I have one string like {test}{test1}{test2}{test3}{test4},(the number of the {} is unknown) and I like to get the content in {} out and put them into array. How can I do this? I tried preg_match( "/({{\S}+}/)"), the result is wrong.
Thanks so much for anyone's help.
I am trying to use an update query to change values held in a database, the new values I am trying to store are held inphp variables. I'm not sure what it is I'm doing wrong.
mysql_query("UPDATE user SET
status='full' WHERE user_id =
'$user_id'")or die(mysql_error());
thanks in advance