WordPress allows theme designers to place a 404.php file in their theme's directory. This enables you to provide a custom page content when the WordPress application forwards the 404 over to your 404.php page.
My question is this: Does this constitute a true 404 error that would be registered as such by Google and other crawlers, or doe...
I'm currently scraping a website for various pieces of textual data (with permission, of course). The issue I'm seeing is that certain characters aren't correctly encoded in the process. This is particularly prominent with apostrophes ('): leading to characters such as: .
Currently, I use the following code to convert various HTML entit...
I'm already using this which I found on the net, for whenever I want to edit the information and there is already a converted link which is done by adding a new post, I need this to remove the link into text then when it's submitted to be updated, it will use this function to convert it into a link.
function Links($text)
{
$text = ...
I just scaffolded a new module and when I save using the generated form I get:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /Applications/MAMP/htdocs/ats/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 404
Any ideas why?
...
`I am working with an API that sends back an XML response upon request. Here's a simplified example:
<buildings>
<building attr1="foo" attr2="bar">
<uri>http://blah.com</uri>
<thumbnail>http://blah.com/foo-picture.jpg</thumbnail>
</building>
<building attr1="poo" attr2="pee">
...
</building>
</bu...
Hi,
I am confused with & and &&. I have two PHP books. One says that they are same, but the another says they are different. I thought they are same as well.
Aren't they same???
...
I am working on a personal project based in PHP and MySQL, and I am doing a bit of research and playing around with rewrites. Say I have a site...
http://www.myDomain.com/
And I want to have an index.php, or bootstrap, in the root of the domain. So if you access...
http://www.myDomain.com/admin/
It will still load from the index.ph...
I have this code wich gets WP posts, but it gets all the posts and orders them from the first to the last. I want only the last 10 post ordered from last to the earlier. What I have to change?
Thanks a lot in advance!
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('...
I am trying to modify some Drupal 6 form code and incorporate some native form validation. Code looks like this, but validation does not work. I never even get into function thisFormName_form_validate. Any Drupalians have some good ideas?
function thisFormName_form_alter(&$form, $form_state, $form_id) {
$form['email_address'] = arr...
Apparently one of the latest version updates of Wordpress is now issuing a true 404 header in response to a 404 condition. Previously, WordPress would simply forward the 404 to the custom 404.php and you could handle it without triggering a 404 on the search engine crawler. For example, you could load your Sitemap with a custom message f...
Hi...
I am new to Magento, and are using their API.
What I want to ask, is it possible to create a downloadable product through the API?
The documentation example is just for creating a new simple product, and if I use the API to view the product.info of a downloadable product, I don't see any attribute that link to a downloadable fil...
I am using a php/MySQL driven event feed to JSON. I am also trying to use greek html entities (i.e. &Gamma-with the semicolon) in the title for the event. Because FullCalendar will not let me see all the processies in firebug I can't see exactly what is going on but it will not render the , etc. I have tried all the combinations I can...
I'm working with sessions for the first time and why does the variable $session_life always = 0?
$_SESSION['time'] = time();
$inactive = 30;
$session_life = time() - $_SESSION['time'];
...
I'm running a PHP script...
and with an indefinite range the script stops working
but the process continues running
poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 3000) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 3000) = 0 (Timeout)
poll([{fd=...
I am trying to an execute a program in PHP on Windows with multiple arguments and absolute paths using a method like this:
<?php
$FLACPATH = str_replace(" ","\ ",realpath("../../encoders/flac.exe"));
$LAMEPATH = realpath("../../encoders/lame.exe");
$FILEPATH = realpath("../../encoders/01.flac");
function my_exec($cmd, $input='')
{
...
I am creating dynamic menus and submenus in php.... Can't know where to start.... I have written all my queries but need suggestion to iterate the result set with Ul and li elements with it.... There may are may not be submenus for submenu and there may or may not be submenus for menus.....
Menu1
submenu1
submenu11
submenu12...
I am passing the variable sessionnum from the following Javascript function in the page chat.php:
$(document).ready(function(){
timestamp = 0;
updateMsg();
$("form#chatform").submit(function(){
$.post("backend.php",{
message: $("#msg").val(),
name: auth...
I've got two reasons to use a sleep function: first, to automatically send a confirmation email to a client 20 minutes after they contact us. I don't want to use cron jobs because I want it to be exactly 20 minutes (and I'm sick of my web server sending me emails telling me they initiated a cron job.....a new email every 20 minutes!)
Se...
Hi,
I have a problem regarding to prevent download and saving of uploaded files.
My users can upload multiple files types like doc, pdf, ppt,etc....
This all file types are easily download if any one have url.
So what is the better way to prevent the download of the file.
Or i convert the uploaded files to some specific format which...
Hi All,
I am a beginner to Joomla, I have installed Joomla 1.5 in my server with Fantastico including sample data, also i have installed joomla in my local server. I Don't know how to upload this project from local to real server, when i completed my project , i have exported my database and import this Database in to real server after ...