[PHP] Comparing Data

2002-08-13 Thread Justin
Hello all, I've run into a problem and there has got to be a way to do this. I'm searching a mysql table and finding all rows that have the same ID. I need to output that ID, but I only want it to print once. Any help would be greatly appreciated! Justin

RE: [PHP] Comparing Data

2002-08-13 Thread Justin
d after time (I'm assuming)... Any other possibilities out there? Thanks again. Justin At 11:17 AM 8/14/2002 +1000, you wrote: > -Original Message- > From: Justin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 14 August 2002 10:52 AM > To: [EMAIL PROTECTED

[PHP] I will not eat them Sam-I-Am

2001-08-15 Thread Justin
If I dump something out from phpMyAdmin like this: INSERT INTO database VALUES( 'bill's bowtie'); and then I want to feed it back into phpMyAdmin it gives me an error. Basically, it's confused by the middle apostrophe. So how can I dump this statement back into phpMyAdmin other than by manually

[PHP] Green eggs and Magic Quotes

2001-08-16 Thread Justin
Let's see if I can elaborate a little on my previous problem... I work with 3 ISPs, 2 of which have Magic Quotes turned off (can someone tell me why an ISP would want to have magic quotes turned off???). If I feed a large dump from one database into another (using phpMyAdmin) then on the one wit

Re: [PHP] web testing

2005-03-01 Thread Justin
Check out http://www.badboy.com.au/ http://httpunit.sourceforge.net/ and http://jakarta.apache.org/jmeter/index.html ... Justin blackwater dev wrote: Hello, I have a very large php web app and I am curious as to what others are using for testing. I know I can use simpletest to test at the code

[PHP] Advice for Experienced web developer newish to PHP

2005-01-09 Thread Justin
Hi all, I'm a experienced web programmer, that is taking on a PHP project. I'm really looking to get the tricks and tips that come with experience, the lazy way :-) Project Overview Its basically a corporate info website, with an admin section to add/change content. It will have several top level s

Re: [PHP] php editor

2005-01-13 Thread Justin
Bret Hughes wrote: I am interested to hear what other folks are using. Bret Since I do Java, Python etc. on OSX/windows/Linux, I'm using Eclipse with the PHPEclipse (PHPEclipse.de), I'm just starting PHP, but I'm pretty happy with it so far. One thing I am wondering about is the situation which

Re: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Justin
Jochem Maas wrote: Phpu wrote: Hi, I need to create multiple categories and subcategories using php and mysql. Something like that its bad practice to state the technology that must be used before you have determined the scope and function of the problem, besides you have to know whether php an

Re: [PHP] Get full url

2005-01-24 Thread Justin
Dmitry wrote: in Re: [PHP] Get full url How? Dont tell me about simple solutions such as $_SERVER["HTTPS"] . $_SERVER["REMOTE_ADDR"] . $_SERVER["SERVER_PORT"] . $_SERVER["PHP_SELF"] . $_SERVER["QUERY_STRING"] I want get really good solution. What does that even mean? Possibly SCRIPT_URI + '?' + Q

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

2002-11-22 Thread Justin French
e your chances of seeing that money again, or the code. Good luck, Justin on 23/11/02 12:54 PM, Axis Computers ([EMAIL PROTECTED]) wrote: > Hi to all fellow collegues, > > Here is the story, a while ago I've signed an NDA with a company from Los > Angeles, the agreement was

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
posting please! Justin on 25/11/02 5:00 AM, Stephen ([EMAIL PROTECTED]) wrote: > Thanks! Just one more question. I also want to replace emoticons, such as > :-), :), or ;-), that are stored in a table. The structure is this: id, > emote, replace. How could I check to see if the text the

