All,
I have a PHP Web application built using Zend Framework and MVC with MySQL database. I plan to implement Context-Sensitive Help for the application.. I did my research but I didn't find any good pointers on how to achieve this.
Can someone point me to a book or a nice reference with example that does this? I see this implemented ...
I'm new to programming and have a question about navigation.
What are the various methods that can achieve a "First", "Previous", "Next" and "Last" navigation, as seen in article or comic based sites? (Admittedly the "First" link isn't confusing as it can stay static, but what about the others?)
For example, on the 50th page, the links w...
Hi everyone,
Quick question, how can I make this valid :
if($this->datos->bathrooms == "1½"){$select1 = JText::_( 'selected="selected"' );}
The ½ doesn't seem to be recognized. I tried to write it as ½ but then it looks for ½ literally, and not the ½ sign. Any ideas?
...
Possible Duplicate:
how to know when download is finished
Hi,
I have a file which I want users to download only once. After it's done downloading, the file is no longer available.
Outside of setting up a streaming system, is there any way I can set some sort of callback up to say the file is done downloading on the client's...
I want to split text by the letter-followed-by-period rule. So I do this:
$text = 'One two. Three test. And yet another one';
$splitted_text = preg_split("/\w\./", $text);
print_r($splitted_text);
Then I get this:
Array ( [0] => One tw [1] => Three tes [2] => And yet another one )
But I do need it to be like this:
Array ( [0] => O...
I have a huge Ping list and want to clean it.
Using PHP I have already removed duplicated, checked for 404s, redirects etc.
I was wondering what I could send to the URLs to see if they are actually functioning and open for submissions?
...
How is it possible to allow a user to create a webpage containing some html, based on their entries in a form? ie. I would want them to be able to input a name and when the button is clicked, a webpage called that name would be created. I imagine that this must be possible in php, but what functions/code would I be using?
Thank you!
...
How to create a PHP function only visible within a file? Not visible to external file. In other word, something equivalent to static function in C
...
I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line:
zend_extension_ts="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc9.dll"
When I use phpinfo(), xdebug is not loaded.
When I run command "php.exe -m", it not loaded as well.
How can this be resolved?
My configuration: PHP 5.3.1, Apache 2.2...
I'm not exactly sure why this is happening. I'm running MAMP on my local machine. And I decided to install PEAR locally. So I edited the PHP.ini file and uncommented the include_path directive. Now for some reason none of my ini_set or set_include path directives work:
// trying to different methods
ini_set( 'include_path', ini_get( 'in...
How to wipe html special chars like and others from text with the help of PHP?
...
I made a PHP-function which returns an array and then I move its value to a variable $a. How can I output it to a web page on CodeIgniter?
...
I'm planning to work on a web application of reasonable complexity and am wondering what technology to go with. It will probably start with one person, but there will be 2 or 3 more eventually. My first requirement is to be able to do this as quickly as possible - preferably with as less code as possible. Secondly requirement is that it ...
Hello, I am trying to get my pagination links to work properly. It seems when I click any of the pagination number links to go the next page, the new content does not load. literally nothing happens and when looking at the console in Firebug, nothing is sent or loaded.
I have on the main page 3 links to filter the content and display it...
I've been trying to retreive the start times of Google Calendar events with the following code:
$query = $service->newEventQuery();
$query->setUser($calUser);
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setSortOrder('ascending');
$query->setFutureevents('true');
try {
$e...
I have a MySQL field which stores an array with 3 values:
array(item1=>1123, item2=>5454, item3=>23432)
How can I query the database with PHP so that I get only distinct values of item2 and then arrange those results by the values of item3?
...
If I want to try out something new in Ruby or Javascript, I love getting immediate feedback from irb or the JS console in Firebug.
Is there anything like that for PHP?
...
After decoding the special character with the html_entity_decode function, I get spaces in replace of entities. My problem is when I check if if ($decoded_str[5] == ' ') it isn't true, though in $decoded_str[5] there is a space that was before decoding. How to settle the matter? I need to be able to check it like thi...
Hi all!
I'm looking for hints and tips to create php script where I can manage easelly my Apache virtual hosts. This is private use only and I don't want to use any heavy and complex scripts like directadmin or cPanel.
Just simple script where I can view added virtual hosts, add new ones and remove etc..
Platform is CentOS 5.3, Apach...
I've noticed an unusual problem with some of my php programs. Sometimes when visiting a page like profile.edit.php, the browser throws a dialogue box asking to download profile.edit.php page. When I download it, there's nothing in the file. profile.edit.php is supposed to be a web form that edits user information.
I've noticed this o...