Re: [PHP] php teleprogramming -- How to avoid being ripped off ?

2002-11-22 Thread Justin French
ly don't know when I'm going to work again ... > > __________ Omni > ICQ#: 37031810 Current ICQ status: + More ways to contact me > __ > Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FAQ a good idea?

2002-11-22 Thread Justin French
Ahhh -- now i get ya!! Many thanks! Justin French http://Indent.com.au Web Development & Graphic Design it's right now :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Justin French
HP will use cookies if possible, or else append it to the URLs. What sort of stuff are you storing in the session that your are worried about with too many writes? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP G

Re: [PHP] Parse URLs

2002-11-24 Thread Justin French
user typed in > contains any of the emotes in the table then replace them with the correct > replacement? Also, how could I then limit how many are in the post? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP Genera

[PHP] quick sanity check on user management / sessions

2002-11-24 Thread Justin French
ago, so my guess is "inexperience" :) TIA Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick sanity check on user management / sessions

2002-11-24 Thread Justin French
all necessary data, including last login, user rights, etc > etc, from the DB, sometimes updates a user cookie, depending on the app. DB > is checked only once. > Justin French http://Indent.com.au Web Development & Graphic Design -- P

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Justin French
like >>> register_globals = ON/OFF at runtime (within our php script). >>> Is there any function built-in in php?, or can we do it ourselves. >>> >>> Looking forward, >>> Thanks >>> >>> Tariq >>> >>> >>> >>

Re: [PHP] Sessions/Browser back button

2002-11-25 Thread Justin French
rowser. This may or may not help, depending on your problem :) Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Linux Question

2002-11-25 Thread Justin French
things like font-size: larger font-size: 150% font-size: 1.5em rather than 12px or 12pt But we're getting OT rapidly. Try the CSS newsgroups -- I like this one: comp.infosystems.www.authoring.stylesheets Cheers, Justin Justin French http://In

Re: [PHP] Re: BBCode?

2002-11-25 Thread Justin French
something [b]bolder[/b] something[/i], since and > aren't valid HTML, can't see why they'd have been adopted by BBcode. Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (htt

Re: [PHP] Linux Question

2002-11-25 Thread Justin French
on 26/11/02 11:04 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: > On Mon, 2002-11-25 at 18:26, Justin French wrote: >> on 26/11/02 2:41 AM, Brian V Bonini ([EMAIL PROTECTED]) wrote: >> >>> Also, try to use relative sizes, if you use fixed sized like 10pt. you >>>

Re: [PHP] Do i need triggers for this?

2002-11-25 Thread Justin French
ing records with the employeeID of '15'. So, yes, I'd do this at an application level... although I have no idea what triggers are :) Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] store images in mysql tables

2002-11-26 Thread Justin French
using php , is it > possible if yes then pl show me where i can read more > about it Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Linux Question

2002-11-26 Thread Justin French
Yes, we are way off topic. You offered a solution, and it rang warning bells for me from an accessibility P.O.V... yes, I miss-quoted the spec, but yes, i'm right about IE, and almost every developer using px should be very worried for quite some time, until it gets addressed. Cheers, Justin

Re: [PHP] How do i provide Download facility ??

2002-11-26 Thread Justin French
sh to count the number of downloads, or something else?? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Invalid Charactors in a string.

2002-11-26 Thread Justin French
gt; But you know they are there. > > * > > ICQ#: 20482482 > MSN ID: [EMAIL PROTECTED] > Yahoo: [EMAIL PROTECTED] > AIM: newmanpjkiwi > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting files in directory

2002-11-27 Thread Justin French
e's an optional second parameter for asort() and rsort(), so check it out in the manual... it *may* be needed to get what you want. Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://

Re: [PHP] ignoring client supplied session data

2002-11-27 Thread Justin French
ow "ignoring" cookies :) Perhaps a further step is to call something like unset($_COOKIES) at the top of every script... but I'm not sure how unset() works with the super global arrays. Justin French http://Indent.com.au Web Development & Graphic Design

Re: [PHP] Password Script

2002-11-27 Thread Justin French
es a day) I'd be > greatful. > > Thank you! Please try and make your replies detailed so I can understand > them ^_~ Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] printing screen without the print dialog

2002-11-27 Thread Justin French
this possible? > > Duky > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File handling