[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, J

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
Hi, if(!preg_match("/^[a-z0-9_]*$/", $username)) { // the string contained a char other than a-z, 0-9 and _ (underscore) } Season to taste :) Justin on 27/11/02 6:18 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > Where should i start, tips wanted. > > I

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
Is this a password reminder script? Or a 'guessing'/knowledge game to get access to a certain page? Justin on 28/11/02 4:52 AM, Vicky ([EMAIL PROTECTED]) wrote: > I'm looking to code a script that does the following. Please bear with me as > I'm a total novice at

Re: [PHP] printing screen without the print dialog

2002-11-27 Thread Justin French
... and impossible without the print dialogue. PHP is server-side, not client-side. Justin on 28/11/02 9:29 AM, Duky Yuen ([EMAIL PROTECTED]) wrote: > I am having this problem, I want to print something directly to my printer > without having that print dialog. What to do know? Is

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
on 29/11/02 7:06 PM, Jeff RingRose ([EMAIL PROTECTED]) wrote: > Justin, > Option b. delete all AFTER "foo", I.E. truncate the file directly after > "foo". Leaving "foo" and all the data before "foo" untouched. And what happens if there are more

Re: [PHP] array with session

2002-11-29 Thread Justin French
Image'])) { echo $Image[$i]; $i++; } ?> Justin on 29/11/02 11:58 PM, Laurence ([EMAIL PROTECTED]) wrote: > > hello everyone, > > I'm trying to get some images value from a checkbox putting them in a session > to preserve the data. The array works p

Re: [PHP] Page break

2002-11-30 Thread Justin French
This is totally not PHP related. There is a page-break: before; (or similar) in CSS, so I suggest you go look around some CSS sites... like the W3.org. Justin on 01/12/02 5:26 AM, Lars Espelid ([EMAIL PROTECTED]) wrote: > Hello, > > Is there some way to insert page breaks in a php do

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
Why not just make up an extension, like your initials (.lsb) or your business name (.dim or .dni), and set-up apache to pipe all those files through PHP...?? That way they'll have no clue at all (if used in conjunction with the "hide PHP" stuff, etc etc). Justin on 03/12/02

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
As long as session_start() is called BEFORE the included files, I can't see why not. Justin on 05/12/02 12:11 AM, Andy Kirk ([EMAIL PROTECTED]) wrote: > Can anyone tell me if session variables should be available to scripts that > are included into the main script? > > It a

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
file_exists() may be enough... if a file with that name already exists, you could append something to it, like a random number, and try again. Ypu certainly don't have to ask the user to rename the file... YOU should be in charge of naming it. Justin on 05/12/02 3:48 AM, Davíð Örn Jóhannsson ([

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
Hi, Should do the trick -- although I haven't stripped out the leading 0 in either the day or month, hence it will echo 12/04/2002, not 12/4/2002. Season to taste, Justin on 05/12/02 10:58 AM, Jeff Bluemel ([EMAIL PROTECTED]) wrote: > I'm displaying a date that I get fr

Re: [PHP] querystring and PHP 4

2002-12-04 Thread Justin French
1. use $_GET['id'] rather than $id OR 2. turn off register globals in php.ini, or at a per-directory level with a .htaccess file 3. you should have searched the archives first 4. this question gets asked almost daily Justin on 05/12/02 11:01 AM, Dan Wade ([EMAIL PROTECTED]) wrote

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
ar, I don't think you've shown a need for the string to be converted to to an array... Justin on 06/12/02 5:50 AM, Rodrigo de Oliveira Costa ([EMAIL PROTECTED]) wrote: > Hi guys, I got a string that I need to be transformed into na array of > characters, something like: >

Re: [PHP] Question about displaying directories and files

2002-12-07 Thread Justin French
d.com/codex.php?CID=283). Cheers, Justin on 07/12/02 4:58 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi. I have studied the manual, and have scripts that indivudually display a > directory (or list of them) and a script that displays scripts in a folder > However, I am curious as

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
7;s the problem? Justin on 08/12/02 5:28 PM, Dade Register ([EMAIL PROTECTED]) wrote: > Hey... I have a question about trim. I don't know if > trim() is the right funtion to use, but here is my > problem. > > I am recieving a textarea input from a form and > writing i

Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Justin French
ts on the user's computer, you use the $_COOKIE array. To assign values to a session, you use the $_SESSION array (which associates a php session id (stored/carried by the user) with a bunch of session vars/values stored on the server). Justin on 08/12/02 10:17 PM, Douglas Douglas ([EMAI

[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
difference... but when I added 86400 to the stamp, it all worked. > Justin, it depends how you got your "timestamp" in the first place, I > think... > > I could be wrong again here but aren't these different? > > mktime() > gmmktime() Actually, they

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
Thanks heaps -- very reassuring :) Justin on 09/12/02 9:49 PM, DL Neil ([EMAIL PROTECTED]) wrote: > Justin, > Jumping in late... > >>>> Daylight Savings Time? >>> John, I think "Daylight Saving Time" creates a difference of 1 hour and > not >

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

2002-12-10 Thread Justin French
ecode(), and I know exactly where the user "came from". Similar (or even smarter) stuff can be done with sessions. Justin on 11/12/02 1:20 AM, Rodrigo ([EMAIL PROTECTED]) wrote: > Hi guys I need a way to know how to know from wich page the visitor > came, something like: > &

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
The postmaster@ or abuse@ address of his provider/ISP? Justin on 11/12/02 9:22 AM, Stephen ([EMAIL PROTECTED]) wrote: > This is off topic but, where can you go to report viruses? I've been spammed > with them a lot lately from this person and I'd like to stop him. > > Th

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Justin French
2. you could define your vars (like the MySQL uname and pword) in a config file, and include it at the top of all your PHP scripts: ... 3. you can extend this further, by setting a value php.ini (auto-prepend I think) so that PHP will ALLWAYS includes the config file at the top of every script.

Re: [PHP] fgetcsv Help

2002-12-11 Thread Justin French
should look like this: --- "1","foo","harry said \"what is it?\"","foo" "1","bah","\"don't know\" said sally","something" --- When echoing these values to the browser, you would strip the slash

Re: [PHP] reading pre-extension file

2002-12-12 Thread Justin French
Does it HAVE to be done with a regexp? You'd have to do a test to see which is quicker (regexp or this method), but I *think* this would be quicker. Better still, it's "future proof" by working for a.file.with.more.than.two.dots :) Cheers, Justin on 12/12/02 4

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
gt; If this gets heavy traffic, u may want to test which is faster -- or you may not care!! Justin on 14/12/02 5:21 AM, Gareth Hastings ([EMAIL PROTECTED]) wrote: > Hi, > > I'm trying to work out the regex needed to split either one of the > following lines > > Windows

