Re: A few newbie questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: A few newbie questions

From: Ken Robinson <kenrbnsn@rbnsn.com>
Date: Tue Jul 19 2005 - 21:58:39 CEST

SOR wrote:
> Although i'm working on and about half way though building
> www.phpguestbook.co.uk i'm still a bit of a php newbie and theres lots
> of simple basic stuff I dont know .
>
> A few minutes of your time would save me ages on google .
>
> exit and exit() - is there a difference

Read the manual at http://www.php.net/

>
> instead of include - how do I tell it to goto the new page like clicking
> on a link

Use the header() function.

>
> going back to exit - instead of exit and a complete php full stop &
> assuming its just a include file I want to break out of how do I do it
>

You might be able to use the continue statement.

> strings - how do I strip carriage returns out of a string

str_replace()

>
>
> errors.txt - this gets save to whatever website folder i'm working on
> offline and as I dont want it I want to get rid of it or tell it to save
> the file somewhere else

That sounds like something your host has defined. Talk to them.

Ken
Received on Mon Oct 17 21:11:31 2005