2002-11-28 Thread Justin French
do i search a file for the word "foo", and delete everything in the file AFTER the word "foo" ?? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File handling

2002-11-29 Thread Justin French
is to read the file into a variable, split the var on "foo", and rewrite the file out. 1. Totally untested code, but most of it was lifted out of the manual in some way or another. 2. Permissions of the file to be read/written will need to be correct 3. I've included no error repo

Re: [PHP] array with session

2002-11-29 Thread Justin French
n.php > > session_start(); > session_register("Image"); > > $count = count($Image); > for ($i=0; $i<$count; $i++) > { > echo $Image[$i]; > } > > //I also tried that > /*foreach ($Image as $i=> $Img) > { > $Img == $Image[$i]; > echo $I

Re: [PHP] Page break

2002-11-30 Thread Justin French
cument so that it becomes > more printer friendly. > > thanks > lars > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date problem

2002-12-01 Thread Justin French
timestamp? Unix Timestamp? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cache caches anyway, regardless

2002-12-02 Thread Justin French
r (do a traceroute), althoguh in this case it sounds like you're talking about a LAN. I don't *think* Apache caches anything by itself. Of course changing the filename will ensure you aren't using a cached copy :) Justin French http://

Re: [PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Justin French
But all the Windows encryption utilities I can find use proprietary > file formats - none can decrypt the string output by mcrypt. Can > anyone help me out here - I am running out of time. Either an open > source or a commercial solution would be fine. Justin French --

[PHP] easiest way to get 1st and last dates of the month?

2002-12-02 Thread Justin French
floating around? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hiding php

2002-12-02 Thread Justin French
> > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] easiest way to get 1st and last dates of the month?

2002-12-02 Thread Justin French
Thanks for pointing out the obvious !!! -- it's been a long day! Justin on 03/12/02 4:52 PM, rija ([EMAIL PROTECTED]) wrote: > How about date("t") ? > It's supposed return the last day of a month (28 - 31). > > - Original Message - > From: "

Re: [PHP] need advice on template engine

2002-12-03 Thread Justin French
> > Alexander A. Savenkov > System Administrator > mailto:[EMAIL PROTECTED] > JSC "Terminal GMB" > http://www.terminalgmb.ru > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing L

Re: [PHP] Prevent storing data when reload

2002-12-03 Thread Justin French
ly inserted once... so, if they hit "refresh", you'll know that the form has already been submitted, and the data already inserted, so don't insert it again :) Cheers Justin French http://Indent.com.au Web Development & Graphic Design

Re: [PHP] Cold Fusion conversion issues: app vars and cachedqueries

2002-12-03 Thread Justin French
h CF, so I can't address your exact issues, but I know that there are thousands of large enterprise sites running PHP (yahoo for example), so there MUST be a way to achieve everything you need. Justin French http://Indent.com.au Web Development & Graphic D

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
ppears to me that they are not unless I am really missing the point. > > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
o scripts that >> are included into the main script? >> >> It appears to me that they are not unless I am really missing the point. >> >> >> > Justin French http://Indent.com.au Web Development & Graphic Design --

Re: [PHP] Creating dynamic names for images

2002-12-04 Thread Justin French
to worry about if this > name exists and with out having to got to the trouble of asking the user > to change tha name of the file. > > So dose some one have a nice litle solution for this problem. > > Thanks, David > > Justin French http://Indent

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
Oops I screwed up :) Justin on 05/12/02 1:28 AM, Marco Tabini ([EMAIL PROTECTED]) wrote: > Are you sure? I thought $_SESSION was a superglobal. > > > Marco > > On Wed, 2002-12-04 at 09:15, Justin French wrote: >> Good point -- are the included files f

Re: [PHP] request for help/advice (xml/php content management)

2002-12-04 Thread Justin French
t Samuel White > eNetwizard Technical Services > 284 Walnut > Highland, Michigan  48357 > +1 (248) 889-6363 > www.rswfire.com > www.enetwizard.net >   > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] formating numbers & date