Re: [PHP] migrating from register_globals on to off

2002-12-14 Thread Justin French
rate... so that their stuff doesn't break. Most developers will know which way they're writing code. You ultimately need to: - change the default to OFF - allow existing clients to "patch" to ON Justin on 15/12/02 12:43 AM, Willem ([EMAIL PROTECTED]) wrote: > Hello, &

Re: [PHP] question

2002-12-14 Thread Justin French
I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at the very least, listed as "experimental"?? Justin on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote: > Hello, > > still trying to get PHP 4 support on Apache 2. (Windows ME) > Mysql i

Re: [PHP] Session: I RTFM

2002-12-14 Thread Justin French
mall sites, but very important on big ones, and a decent habbit to get into :) Justin on 15/12/02 12:30 PM, John Taylor-Johnston ([EMAIL PROTECTED]) wrote: > Marco (or anyone) > > What is the difference between: > $familyname = getvar("familyname"); > and > $family

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
I would definitely store the file type (either extension or mime-type) of the files. Justin on 17/12/02 3:27 PM, Bruce Levick ([EMAIL PROTECTED]) wrote: > > Sorry for the newbie question. > I am an artist and entering my pieces into a databasebasically all > that will be displa

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
1. the opposite of session_register('varname') is session_unregister('varname') NOT unset($varname) 2. Are you on PHP >= 4.1 ?? If so, move away from things like: and into: MUCH cleaner to work with :) Justin on 17/12/02 10:35 PM, Antti ([EMAIL PROTECTED]) wro

Re: [PHP] if question

2002-12-17 Thread Justin French
Not sure if 'OR' works... I use a double pipe/vertical bar ('||') for 'OR' Jus to point out the really obvious... in the above example, the following would also work: Cheers, Justin on 18/12/02 12:04 AM, John Fishworld ([EMAIL PROTECTED]) wrote: > Help !

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
read ALL of http://www.php.net/manual/en/features.file-upload.php I'm assuming php >= 4.1.1 Justin on 19/12/02 2:33 AM, shaun ([EMAIL PROTECTED]) wrote: > Hi, > > what is the best way to check if a textfield is empty, and is it the same > for file fields? >

Re: [PHP] repeat region

2002-12-18 Thread Justin French
Hi, what you want to do is only echo the and every 7 loops through the records. Untested example: "; } echo "{$myrow['id']}"; if($i == 7) { echo ""; $i = 0; } } ?> Justin on 19/12/02 4:27 PM, Bruce Levick ([EMAIL PROTECTED]) wrote: >

Re: [PHP] Random include???

2002-12-19 Thread Justin French
code for the first, BUT it lets you update the "random files list" just with FTPing to the rand files directory, whereas option 2 requires you to FTP the files AND update the $files array Justin on 20/12/02 1:45 AM, Benjamin Trépanier ([EMAIL PROTECTED]) wrote: > Hi, I'm a newb

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

2002-12-19 Thread Justin French
using your old editor. Justin > Mike Bowers wrote: > >> I use Ultra-Edit 32 .. It auto-indents when u set highlight mode to PHP >> .. It also has a syntax higlight feature to show you when it recoginises >> PHP4.2.3 code .. http://www.ultraedit.com >> >> Mik

Re: [PHP] Alternating Links

2002-12-19 Thread Justin French
ns by changing the last if() statement... Justin on 20/12/02 5:21 PM, conbud ([EMAIL PROTECTED]) wrote: > Hi. > Lets says I have 8 links stored in a database, extracting those links is > no problem. Now lets says I have 2 columns, how do I get link 1 into > column 1 then get l

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,

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 "just

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, Pete

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 >

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

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 >

Re: [PHP] Date Subtraction

2002-12-23 Thread Justin French
ther to get a number in seconds Cheers, Justin on 24/12/02 8:29 AM, Christopher J. Crane ([EMAIL PROTECTED]) wrote: > I have two periods in time from a Cisco router that I would like to find the > difference in seconds. I am not sure the best way to do this since it is not > a

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 wor

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 replie

Re: [PHP] Embedding image a PHP file

2002-12-29 Thread justin gruenberg
yy.php should contain header("Content-type: image/jpeg"); /* or gif or whatever... you can also take a look at getimagesize() to get the type of the image automatically */ readfile(THE FILE); ?> it's extremely important that there is no whitespace before the tag. empty wrote: Hi Anybody kn

  1   2   3   4   5   6   7   8   9   10   >