In my Apache log yesterday, I noticed these strange errors: [CODE] 127.0.0.1 - - [17/Apr/2011:15:02:36 +0100] "GET /icons/blank.gif HTTP/1.1" 200 487 "http://localhost/" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" 127.0.0.1 - - [17/Apr/2011:15:02:36 +0100] "GET /icons/layout.gif HTTP/1.1" 200 616 "http://localhost/" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" 127.0.0.1 - - [17/Apr/2011:15:02:36 +0100] "GET /icons/text.gif HTTP/1.1" 200 569 "http://localhost/" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" … |
|
I am trying to serve up some PHP files as extension-less or as custom extensions (e.g. test.myfile1). This is my current .htaccess: [CODE]#AddHandler application/x-httpd-php .$ RewriteRule ^([^\.]+)$ $1 [T=application/x-httpd-php-source] [/CODE] Previously it was: [CODE] AddHandler application/x-httpd-php .$ [/CODE] Which is better, and how should I go about this? Thanks |
|
I have two databases, tvguide and episodes1. Both are InnoDB, and I use Phpmyadmin to edit them. I tried creating a foreign key between the "episode" field of episodes1 and tvguide, and this error message came up: Error creating foreign key (check data types) : episode How can I fix … |
|
How do I get IIS 7.0 to run virtual hosts as in Apache? I've tried the hosts file but it doesn't work, and using Apache's reverse proxy didn't help either - as suggested elsewhere on the net. Anyone able to figure this one out? Thanks! |
|
This is my pagination script: [CODE] <?php /*********************************** * PhpMyCoder Paginator * * Created By PhpMyCoder * * 2010 PhpMyCoder * * ------------------------------- * * You may use this code as long * * as this notice stays intact and * * the proper credit is given to * * … |
|
This is my code, as seen here: [url]http://pcafansa6.hosticks.com/episode1.php[/url] [CODE]<?php /*********************************** * PhpMyCoder Paginator * * Created By PhpMyCoder * * 2010 PhpMyCoder * * ------------------------------- * * You may use this code as long * * as this notice stays intact and * * the proper credit is given to … |
|
I've got my pagination script working, but now I need help trying to get it to extract data from 2 different sources. The episode data is stored in table episodes, whilst the main table (where the info on airdates for episodes is stored in epdata2). This is my code: [CODE] … |
|
This is my XML code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <library> <episodes> <episode> <eptitle>Police Stop!</eptitle> <epno></epno> <desc>Dangerous driving caught on camera.</desc> </episode> <episode> <eptitle>Police Stop! 2</eptitle> <epno></epno> <desc>Dangerous driving caught on camera. Including a pursuit through the Midlands.</desc> </episode> <episode> <eptitle>Police Stop! 3</eptitle> <epno></epno> <desc>Featuring footage of dangerous driving on our roads, … |
|
I've been trying to create a specialised CMS, as none of the current open-source ones fit my needs for this project. I'm trying to create a CMS for a TV/episode guide which is similar to this: [url]http://library.digiguide.com/lib/programmenextshowing/Police%2C+Camera%2C+Action!-12578[/url] (one such example) - where records expire and delete from the database after … |
|
This is my PHP code (currently commented out in my templates) which is used in the project mentioned here - [url]http://www.daniweb.com/forums/thread251774.html[/url] (a currently ongoing project): [CODE] <div class="indented searchFooter" style="border-top: 1px solid rgb(207, 214, 233);"><table summary="" class="stNoMargins" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tinyText stNoMargins"><div class="btnContainer"><ul><li><a class="smBtnSel" href="tvguide.php?page=1">1</a></li><li><a class="smBtn" href="tvguide.php?page=2">2</a></li><li><a class="smBtn" href="tvguide.php?page=2" title="Next … |
|
This is my code, which displays either an image, or message depending on the time: [CODE]<?php $b = time(); $hour = date("g",$b); $m = date ("A", $b); if ($m == "AM") { if ($hour == 12) { echo "Good Evening!"; } elseif ($hour < 4) { echo "Good Evening!"; } … |
|
I'm new to wget, I've looked it up on Google, done my research, but am still struggling to use it to be able to make a local copy of the site (sometimes images show up from the web in the HTML of the site, and not the local copy of … |
|
This is my pagination script which is partially working: [CODE] <HEAD> <LINK href="style1.css" rel="stylesheet" type="text/css"> </HEAD> <?php /* Place code to connect to your DB here. */ include('config.php'); // include your code to connect to DB. $tbl_name="episodes"; //your table name // How many adjacent pages should be shown on each … |
|
I've (partially) managed to get modaspdotnet to run on apache. This is my code: [CODE] LoadModule aspdotnet_module "modules/mod_aspdotnet.so" AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \ licx rem resources resx soap vb vbproj vsdisco webinfo # For all virtual ASP.NET webs, we need the aspnet_client files … |
|
I have recently been looking at the Pager script in PEAR, and installed it to my Apache install. This is my existing code for my script (which doesn't use PEAR'S Pager script, for now anyway): [CODE] <?PHP //connect to mysql //change user and password to your mySQL name and password … |
|
I created code for my TV guide web site, as mentioned in a previous thread ([url]http://www.daniweb.com/forums/thread247517.html[/url]). I solved the problem, in the code below. This is the new code, which works well: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which … |
|
This is a code for my radio station schedule, which works well, no error messages: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which database you want to edit mysql_select_db("radio1"); //select the table $result = mysql_query("select * from schedule order by … |
|
I've managed to get PHP to work well with SQL, but date and time-related parts of my site are proving difficult to understand. I've created 3 records with these dates: December 26th (2009) - 2:25pm January 5th, 2010 - 3:00pm January 7th, 2010 - 9:00pm I'm trying to get it … |
|
I'm getting a bit better at PHP, but the datetime with databases is proving hard to do for this particular bit of coding, no matter how much I practise! Here's my code (ignoring the database parts in the header): [CODE]//select the table $result = mysql_query("select * from epdata1 order by … |
|
I've got a simple PHP page with a list of events that are taking place at certain times on certain days, and this is my code: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which database you want to edit mysql_select_db("events"); … |
|
This is my code: [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select which database you want to edit mysql_select_db("tvguide"); //select the table $result = mysql_query("select * from epair LIMIT 20;"); //grab all the content while($r=mysql_fetch_array($result)) { //the format is $variable = … |
|
This is the code for my TV guide website (stored on localhost)'s articles in PHP: [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select which database you want to edit mysql_select_db("tvguide"); //select the table $result = mysql_query("select * from epdata"); //grab all … |
|
This is an included file on one of my PHP sites on localhost: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDDELETED"); //select which database you want to edit mysql_select_db("myradiostation1"); //select the table $result = mysql_query("select * from presenters"); //grab all the content … |
|
I get these errors in a script of mine: [CODE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\www\vhosts\myradiostation\test.php on line 13[/CODE] and my original page (included in another page): [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select … |
|
I've been trying to create a database-driven site, am new to this, have looked it up on Google and tried for myself, but need a bit of help. [CODE] <?php // Connects to your Database mysql_connect("localhost", "root", "PASSWORDREMOVED") or die(mysql_error()); mysql_select_db("epguides") or die(mysql_error()); $data = mysql_query("SELECT * FROM epguides) or … |
|
How do you get this to work? - well, for more than simple <strong> and <i> tags - I'm trying to get a HTML table in as an array, if this is possible! Any advice is appreciated! |
|
How do I use wget to download a full website to a certain folder. I'm trying to download [url]www.mercia.co.uk[/url] but can't extract it to C:/mymerciasite I'm on Windows Vista Home Edition, if that's relevant. |
|
I've just been learning arrays, and so far it's going well :) This is my current PHP code: [CODE]<?php $states = array ('MD' => 'Maryland', 'IL' => 'Illinois', 'MI' => 'Michigan'); $provinces = array ('QC' => 'Quebec', 'AB' => 'Alberta'); $abbr = array ('US' => $states, 'Canada' => $provinces); $japanesemotors … |
|
I'm trying to set dynamic titles on my pages with a switch statement, but can't get it to work. Tried ifelse using code gleaned from Google but it didn't work. I'm trying to get it so that all my pages' titles are able to be dynamically used from a value … |
|
This is the echo code from my site: [CODE] <?php $url1 = "http://www.canadiandriver.com"; $url2 = "http://www.chevrolet.com.br"; $autoguide = "Autoweekly"; $autoguide1 = /"<b>"<a href=\"$url1\buyers-guide/2010/volkswagen/passat.php"\>New car of the day</a>"/</b>"; ?> [/CODE] Yet it produces a T_STRING error, and I can't work out how to fix it. The other variables work fine, $autoguide1 … |
0 Reputation Points
0 Endorsements
Ranked #1K
~9K People Reached
Favorite Forums