2002-12-04 Thread Justin French
> www.gremlins.biz >> Open Source Software Systems Integrators >> * Web Design & Hosting * Internet & Intranet Applications Development * >> >> /* >> Information Processing: >> What you call data processing when people are so disgusted with >> it they won't let

Re: [PHP] querystring and PHP 4

2002-12-04 Thread Justin French
sed. > I can't imagine this changed from version to version. > > Is he missing something in his install? > > thanks, > > -Dan > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: querystring and PHP 4

2002-12-04 Thread Justin French
re secure scripts with register_globals = Off, so it's worth considering leaving it as-is, and updating your code (and production server). Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing

Re: [PHP] formating numbers & date

2002-12-04 Thread Justin French
on 05/12/02 11:15 AM, Justin French ([EMAIL PROTECTED]) wrote: > Hi, > > $date = '2002-12-04 23:21:49'; > $newdate = date('m/d/Y', strtotime($date)); > echo $newdate; > ?> Whooops, forgot the time bit! Should be echo's 12/4/2002 11:2

Re: [PHP] formating numbers & date

2002-12-04 Thread Justin French
;, substr( $Date, 8, 2 ), '/', > substr( $Date, 0, 4 ), ' ', $Hour, substr( $Date, 13, 6 ), $AMPM; Isn't this a little simpler? There's always more than one way to do something I guess :) Justin French http://Indent.com.au Web Development &

Re: [PHP] formating numbers & date

2002-12-04 Thread Justin French
only do it once, but it can add up in a loop. very good point :) Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL ?

2002-12-05 Thread Justin French
(and mysql) sites before posting. Justin on 06/12/02 3:08 AM, hacook ([EMAIL PROTECTED]) wrote: > I am really sorry but i can't find any good mySQL good mailing list... > > How can i make a little php function to check if a table exists ? > > Thanks a lot,

Re: [PHP] String to an Array

2002-12-07 Thread Justin French
> > $str ="im the one trying to do this"; > > //this is the string > > I'd like to get an array that I can access something like $array[0] and > get the value " i ". And this foward. Anyone have any clues on this? > > Thanks, > Rodrigo

Re: [PHP] Question about displaying directories and files

2002-12-07 Thread Justin French
r' script includes the spitout > of files and then link to them? > > ___ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > Justin French http://Indent.com.au Web Development &

Re: [PHP] Just Curious

2002-12-07 Thread Justin French
: > I was just curious, but what program or website do you all use to view and > reply to the newsgroups with ? > > Lee > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (h

Re: [PHP] Question about Trim

2002-12-07 Thread Justin French
you type that in, but won't actually > remove an (enter). Thanx for your help in advance. > > -Dade > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.co

Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Justin French
some cookie somewhere, my question is > where is it? > I'm so confused right now... > Thanks for any help. Sorry again. > > __________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com

[PHP] date() on two diff. servers

2002-12-08 Thread Justin French
yes? What could be causing this difference? What should I talk to my host about, or look for? Thanks, Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Justin French
2002 22:13:09 be the same on every server? My rationale for this is that no matter where you are in the world, it is always a certain number of seconds since 01-01-1970 00:00:00. Perhaps strtotime() is NOT running off GMT, and perhaps date() is... there has to be SOME confusion there -- eith

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Justin French
erver currently is, or for a specific timezone for a specific project (eg this current one, which is basing it's dates on Sydney, Australia. Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List

Re: [PHP] date() on two diff. servers

2002-12-09 Thread Justin French
es you can 'do the math' for either the server's TZ or (if you're > really masochistic (?is that the word?)) the browser-client's local time. > The 'silver lining' is that you can now easily accommodate temporal > input/presentations to/from anyone, anywh

Re: [PHP] How know from wich page you came from

2002-12-10 Thread Justin French
gt; I wanna put in a php file a switch to do a certain action if the visitor > came from a certain page, and something else if he came from a diferent > one, this way I could write, update, insert, delete or anything I need > from a single file. > > Thanks for any kind of input,

Re: [PHP] How know from wich page you came from

2002-12-10 Thread Justin French
on 11/12/02 12:32 AM, Jon Haworth ([EMAIL PROTECTED]) wrote: > echo $_SERVER["HTTP_REFERER"]; not all browsers / useragents set this, so you can't *rely* on it. Justin French http://Indent.com.au Web Development & Graphic Design

Re: [PHP] Report Viruses

2002-12-10 Thread Justin French
anks, > Stephen Craton > http://www.melchior.us > > "What is a dreamer that cannot persevere?" -- http://www.melchior.us Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Justin French
lse does PHP offer? Are there any other methods? Can I define these vars > as some kind of "global variables" in any > ini-file? > > THX for your support! > > Stefan. > > Justin French http://Indent.com.au Web Development & Graphic Des

Re: [PHP] fgetcsv Help

2002-12-11 Thread Justin French
hey will not have a comma in between them. > This seems like a while lot of work.. > > Ideas? > > Rick > > A wise women once said: " No one can help everybody, but everybody can help > somebody." - Unknown > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading pre-extension file

2002-12-12 Thread Justin French
:40 AM, Luca ([EMAIL PROTECTED]) wrote: > How to read "pre-extension" of file with regular expression? > Example: name.preextension.doc > > I need to read "preextension" > > Tanks! > > Justin French http://Indent.com.au Web Development

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Justin French
- and after it and put them for > example in array. The purpose of this is to read trough mp3 files which > are in the form of artist - song.mp3 and put them into a text file so I > can put them into mysql db. > > antti > Justin French http://Indent.com.

Re: [PHP] Problems with text files from a Mac

2002-12-14 Thread Justin French
does not work. > Has anyone found a good solution for dealing with Mac files? > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A little regex help

2002-12-14 Thread Justin French
sure this can be done with > 1 ereg statement. Here is my code > > $ms = "http://support.microsoft.com/default.aspx?scid=kb;en-us;";; > > > if (ereg("(\[See )([Q|q][0-9]+)( for more information\])", $name)) > { > $sp = split("\[See &

Re: [PHP] migrating from register_globals on to off

2002-12-14 Thread Justin French
b) add something to our current setup so that when a scripts is executed and > uses the register globals functionality, we get a notification > automatically? > > Any suggestions? > Thanks! > > > Justin French http://Indent.com.au Web Development

Re: [PHP] question

2002-12-14 Thread Justin French
s working Fine, Apache also. > > but when i insert the 2 or 3 lines " Load module etc." the server will shut > down > > can somebody help me please ? > > ricardo > > > Justin French http://Indent.com.au Web Development & Graphi

Re: [PHP] Session: I RTFM

2002-12-14 Thread Justin French
;familyname"); >> $familyname = $_POST["familyname"]; >> echo "Yay: \$familyname= $familyname"; >> } >> >> if (isset($_SESSION["familyname"])) >> { >> $familyname = $_SESSION["familyname"]; >> echo "yay session works, \$familyname= $familyname"; >> } >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > -- > John Taylor-Johnston > - > "If it's not open-source, it's Murphy's Law." > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ > - Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php setup

2002-12-16 Thread Justin French
problem but most of the scripts giving the 'Variable not defined problem > and the images where in other folders and referenced in the php page like > /images/picture.gif and /includes/template1.inc. Is there something I need > to look at in my config file? > > Thanks, > Edd

Re: [PHP] invoking the PHP engine on a single .html file

2002-12-16 Thread Justin French
ile? I mean, I know I can ask PHP politely to treat every .html file as > a PHP file, but it will slow down the whole server. Can the PHP engine > be invoked locally (by folder) or preferably on a single file? > > Thanks, > > Krzysztof > > Justin French ---

Re: [PHP] selecting img file extension.

2002-12-16 Thread Justin French
to true.so to speak, and leave gif and swf > false. > > My image source might be (i know the coding will be wrong) src="images/?title? . ?ext?"> (cheetah.jpg). > > Cheers > > > -- > PHP General Mailing List (http://www.php.net/) > To uns

Re: [PHP] Number of sessions

2002-12-17 Thread Justin French
o count how many sessions are opened on a PHP web site? > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2002-12-17 Thread Justin French
te: > How can I change the values of session variables > (session_register('variable');) in a session. Do I just > unset($variable); and do session_register() again and give it a new > value. I tried this and it seems that it doesn't work. > > Antti >

Re: [PHP] if question

2002-12-17 Thread Justin French
> > Can anyone tell me why this doesn't seem to work ?? > > if (($stelle_who != '1') OR ($stelle_who != '2') OR ($stelle_who != '3') OR > ($stelle_who != '5') ) { > > and what can i use as an alternative syntex ?? > > th

Re: [PHP] if question

2002-12-17 Thread Justin French
Oooops -- forgot to mention -- you might want AND not OR or ||... and some other posts have hinted that OR does work... Justin on 18/12/02 12:30 AM, Justin French ([EMAIL PROTECTED]) wrote: > Not sure if 'OR' works... I use a double pipe/vertical bar ('||') for 

Re: [PHP] session variables

2002-12-18 Thread Justin French
quot;... what are you trying to do? page1.php click to go to page 2 page2.php The value of $_SESSION['today'] is . This code assumes you either have trans-sid compiled OR are allowing cookies on your browser AND cookies is a method that PHP sessions use (it is by default) in p

Re: [PHP] Empty textfield

2002-12-18 Thread Justin French
> thanks for your help > > Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] repeat region

2002-12-18 Thread Justin French
nd of the results. > > Is this at all possible?? Difficult?? > > Is there a project or a tutorial with an example I can draw from.?? > > Cheers > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Random include???

2002-12-19 Thread Justin French
Hi, untested code adapted from a random image thing I have... this works by checking the files in a directory and picking one at random. The other option is to keep all your include file paths in an array: The difference between the two options is *obviously* a few more lines of cod

Re: [PHP] Good program to indent large quantity of files?

2002-12-19 Thread Justin French
on 20/12/02 4:04 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: > Thanks, but that's not what I'm looking for. I already have a good php > editor, what I'm looking for is something to indent exsiting files. ... so open them up in the editor, indent them, save them, continue using your old editor.

Re: [PHP] Alternating Links

2002-12-19 Thread Justin French
There was a post on a similar thing the other day, and about once a week for the past few years :P Quick (untested) example: '; } echo "{$myrow['link']}"; if($i == 2) { echo ''; $i = 0; } } ?> This is easily adaptable to three (or more) columns by changing the last if() statement..

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread Justin French
don't filter the quotes... escape them with add_slashes() justin on 20/12/02 10:50 PM, ªüYam ([EMAIL PROTECTED]) wrote: > as title that I'm getting a trouble on filtering the single quote ' , since > there would be error when storing those string into MySQL, thus, i have to > find the appropria

Re: [PHP] login

2002-12-20 Thread Justin French
You really need to check out sessions. 1. user logs in by a form 2. php validates the login, checks for a valid uid/pwd 3. if valid, sets a session variable like $_SESSION['uid'] 4. you put session_start() at the top of each page, and php will know that they are logged in as "justin" or whatever.

Re: [PHP] Is there any method to filter the single quote fromastring?

2002-12-20 Thread Justin French
ic quotes is probably enabled in your php.ini file. Justin > "Justin French" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > don't filter the quotes... escape them with add_slashes() > > justin > > on 20/12/02

Re: [PHP] Which one to use..

2002-12-22 Thread Justin French
I use: if(eregi('index.php', $_SERVER['PHP_SELF'])) { include('welcome_thing.txt'); } although it'd be quicker without the eregi() call, as long as you knew the full value that PHP_SELF would return. Cheers, Justin on 23/12/02 11:30 AM, Peter Houchin ([EMAIL PROTECTED]) wrote: >

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Justin French
Both of those classes would already exist on a site like phpclasses.org... do you have to BUILD them, or do you NEED them? Justin on 23/12/02 11:43 AM, Davy Obdam ([EMAIL PROTECTED]) wrote: > Hi people,. > > I have to build several classes for a project i am doing, but i am quite > new to OOP

Re: [PHP] Flushing image from database to browser - how to get itcached??

2002-12-23 Thread Justin French
image.php needs to send appropriate headers for caching... of course, i have no idea what they are, because i've never done dynamic images :) don't *think* mod rewrite will affect/help anything here. Justin on 23/12/02 6:35 PM, Tim Molendijk ([EMAIL PROTECTED]) wrote: > Hi all, > > I'm storin

Re: [PHP] md5()

2002-12-23 Thread Justin French
You reset the password to something new... either manually (a person) or with a self-help script. md5 is one way encryption. Justin on 24/12/02 12:38 AM, Edward Peloke ([EMAIL PROTECTED]) wrote: > I don't want to store my users passwords in the db as clear text so I know I > can use md5(). B

Re: [PHP] Date Subtraction

2002-12-23 Thread Justin French
okay, this is just me thinking out loud... none of this is tested... basically, - take the string - get rid of the last 3 chars (eg .75) - split on ' days, ' - split the 2nd half on ':' - multiply each bit (days, hrs, mins) by the appropriate no of seconds - add it all together to get a number

Re: [PHP] Formatting text output

2002-12-25 Thread Justin French
What does the database table(s) look like? I don't understand what '0045' and '2354' are -- are they student no's? Better questions get better answers :) Justin on 26/12/02 12:03 PM, menezesd ([EMAIL PROTECTED]) wrote: > Hello friends. > > I work for a school where we need to put the clas

Re: [PHP] rounding...sort of

2002-12-28 Thread Justin French
php.net/floor OR Justin French on 28/12/02 8:49 PM, Peter Lavender ([EMAIL PROTECTED]) wrote: > Hi everyone, > > I have a nubmer: 4.1 but I only want the whole number 4, even if it's > 4.9, so this rules out using round (Unless I missed a parameter). > > How could

Re: [PHP] Populating a list box from a database

2002-12-28 Thread Justin French
SHOW US SOME CODE!!! none of us are mind readers... either copy a few lines from the HTML source in IE, or from the PHP script. Justin on 29/12/02 4:03 AM, Denis L. Menezes ([EMAIL PROTECTED]) wrote: > Hello Friends, > > Two days ago I had asked how to do this. Thanks for the replies. > > I h

Re: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Justin French
on 31/12/02 5:54 PM, electroteque ([EMAIL PROTECTED]) wrote: > hi i've just started a job and they are sadly using php3 , what is the work > around for the session handling limitation ? i have an authentication class > which will not work now beause it cant handles sessions :| I don't think ther

Re: [PHP] Alternatives for Meta Refresh

2002-12-31 Thread Justin French
on 31/12/02 2:48 AM, Stephen ([EMAIL PROTECTED]) wrote: > I'm writing a PHP chat script and I'm rather stumped on this. I either want > the chat window to refresh when there's a new message or refresh every few > seconds but not with meta refresh, rather something with less noise (the > infamous I

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Justin French
t in a new window which is auto-closed when the user logs out... this way there is no hope of clicking back. Yes it requires javascript, which means you have to think hard about ignoring a % of your users. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get folders names in a dir

2003-01-01 Thread Justin French
on 02/01/03 9:36 AM, Alexander Guevara ([EMAIL PROTECTED]) wrote: > i need to get in a select box all the dirs inside a folder.. how can i do > that? Give this a whirl. Please note, this code is very much slapped together... it works, and i've tested it, but there's nearly ZERO error checking.

Re: [PHP] Using mail() for mailist list app

2003-01-01 Thread Justin French
Check the archives... mail() tends to "break" pretty quickly... sometimes on less than 100 personalised emails... The issue ISN'T mail() itself, but things like server timeouts, script timeouts, etc etc. The issue also isn't really HTML mail, but more the fact that each email has to be sent to th

Re: [PHP] Session problem

2003-01-01 Thread Justin French
cookies on your browser??? > session_register_var.php change your script to: Click here to go to the next page"; ?> > and > show_session_var.php change this script to: lemme know how you go Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:42 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: > You don't need to accept cookies for sessions. That's the beauty of it. > PHP automatically appends ?PHPSESSID=$sessid to URLs. only if you compile with trans_sid (he didn't) or if you physically add the SID to each LINK (whi

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:55 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: > Most it is HTML output... But If I'm not mistaken... and I might be... but > wasn't this a thread that started about securing web pages? > So basically I gave him my solution to it. And I didn't charge the $150/hr > consult

Re: [PHP] help with script!!

2003-01-01 Thread Justin French
on 02/01/03 7:54 AM, Karl James ([EMAIL PROTECTED]) wrote: > can someone take a look at this > and see why this wont work. why don't you start by telling us what's wrong, or HOW it "doesn't work"? Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Sessions & Security

2003-01-02 Thread Justin French
Hi, There's actually another thread on this topic at the moment... quick summary: 1. you can't rely on the IP address 2. you can't rely on the referrer It's been suggested on the list that you could record the user agent into the session, and check against that -- keeping in mind that the user a

  1   2   3   4   5   6   7   8   9   10   >