Hi, I have a strange issue. I'm trying to write a simple php webpage on my server, but mysql_connect() doesn't connect to any server, either local or otherwise. Here's where it gets strange. If I take the same php script and run it from the commandline, the script works. phpinfo() indicates that both the file (being run by apache) and th...
How to get x y coordinates of an image in php?
I have an image $image = images/abc.png;
how to get the coordinates of the image using php.
...
I am working on a live remote php project in eclipse. ie, I just connect the the project using RSE edit the files and save.
I have recently setup subeclipse and am wondering if there is an way to add my php files to a subversion project while still working on the live project? Or maybe there is a better way to do this and get the same...
Can a PHP application have too many functions? Does the execution of a large number of PHP functions hog memory and resources? My WordPress theme in-development has a lot of functions (probably more than 100 by the time I'm done) and I'm concerned that I might have too many.
...
Hi,
I am very new to magento and currently I am getting "PHP Extension curl must be loaded" error during magento installation.
Can you help me?
...
I have a form posting data to a php page. Then I have the PHP page echoing the data aswell as posting it to twitter. Whenever In a word with an apostrophe it adds a back-slash right before it. So I type in "I'm going to the park" it echos "I\'m going to the park" what's going on and how do I fix it? Thanx :)
...
Hello,
I have a variable like
$content = "Lorem Ipsum is simply <b>dummy text of the printing</b> and typesetting industry.
Lorem Ipsum has been the industry's <i>standard dummy text</i> ever since the 1500s
<string>javascriptFunc();</script>" ;
when i use str_replace('a', '', $content); all the 'a's get removed. But the 'a's with...
I just upgrade the PHP version in my VPS to 5.3.2
I used FastCGI and worker MPM in php 5.1.2 or 5.2.1 I forgot, it worked fine, and it was so fast, I like it.
After I upgrade the PHP version, it gives me Internal Server Error 500 on all .php pages.
What is wrong? does FCGI support php 5.3.2?
If yes, there should be some differences in...
$chars = array
(
' ',
'!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/',
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
':', ';', '<', '=', '>', '?', '`',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
'A', 'B', 'C', 'D', 'E...
I want to make a automated call application, which will dial some mobile numbers, and give the response to them, and also record there voice in wave and text format. is it possible in PHP, or there is any buildin function or classes for doing that?
...
Hi!
I am looking to embed a Quicktime with dynamically created starttime and endtime. This all works fine, however the Quicktime movie starts caching from the very beginning of the movie instead of from the starttime. Is there any way to get QT to cache from the starttime?
Much appreciated!
Frank
...
Can any one please let me know,
do i need to include when i use Chilkat active-x?
$zip = new COM("Chilkat.Zip2");
...
Hello, I'm having some trouble using sessions with php.. I think I have figured out why, it seems that when I set the session variable it is copying the entire SimpleXMLElement object rather than just the value stored in said object. How can I make sure to just store the value in my session variable??
Here are some code snippets:
$re...
The directory structure:
C:/wamp/www/application/model/data_access/data_object.php
C:/wamp/www/application/model/users/user.class.php
C:/wamp/www/application/controller/projects.php
C:/wamp/www/application/controller/links/links.php
I have 2 php files data_object.php and user.class.php Now user.class.php has an include statement for...
Hi,
I've installed ZendStudio 7.2 it creates project normally with no error but when i try to add action(s) in it, it says project profile does not exist. and the error log is as follow:
executing zf create action showLatest index-action-included
An Error Has Occurred
A project p...
Possible Duplicate:
Why should I use templating system in PHP?
Hi ,
New to smarty ,
Why people's showing interest in framework ,
What are the advantages in that , also lot of people little bit avoiding template what is the reason ,
What is the real reason people choosing the smarty ,
How much really smarty best for web...
Hi
Thanks for your time.
This question is related to php programming but not a programming question.I have a young team of php (LAMP + javascript) programmers.I want them to learn better coding and keep themselves updated with the latest advancements in web domain.
I was thinking if there was any web site which send daily emails abou...
I am trying to use adobe flash builder 4 with a php service. I had it set up an older macbook running leopard, but just tried to set it up on my new laptop running snow leopard. I did all the same steps.. set the Flex Server to be PHP, set the web root and url. Then I go to Data->Connect To PHP and point it to a php file I have in my ...
Consider the below HTML string
<p>This is a paragraph tag</p> <font>This is a font tag</font> <div>This is a div tag</div> <span>This is a span tag</span>
This string is processed to tokenize the text found in it and we get 2 results as below
1) Token Array :
$tokenArray == array(
'This is a paragraph tag',
'This is a div ta...
I want to create a file on-the-fly and send it to the browser instead of the php site. I think I need to use the Header-Function, but how do I do that? Can anyone tell me that?
...