Search found 13 matches

by almostsane
Tue Jun 08, 2004 8:34 am
Forum: PHP - Code
Topic: UREGENT HELP REQUIRED!!!
Replies: 9
Views: 803

I KNOW THAT!!! what i'm saying is that if i could just save the damn thing in /tmp, then i wouldn't need to stuff around trying to get it to save a cookie!!
by almostsane
Tue Jun 08, 2004 8:31 am
Forum: PHP - Code
Topic: header sent problem
Replies: 5
Views: 465

forgot to say none of the above "solutions" work.
by almostsane
Tue Jun 08, 2004 8:27 am
Forum: PHP - Code
Topic: header sent problem
Replies: 5
Views: 465

header sent problem

here is my code. fix it please!!! it will not work!! <? if (!$Submit) { echo "<p align='center' class='maintext'>To access the command console, you are required to log-in.</p> <form action='login.php' method='post' name='login' id='login'> <table width='200' border='0' align='center' cellpaddin...
by almostsane
Tue Jun 08, 2004 8:18 am
Forum: PHP - Code
Topic: UREGENT HELP REQUIRED!!!
Replies: 9
Views: 803

it does have things to do with my Host. if they simply allowed me to yse the default session stuff, then i wouldn't have any problems with it!!!
by almostsane
Tue Jun 08, 2004 8:07 am
Forum: PHP - Code
Topic: UREGENT HELP REQUIRED!!!
Replies: 9
Views: 803

bloody heck !!! i'm trying to use cookies, but i keep getting this error Warning: Cannot modify header information - headers already sent by (output started at /www/clientweb/au/m/madast.com.au/login.php:10) in /www/clientweb/au/m/madast.com.au/login.php on line 38 stupid host !! this is line 38 in ...
by almostsane
Tue Jun 08, 2004 6:09 am
Forum: PHP - Code
Topic: UREGENT HELP REQUIRED!!!
Replies: 9
Views: 803

UREGENT HELP REQUIRED!!!

I need your help urgently !! ok here is the problem i am creating a Content managment sysytem for a client, however, i have found out that their webhost does not support Session control. long story short, here is their reply to my question i sent to help desk. servers do not support file based sessi...
by almostsane
Thu Jan 15, 2004 8:17 pm
Forum: PHP - Code
Topic: replacing text in user input.
Replies: 7
Views: 871

yeah.. the problem is it is still displaying the $NetCode when echo'd

i'll check what version of PHP i'm running that may be it
by almostsane
Thu Jan 15, 2004 8:17 am
Forum: PHP - Code
Topic: replacing text in user input.
Replies: 7
Views: 871

for some reason, str_replace will not work <? $NetCode = array("[Link:","#", "]"); $Actual = array("< a href = ",">","</a>"); $string = "a link will be like this [Link: index.php # Home ] "; $new = str_replace( $NetCode, $Actual, ...
by almostsane
Thu Jan 15, 2004 5:55 am
Forum: PHP - Code
Topic: HTML form, PHP uploads and file corruption
Replies: 4
Views: 1160

but can we see the code
by almostsane
Thu Jan 15, 2004 5:19 am
Forum: PHP - Code
Topic: replacing text in user input.
Replies: 7
Views: 871

replacing text in user input.

ok what i wanna do is to take a user-inputed plock off text, and before writing it to the DB, check for a certain combo of characters and replace them

eg...

i want it to replace

Code: Select all

:Url:news.php:news:
with

Code: Select all

<a href = news.php >news</a>
does anyone know how to do this
by almostsane
Sun Jan 11, 2004 6:01 pm
Forum: Databases
Topic: mySQL updating one field
Replies: 7
Views: 820

yeah i realised after i went to bed you could just use

[mysql_man]

update table set imagefield = 'FOO.gif' where imagefield = 'BAR.gif'

[/mysql_man]
by almostsane
Sun Jan 11, 2004 8:41 am
Forum: Databases
Topic: mySQL updating one field
Replies: 7
Views: 820

using PHP, <?php $db = mysql_pconnect("hostname", "username"); mysql_select_db("database"); $result = mysql_query("select * from tablename"); //get exact number of rows $row_num = mysql_num_rows($result); for ($i = 0; $i < $row_num; $i++) { $query = "upda...
by almostsane
Sat Jan 10, 2004 3:26 am
Forum: PHP - Code
Topic: Variable issues
Replies: 1
Views: 300

Variable issues

have been teaching myself PHP for the last few months. well anyway, i've recently gotten a new PC and have installed PHP to run on IIS. on my old PC I had PHP running on apache. Now i want to have a search page with a form in it. the problem i am having is that it will not reconise the fields form t...