Search found 31 matches

by Little Spy
Sat Jul 26, 2003 7:15 pm
Forum: PHP - Code
Topic: Page should be stoping input
Replies: 1
Views: 307

Page should be stoping input

i have the target to a form (registration form setup like this) <?php //Some standard checks if (strcmp($_POST['password'], $_POST['cpassword']) != 0) header("Location: error.php?errno=4"); if (strlen($_POST['username']) < 3 || strlen($_POST['username']) > 18) header("Location: error....
by Little Spy
Fri Jun 06, 2003 5:39 am
Forum: PHP - Code
Topic: who is online
Replies: 5
Views: 679

im using this in one of my scripts you will need to adapt it of course but here is how I do it <?php // Stuff For Users Online (its here so users online information is recorded on every page) $timeout = 5*60; //minutes (* 60) until user 'times' out $date = time(); //now $time_minus_timeout = $date -...
by Little Spy
Sun Jun 01, 2003 7:26 pm
Forum: PHP - Code
Topic: parse php in template
Replies: 1
Views: 403

parse php in template

I have a class that parses template files I have by opening them like <?php implode("", (file($this->template))); ?> doing some of this and that in between and finally echoing out the file if I wanted to have a php statement in that file like <?php include "this.html"; ?> how cou...
by Little Spy
Sat May 24, 2003 9:45 pm
Forum: PHP - Code
Topic: problem with a class
Replies: 4
Views: 793

it just has variables in it, i am sure what you mean by just include them
by Little Spy
Sat May 24, 2003 9:21 pm
Forum: PHP - Code
Topic: problem with a class
Replies: 4
Views: 793

problem with a class

i have a class for my html template, in there is a function like this // Other file $online_string = "1,2,3,4,5,6"; etc..... <?php function CreatePage() { if ($GLOBALS[online_string]) { $this->SetParameter("online_string", $online_string); $this->SetParameter("online_list&qu...
by Little Spy
Mon Apr 14, 2003 7:53 pm
Forum: PHP - Code
Topic: Help with SQL & PHP
Replies: 1
Views: 312

Help with SQL & PHP

hi, for my new script I am going to be using the phptxt database API (if any of you are familar with it)

my question is how could I go about doing something like mysql_num_rows using just a select statement, as there is no support for mysql_num_rows just query execution.
by Little Spy
Mon Apr 07, 2003 7:37 pm
Forum: PHP - Code
Topic: Personal server that run XML, PHP and mySQL
Replies: 13
Views: 1133

and you dont need to install xml, xml doesnt really get installed its like html you use it
by Little Spy
Mon Apr 07, 2003 1:19 pm
Forum: PHP - Code
Topic: XML instead of mySQL
Replies: 2
Views: 1006

thank you very much but before I try to dive into this on my own has anyone used XML like I am trying to use it?
by Little Spy
Sun Apr 06, 2003 10:06 pm
Forum: PHP - Code
Topic: XML instead of mySQL
Replies: 2
Views: 1006

XML instead of mySQL

I have a script I am creating to manage news. I will be publicly releasing this and I want to give users the ability to choose mysql for datastorage. I have heard about people using XML in the same way as an SQL database for things like validating users' passwords and anything else that would be in ...
by Little Spy
Sat Apr 05, 2003 7:46 pm
Forum: PHP - Code
Topic: sessions problem (passing sessionid)
Replies: 1
Views: 277

sessions problem (passing sessionid)

I would like session id to be passed to the next page always by the url rather than a cookie. I know that is a feature in the php config to do it automatically. Is their a way to do it automatically even if its not set in the php config? Or a way to turn it on only for my script?
by Little Spy
Sun Mar 30, 2003 4:48 pm
Forum: PHP - Code
Topic: Error With File Functions
Replies: 1
Views: 549

Error With File Functions

Warning: fopen(db/entries.xml) [function.fopen]: failed to create stream: Permission denied in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 76 Warning: fputs(): supplied argument is not a valid stream resource in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 77 Warning: fclose(): supplied argu...
by Little Spy
Wed Feb 12, 2003 7:22 pm
Forum: PHP - Code
Topic: How some people can actually see the php source of i page!
Replies: 17
Views: 2607

anyone actually know how to the php source of a page?
by Little Spy
Sun Feb 02, 2003 5:59 pm
Forum: PHP - Code
Topic: how to create missing fields message for a form
Replies: 8
Views: 1739

something i dont think a lot of php programers notice is that register_globals is enabled on 99% of webservers
by Little Spy
Sun Feb 02, 2003 5:48 pm
Forum: PHP - Code
Topic: displaying sorted data
Replies: 1
Views: 311

displaying sorted data

Does anyone know of a good method for sorting things by letter. I have a script with many reviews of different shows in it. I would like to be able to sort them a-g, h-j, k-m (you get the picture) i came up with this method $query = reg_query("SELECT * FROM reviews ORDER BY name ASC"); // ...
by Little Spy
Sat Feb 01, 2003 9:40 pm
Forum: PHP - Code
Topic: prob with strpos
Replies: 4
Views: 986

alright with your help I got it to work with this argument if (substr($data&#1111;'name'],0,1) == $split) break; but i have been interduced to a new simple prob i didnt want to start a whole new thread for let's say $data['name'] is equal to "Choose This" and $split is equal to c how c...