Well, you can trim \n, \r with the trim() function...
str_replace("change","to this",$in_this)
Search found 12 matches
- Mon Jun 09, 2003 9:13 am
- Forum: PHP - Code
- Topic: damn darn carriage return
- Replies: 4
- Views: 867
- Wed May 28, 2003 4:18 am
- Forum: PHP - Code
- Topic: Finding out current path of script
- Replies: 2
- Views: 546
This will show you the path to the script you are running:
Code: Select all
_FILE_- Wed May 28, 2003 4:17 am
- Forum: PHP - Code
- Topic: i need help with the something.php?something
- Replies: 5
- Views: 694
You can just use this:
Code: Select all
<?php
switch($page){
case "trainers":
print "content";
break;
case "tutorials":
print "content";
break;
// and so on...
?>- Wed May 28, 2003 4:09 am
- Forum: PHP - Code
- Topic: multipart/form-data
- Replies: 2
- Views: 476
- Tue May 27, 2003 8:59 am
- Forum: PHP - Code
- Topic: Nuked mailserver without intension. Desperate help request!
- Replies: 8
- Views: 1488
- Tue May 27, 2003 8:54 am
- Forum: PHP - Code
- Topic: easy php chat
- Replies: 8
- Views: 1393
- Tue May 27, 2003 8:52 am
- Forum: PHP - Code
- Topic: $HTTP_Referer
- Replies: 6
- Views: 1245
Try using a full address, like: http://www.site.com/....
I think that you better ask if the reffer came from a php page and not from a folder like you writed. (url/of/required/referer)
I think that you better ask if the reffer came from a php page and not from a folder like you writed. (url/of/required/referer)
- Thu May 08, 2003 2:59 am
- Forum: PHP - Code
- Topic: strange one ">" appears in mail text
- Replies: 7
- Views: 2234
- Tue Mar 25, 2003 9:37 am
- Forum: PHP - Code
- Topic: Cookies that don't expire?
- Replies: 7
- Views: 1042
Yu can try
Just so you'll know "time()+3600" = 1 Hour...
Code: Select all
<?
setcookie("CookieName") #without using "time()+"
?>Code: Select all
<?
setcookie("CookieName",time()+3600);
?>- Tue Mar 25, 2003 9:27 am
- Forum: PHP - Code
- Topic: Cookies and localhost
- Replies: 3
- Views: 795
- Thu Mar 20, 2003 4:54 am
- Forum: PHP - Code
- Topic: Header
- Replies: 7
- Views: 836
- Thu Mar 20, 2003 4:27 am
- Forum: PHP - Code
- Topic: Header
- Replies: 7
- Views: 836