Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~9K People Reached
Favorite Tags
Member Avatar for whitestream6

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)" …

Member Avatar for jino
0
738
Member Avatar for whitestream6

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

Member Avatar for pritaeas
0
107
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
95
Member Avatar for whitestream6

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!

Member Avatar for dizid
-1
126
Member Avatar for whitestream6

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 * * …

Member Avatar for Monster Killer
0
73
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
152
Member Avatar for whitestream6

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] …

Member Avatar for sourcebits
0
155
Member Avatar for whitestream6

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, …

Member Avatar for phpuser
0
95
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
118
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
587
Member Avatar for whitestream6

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!"; } …

Member Avatar for JRM
0
143
Member Avatar for whitestream6

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 …

0
59
Member Avatar for whitestream6

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 …

Member Avatar for JRM
0
80
Member Avatar for whitestream6

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 …

0
67
Member Avatar for whitestream6

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 …

0
68
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
1K
Member Avatar for whitestream6

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 …

Member Avatar for pritaeas
0
113
Member Avatar for whitestream6

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 …

Member Avatar for darkagn
0
704
Member Avatar for whitestream6

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 …

0
62
Member Avatar for whitestream6

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"); …

Member Avatar for CFROG
0
144
Member Avatar for whitestream6

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 = …

Member Avatar for whitestream6
0
134
Member Avatar for whitestream6

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 …

Member Avatar for whitestream6
0
133
Member Avatar for whitestream6

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 …

Member Avatar for diafol
0
130
Member Avatar for whitestream6

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 …

Member Avatar for DW Master
0
179
Member Avatar for whitestream6

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 …

Member Avatar for Arianna
0
111
Member Avatar for whitestream6

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!

Member Avatar for Airshow
0
94
Member Avatar for whitestream6

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.

Member Avatar for mekmiotek
0
69
Member Avatar for whitestream6

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 …

Member Avatar for nav33n
1
178
Member Avatar for whitestream6

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 …

Member Avatar for rokape
0
220
Member Avatar for whitestream6

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 …

Member Avatar for SKANK!!!!!
0
229