Forum: PHP Oct 26th, 2006 |
| Replies: 9 Views: 2,703 Someone will correct me on this if I'm wrong, but if the output for this is to go to the screen (I didn't think about what it was supposed to do until later) you'd be better using echo instead of... |
Forum: PHP Oct 26th, 2006 |
| Replies: 9 Views: 2,703 That usually means a syntax error of some sort.
Isn't the format for the print 'function':
print ( a string );
(Note the brackets).
And you've not got a paired ' in the last one.
And... |
Forum: PHP Oct 25th, 2006 |
| Replies: 10 Views: 3,365 And formatting Sharron's cut-and-paste because she clearly isn't familiar with that function:
#1
<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $
osCommerce, Open Source... |
Forum: PHP Oct 25th, 2006 |
| Replies: 10 Views: 3,365 Why didn't you just save your GIF with the name 'oscommerce.gif' and overwrite the one on the server, rather then drop yourself into PHP at this level knowing what you do? |
Forum: PHP Oct 25th, 2006 |
| Replies: 14 Views: 2,324 When I set it up, all I did was put my normal pop server names in.
But as I have said, I could never get the set up to work properly. Single pages were served fine, but as soon as I tried to call... |
Forum: PHP Oct 24th, 2006 |
| Replies: 14 Views: 2,324 This is exactly the point I was making.
If I were you I'd forget it for now and stick with your web server. Or get some web space which allows PHP.
http://www.oinko.net/freephp/ |
Forum: PHP Oct 24th, 2006 |
| Replies: 14 Views: 2,324 Yes, if you want to run them locally on your machine. You also need mySQL if you plan to use that.
And it isn't as easy as it sounds, and you may find some things don't work (sending form mail,... |
Forum: PHP Oct 24th, 2006 |
| Replies: 14 Views: 2,324 You don't need the sourcecode. |
Forum: PHP Oct 24th, 2006 |
| Replies: 14 Views: 2,324 Yes, but unless you have a server with PHP running on it you won't be able to see the pages.
Your webspace must have PHP capability (and most free ones don't). In that case you have to install... |
Forum: PHP Oct 24th, 2006 |
| Replies: 14 Views: 2,324 You don't actually need any.
If your web server can handle PHP, all you need is a text editor and as long as you can upload files it will work.
I use this editor:
... |
Forum: PHP Oct 23rd, 2006 |
| Replies: 3 Views: 1,274 Unexpected T_String usually means syntax error somewhere ;)
And usually nowhere near the line number it reports :rolleyes: |
Forum: PHP Oct 22nd, 2006 |
| Replies: 3 Views: 1,274 I've no idea how you're going to use this code in your full script, but if you take out the ' in 'site's' it doesn't error any more.
If you want that character in your text strings you're going... |
Forum: PHP Oct 19th, 2006 |
| Replies: 9 Views: 3,789 You can't use " inside the echo - you have to escape any occurence of " with \", so that line in the middle should be:
echo ("<a href=\"$link$title\">$title</a>");
Otherwise PHP thinks the... |
Forum: PHP Oct 19th, 2006 |
| Replies: 9 Views: 3,789 So is it sorted now? You can see what you need to do? |
Forum: PHP Oct 18th, 2006 |
| Replies: 9 Views: 3,789 Well, I assume that each incarnation of 'title' will have a different target url, so what do you think you will have to do for that...?
If we assume that 'title' is also the actual url as well as... |
Forum: PHP Oct 17th, 2006 |
| Replies: 9 Views: 3,789 Something like:
echo("<a href=\"mylink.htm\">$title</a>");
(I haven't tested that so I can't guarantee it being typo-free. PHP is unforgiving ;)) |