I'm trying to use curl with PHP on my box without any success.
My Config :
OS : win 7 64 bits,
PHP : 5.3.1,
Apache : 2.2.14
I was able to use the mysql extension, so the configuration of my php.ini seems fine. But I get and error in Apache log with curl :
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php-5.3.1/e...
I have search the existing question here, but haven't get the specific detail that I need, so I'm asking my own question.
I use Ubuntu Linux (current version 9.10) and use Eclipse Galileo PDT to develop web application using CodeIgniter. I can make the autocomplete worked for CodeIgniter's libraries and model using this comment in my co...
Maybe not tricky for some, but tricky for me.
I recently moved things around on my blog and I need to easily redirect users to the new pages.
Previously, I had all of my articles linked like so:
http://www.my-site.com/blog/my-article-title
But I changed it to:
http://www.my-site.com/blog/article/my-article-title
I want to redirect ...
Hello, first off, I am a newbie with php (as well as coding in general). I have a website that has user profiles. On these profiles there are areas to comment in. I am trying to toggle 3 types of comment areas depending on
A. If you are signed in and looking at your own profile
B. If you are signed in looking at someone elses profile
C...
hi all,
I am using the facebook php libraries,
Invitation of app is send to selected friend is working but when i enter the email id in email address box the invitation is not received on respected email id.
...
Hi all,
How print all the weeks which start with monday and end with sunday.. like below ..using Zend_date
1 04-Jan-2010-10-Jan-2010
2 11-Jan-2010-17-Jan-2010
3 18-Jan-2010-24-Jan-2010
...
I need to convert strings of the form
"a b c"
into arrays of the form
Array
(
[0] => a
[1] => a b
[2] => a b c
[3] => b
[4] => b c
[5] => c
)
Does PHP provide a native function for converting strings into all substrings? If not, what's the path of least resistance for getting all substrings? Is there a str...
Hi guys I'm running a tweaked webmail application - however for some reason the openssl extension isn't loading - I've enabled it in the php.ini but when I run my application and check for loaded extensions using get_loaded_extensions - the openssl is not in the array of loaded extensions? Whats wrong here? The php_openssl.dll is physica...
i'm new to php. I came across this syntax in wordpress. Can anyone explain to me the last line of that code?
$page = $_SERVER['REQUEST_URI'];
$page = str_replace("/","",$page);
$page = str_replace(".php","",$page);
**$page = $page ? $page : 'default'**
the last line(bolded).
thanks
...
I'm using php's preg_split to split up a string based on semi-colons, but I need it to only split on non-escaped semi-colons.
<?
$str = "abc;def\\;abc;def";
$arr = preg_split("/;/", $str);
print_r($arr);
?>
Produces:
Array
(
[0] => abc
[1] => def\
[2] => abc
[3] => def
)
When I want it to produce:
Array
(
[0] =...
hey guys i searched a lot but there is a little topics discussed about generating pdf file in php ( using utf-8 format ) . my target language is Persian ( Arabic format ) and im wondering what is the best way to generate a clear cut and working pdf files out of my mysql/php scripts .
when im trying to use FPDF no satisfying result ...
Sorry I'm a newbie, I think that there's something wrong in this code, or something that can be improved.
This code was designed to upload files from a flash javascript uploader plugin.
It doesn't give me an error but sometimes it does not insert the mysql query.
P.s: every posted variable is cleaned up via javascript (just alphanumeric ...
The standard way of writing PHP extensions is to use autoconf/automake alongside a script called phpize, which seems to generate your autoconf configuration based on a template that's specific to your PHP environment. This let's it build the PHP extension for the right version of PHP, etc.
autoconf and the m4 language that is used to c...
I use a simple PHP script to run an online comic which basically uses a GET to take an integer value n and insert an img tag for n.jpg. It doesn't do any sanitizing or error checking beyond making sure that n.jpg exists. The only user interaction with the script is through this GET, and another that does the same thing with a string to m...
Hi ,
I neeed to order my loop by the id
my xml doc looks like this
<gig id="16">
<date>Fri. 23rd Apr</date>
<venue>Sneaky Pete's</venue>
<area>Edinburgh</area>
<telephone>www.ticketweb.co.uk</telephone>
<price>£10</price>
<time>Time TBA</time>
</gig>
So as you can see I nee...
I need to get the json data from,
http://vortaro.us.to/ajax/epo/eng/ + 'word'+ "/?callback=?"
working example (not enough reputation)
I know how to do it in javascript, But I need my php file to get this data, It needs to be server side, Thanks I'm new I have spent all day trying to figure this out. fopen and fread isn't working,
<...
I want to display a user's latest Tweets on a webpage while maintaining the ability to style the Tweets with custom CSS and also maintaining good page load speed.
I have managed to display the latest Tweets in 2 ways.
Using the PHP Twitter library (by Aaron Brazell). By using this method, my PHP code has to wait for a response from Tw...
Hi,
I have just moved a web application to a windows server and having some problems. One of it is -
application stores list of names of files in a database table. when a files is requested for download it is sent to output by sending proper headers (depending upon mime type and then a readfile("document location/filename.extension"); ...
I use $_SERVER['DOCUMENT_ROOT']."/lib/sft_required.php"; to include the 'sft_required' file in a PHP script. When I run this file using browser, it works fine but when I run this as a cron job job, it does not work. It seems that the file is not included when we run the script through cron.
...
Hello,
I am reading excel files through php, the contents are to be displayed in a table on web
I read this data in range A1 to D1 is one data and it is to be presented in this format
The data
is different,
in every,
cell.
This data is to be <br/> line breaked based on strlen (This is a single string is different, in every, cell. ...