Forum: PHP 1 Day Ago |
| Replies: 8 Views: 219 I was trying to set a HTML table with content already in place as an array - but if that's not possible, then not to worry, I will see what other HTML in arrays I can learn. |
Forum: Windows Vista and Windows 7 1 Day Ago |
| Replies: 1 Views: 119 How do I use wget to download a full website to a certain folder.
I'm trying to download www.mercia.co.uk but can't extract it to C:/mymerciasite
I'm on Windows Vista Home Edition, if that's... |
Forum: PHP 2 Days Ago |
| Replies: 8 Views: 219 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! |
Forum: PHP 8 Days Ago |
| Replies: 1 Views: 188 I've just been learning arrays, and so far it's going well :)
This is my current PHP code:
<?php
$states = array ('MD' => 'Maryland', 'IL' => 'Illinois', 'MI' => 'Michigan');
... |
Forum: PHP 17 Days Ago |
| Replies: 11 Views: 340 Thank you for that advice - useful for if my site does have MySQL capacity, but my current webhost only offers PHP 5.28, with no databases available on the free hosting plan, so I've had to resort to... |
Forum: PHP 17 Days Ago |
| Replies: 11 Views: 340 It is an episode guide for TV programmes, with the data stored in php variables. |
Forum: PHP 17 Days Ago |
| Replies: 11 Views: 340 This is the variable for the episode titles:
$phptitle = "<NAME OF PROGRAMME>";
However, I have to manually change it for every page and add it as:
<?php
$phptitle = "test";
?> |
Forum: PHP 17 Days Ago |
| Replies: 11 Views: 340 Do arrays have to be numbered automatically, or can they be like array[pagetitlename.php]? |
Forum: PHP 23 Days Ago |
| Replies: 7 Views: 277 I tried atli's suggestion, and it partly worked.
As for the URLs not being able to be found, they're only accessible locally, mapped via virtualhosts in Apache and a HOSTS file - otherwise... |
Forum: PHP 23 Days Ago |
| Replies: 7 Views: 277 Your code almost worked... except it displayed the same page repeatedly, despite the contents of 1, 2, 3, 4, 5, 6 and 7.php all being different.
How would I fix this? This code is for my localhost... |
Forum: PHP 24 Days Ago |
| Replies: 7 Views: 277 Basically what I'm trying to do... get the script to display a different page every day of the week. |
Forum: PHP 24 Days Ago |
| Replies: 7 Views: 277 This is my code which is intended to produce an URL like the following:
www.mysite.com/test.php?day=1
<?
if (!$_GET['day']) {
$day = date('N');
}
elseif ($_GET['day']==1){ ?>
<?php... |
Forum: PHP 26 Days Ago |
| Replies: 11 Views: 577 $vwpassat = "<strong>\"<a href='$url1/buyers-guide/2010/volkswagen/passat.php'>VW PASSAT ARGENTINA</a>\"</strong>";
This seems to work - is this the correct syntax for bold quotation marks now? |
Forum: PHP 26 Days Ago |
| Replies: 11 Views: 577 Thanks, that worked, however, how do I make the quotation marks bold within $autoguide1 - I only get the first one and it ends up as this:
- the second quotation marks set doesn't appear, for... |
Forum: PHP 26 Days Ago |
| Replies: 11 Views: 577 Thank you for that - the code below worked:
However, what should I do to make the quotation marks bold within $autoguide1 without getting this error: |
Forum: PHP 26 Days Ago |
| Replies: 11 Views: 577 This is the echo code from my site:
<?php
$url1 = "http://www.canadiandriver.com";
$url2 = "http://www.chevrolet.com.br";
$autoguide = "Autoweekly";
$autoguide1 = /"<b>"<a... |
Forum: PHP 28 Days Ago |
| Replies: 11 Views: 340 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... |
Forum: PHP 28 Days Ago |
| Replies: 5 Views: 263 Now I'm getting this error message:
My code now:
<html>
<body>
<html>
<body>
<? |
Forum: PHP 28 Days Ago |
| Replies: 5 Views: 263 I get this error now in my code:
Parse error: syntax error, unexpected '}', expecting T_ENDSWITCH or T_CASE or T_DEFAULT in C:\www\vhosts\mywebsite1\dayweek.php on line 25
<html>
<body>
<?
$i... |
Forum: PHP 28 Days Ago |
| Replies: 5 Views: 263 This is my script, which is intended to show a different page depending on day of the week.
<html>
<? error_reporting(E_ALL);?>
<body>
<?
$i=$_GET['day'];
switch ($i) {
case 0: |
Forum: PHP 30 Days Ago |
| Replies: 4 Views: 215 This is my code - which displays different articles and produces articles as http://www.mysite.com/testpage.php?test=1
<html>
<body>
<?
$i=$_GET['day'];
switch ($i) {
case 1:
... |
Forum: ASP.NET Aug 27th, 2009 |
| Replies: 1 Views: 212 My httpd.conf entry for this site:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhostradiostation2.co.uk
ServerAlias www. localhostradiostation2.co.uk
DocumentRoot... |
Forum: ASP.NET Aug 27th, 2009 |
| Replies: 1 Views: 212 I am making my website about a radio station, and it's currently PHP-based, but I am testing an ASP-based one on my dev machine.
This is the PHP querystring code:
<?
$i=$_GET['DJID'];
switch... |
Forum: Windows Servers and IIS Aug 25th, 2009 |
| Replies: 0 Views: 799 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.
... |
Forum: PHP Aug 24th, 2009 |
| Replies: 1 Views: 217 I've been trying out arrays recently, and this is my coding:
<?php
$data = array('autoguide1'=>'car',
'baz'=>'boom',
'scotland'=>'haggis',
... |
Forum: PHP Aug 22nd, 2009 |
| Replies: 0 Views: 186 I got arrays working first time! :)
This is the website's source code, the file is testing.php.
Source code:
<?php
$data = array('test'=>'testingpage',
'test1'=>'test1a',
... |
Forum: PHP Aug 7th, 2009 |
| Replies: 1 Views: 387 I'm trying to get multiple variables to work in the query string with PHP.
This is my code:
<?
$programme=$_GET['programme'];
switch ($programme) {
case 12578:
... |
Forum: PHP Aug 1st, 2009 |
| Replies: 6 Views: 590 What would I have to do to my query string?:
<?
$i=$_GET['carname'];
switch ($i) {
case 1:
include("1.php");
break;
case 2:
include("2.php"); |
Forum: Linux Servers and Apache Jul 27th, 2009 |
| Replies: 0 Views: 517 I got my httpd.conf and virtual hosts working properly, no problems there! :)
Using mod_rewrite is the big problem.
I've created the page http://mycarwebsite1.com/page2.php
but want to rewrite... |
Forum: PHP Jul 24th, 2009 |
| Replies: 6 Views: 590 I'm still trying to figure this out... anyone got any advice? |
Forum: PHP Jul 24th, 2009 |
| Replies: 6 Views: 590 Thanks for that. Do I have to create a separate .htaccess or php file to get this to work?
I have http://www.mychevycars.com (virtual host)
and I want to split the pages (page1.php, page2.php)... |
Forum: PHP Jul 24th, 2009 |
| Replies: 6 Views: 590 Thank you for the tutorial last time on query strings :)
It worked for me, this is my working query string:
<?
$i=$_GET['vehicle'];
switch ($i) {
case Chrysler:
include("chryslernew.php");... |
Forum: Linux Servers and Apache Apr 14th, 2009 |
| Replies: 3 Views: 900 It is a development-only system. Previously people did find it by my IP in the past when it was just blank-content of testing 123.
I'm using it as a testbed before I transfer stuff to another... |
Forum: PHP Apr 11th, 2009 |
| Replies: 10 Views: 1,204 Thanks, rm_daniweb, that worked very well!
One question - how do I get it to automatically show the right page on the right day, e.g. it show's day 1's page on Monday etc. without people having to... |
Forum: PHP Apr 10th, 2009 |
| Replies: 10 Views: 1,204 Thanks for that. How would I use it with my code:
<html>
<body>
<? if($_GET['day']==1){ ?>
<?php include("day1.php") ?>
<? }else if($_GET['day']==2){ ?>
<?php include("day2.php") ?>
<?... |
Forum: PHP Apr 10th, 2009 |
| Replies: 1 Views: 389 I have a PHP page with query strings in, and that works, but getting it to display the correct page depending on the day via a switch statement is a problem.
This is the code:
<html>
<body>
... |
Forum: PHP Apr 10th, 2009 |
| Replies: 10 Views: 1,204 Thanks to all for that - my site should work properly now.
One more question... I'm planning to use a switch statement so that it shows the correct page on certain days.
This is my code:
<html>... |
Forum: Linux Servers and Apache Apr 8th, 2009 |
| Replies: 3 Views: 900 I've been testing a few PHP scripts on an Apache server with Apache 2.2, the latest version, and a PHPMyadmin.
Currently I'm running MediaWiki and a PHPbb board, with testing content.
I want to... |
Forum: PHP Apr 7th, 2009 |
| Replies: 10 Views: 1,204 I tried looking on Google for info on this, but not much came to light.
I'm trying to do a query string that takes info from text files and renders them as PAGENAME.php?id=1 - without using a... |
Forum: Windows Software Mar 7th, 2009 |
| Replies: 1 Views: 694 I'm trying to create a magazine for the organization I work for, and am looking for good desktop publishing software.
I've got a copy of Motor Trend in front of me as I write this, and I'm... |