Re: [PHP] Using Cookies Securely

2003-05-31 Thread Justin French
The short answer is that if you're worried about security, don't store a uid and pwd in a cookie on the client... banks don't do it, for example. It's also common for the uid to be remembered, but not the pwd. >From what I can see happening on the "big sites", you give the user the option to be r

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-01 Thread Justin French
on 01/06/03 6:01 AM, Monty ([EMAIL PROTECTED]) wrote: > I have a member site that uses sessions. People who have their browser > cookies turned off, however, cannot use our site. I read somewhere that to > avoid this, I'd have to manually append the PHPSESSID var to every URL when > redirecting in

Re: [PHP] user login idle timeout feature

2003-06-02 Thread Justin French
off the top of my head... have a column in your user table called "last_active"... it should hold a date-time, or a unix timestamp, or something like that. on each page request by a logged in user, you would update that value with a newer stamp on physical logout, you would set that to zero or n

Re: [PHP] Cookies - recomendation please

2003-06-03 Thread Justin French
http://au3.php.net/manual/en/features.cookies.php (not intended as a smart-arse post) on 01/06/03 11:56 PM, Ryan A ([EMAIL PROTECTED]) wrote: > Hi everyone, > Some time back I had no idea about sessions and I asked this list to give me > a few links on the web where i can learn about them, tha

Re: [PHP] session

2003-06-03 Thread Justin French
on 02/06/03 9:55 PM, Aris Santillan ([EMAIL PROTECTED]) wrote: Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session

2003-06-03 Thread Justin French
on 02/06/03 6:03 PM, Adrian Portsmouth ([EMAIL PROTECTED]) wrote: > The value isn't available until the next page Huh It's available straight away. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user login idle timeout feature

2003-06-03 Thread Justin French
on 02/06/03 8:06 PM, electroteque ([EMAIL PROTECTED]) wrote: > thats what i was thinking of logic but i may be having about 10 users logged > in doing full text searching on a 200 meg + database will that affect it ? the issue shouldn't be your full text searching... the issue should be your sess

Re: [PHP] Planning a new job

2003-06-03 Thread Justin French
That's really beyond the scope of this list, but: on 03/06/03 10:45 AM, Tim Burgan ([EMAIL PROTECTED]) wrote: > Do you have a face-to-face meeting with the client? It depends if they're in my capital city, or if the job is big enough to warrant me flying interstate > What questions do you ask

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Justin French
This is correct: while($myrow = mysql_fetch_array($result)) { // ... } The iteration of the while loop represents one returned row from the mysql result, with $myrow being an array of values returned. Rather than a SELECT * query, let's look at a something where we know the column na

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Justin French
H, Theory only here: If there is a GET value of PHPSESSID (or whatever your sessions are named), then the user is more than likely taking advantage of trans-sid (sid's in the URLs), and cookies are not available. So, we only want to append the sid to URLs in a redirect IF the sid is found in

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Justin French
on 03/06/03 9:43 PM, Ford, Mike [LSS] ([EMAIL PROTECTED]) wrote: >> -Original Message- >> From: Justin French [mailto:[EMAIL PROTECTED] >> Sent: 03 June 2003 06:34 >> To: Monty; [EMAIL PROTECTED] >> Subject: Re: [PHP] Cookies and Se

Re: [PHP] Re: Migration from register_globals=on toregister_globals=off

2003-06-04 Thread Justin French
on 04/06/03 3:02 AM, Øystein Håland ([EMAIL PROTECTED]) wrote: > I'm not sure what you mean. To give ONE example: > Earlier I could use this code on top of every page: > if ($printout != "yeah") { include("header.php"); } > This code gives an error today. The variable $printout is set if the visi

Re: [PHP] Administration packages

2003-06-04 Thread Justin French
I've built my own framework over time, and would highly recommend it, because you get exactly what you want. but here's a few things that might help: - some sort of form building/validating class (10's or 100's even at phpclasses.com) - read up on some of the large app frameworks... fusebox come

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-04 Thread Justin French
or cookies, know that you're testing, then let the user know that you don't want their business/traffic is more work than just letting PHP handle it with enable-trans-sid. Justin French on 04/06/03 6:08 PM, Monty ([EMAIL PROTECTED]) wrote: > I've decided to require tha

Re: [PHP] Best open source banner advertising application

2003-06-04 Thread Justin French
It never ceases to amaze me how much people want for free... ANYWAY, phpAdsNew seems to be the popular recommendation on this list. http://www.phpadsnew.com/ Justin on 05/06/03 12:12 AM, Adrian Teasdale ([EMAIL PROTECTED]) wrote: > Hi there > > We are looking for an open source banner advert

Re: [PHP] unix time stamp to readable date

2003-06-05 Thread Justin French
http://au.php.net/date Justin on 05/06/03 1:15 AM, Diana Castillo ([EMAIL PROTECTED]) wrote: > I know this is a stupid question but I am confused, > how do I convert a unix timestamp to a readable date with php? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Justin French
on 05/06/03 8:05 AM, Monty ([EMAIL PROTECTED]) wrote: > Hi Justin, > > I hear what you're saying about refusing people without cookies turned off, > and I really tried to make it work on my site, but, keep running into lots > of problems. I do have enable-trans-sid turned on, but, get inconsisten

[PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Justin French
considering: a) storing this data in a MySQL table (a fairly simple query) b) storing this data in a pseudo XML format like: 24 Justin French [EMAIL PROTECTED] 2003-11-28 This is my intro This is my text and html -- say 1000 words? I plan on doing my own performance tests, but I'd love to hea

Re: [PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Justin French
version to XML will be trivial. Regardless > of which route you take if speed is an issue you can always cache either the > parsed XML or the SQL query results. It doesn't make much difference. > > Cheers, > Rob. > > Justin French wrote: >> >> Hi all, >&

Re: [PHP] isset()

2003-06-14 Thread Justin French
$output_fname = (isset($HTTP_POST_VARS['fname'])) ? $HTTP_POST_VARS['fname'] : ''; but the value WILL be set regardless... in this case i'd prefer: if(isset($HTTP_POST_VARS['fname'])) { $output_fname = $HTTP_POST_VARS['fname']; } alternatively, I wrote a nice function to pluck out $_POST vars o

Re: [PHP] Why SID changes each time I refresh the page??

2003-06-15 Thread Justin French
Is this up on the web somewhere for us to test? Justin on 16/06/03 3:09 AM, MH_Hong ([EMAIL PROTECTED]) wrote: > I have a very simple php code as below, but may i know why my SID changes > every time i refresh the page? > Do i need to change anything in PHP.ini?? thanks > session_start(); > ?

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Justin French
erstand, you'll also have exactly what you want, with the power to extend it as you wish. Justin French - Indent.com.au - Graphic, Web & Information Design Web Application Development - e: ma

Re: [PHP] Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Justin French
on 17/06/03 6:09 PM, Jarmo Järvenpää ([EMAIL PROTECTED]) wrote: > Hi > > A quickie, how does the $_POST[foo] and $_POST['foo'] differ? > Both do work. $_POST[foo] will look for a pre defined constant foo. Under certain error-reporting levels, this will generate an notice/warning, and it assumes

Re: [PHP] trigger download with left-click?

2003-06-17 Thread Justin French
on 17/06/03 9:00 PM, Sam Folk-Williams ([EMAIL PROTECTED]) wrote: > I have a site with hundreds of downloadable forms in MS Word format. > Right now to download a form you have to right-click and choose "Save > Target As..." to download the form. Is there a simple script that I > could put in that

Re: [PHP] My non-windows friends please help

2003-06-18 Thread Justin French
This is soo OT, but you've got a JS error under IE5.1 Mac OS 8.6: Line 384 Char 2 'undefined' is undefined Now, what exactly are we supposed to be testing??? Shouldn't your browser/platform detection be echoing something to the screen, so we can tell you if it worked/was acurate or not? Jus

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Justin French
on 19/06/03 6:54 AM, Vernon ([EMAIL PROTECTED]) wrote: > The point is I don't know how to do that. That's why I was asking. :) This is not a JavaScript list -- find out the value in JS (do some googling, join a JS newsgroup, etc etc), THEN ask us how to work it within your PHP app. Justin --

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Justin French
Vernon, If you ONLY wanted to know how to deal with JavaScript variables in PHP, then perhaps you should have limited your question to just that. Your question asked about screen resolutions, which is totally a discussion based around JavaScript. If you wanted to know about JavaScript and PHP, y

Re: [PHP] securing a graphic

2003-06-21 Thread Justin French
I'm with Steve on this. Call them (the numerous "hacks" mentioned in this thread) deterrents if you like, but there is NO WAY to secure images. You can brand them with a big watermark, and make sure your copyright and terms of use notice are prominent on the page, but the nature of the web is tha

Re: [PHP] a question, need an answer

2003-06-22 Thread Justin French
I think you mean: $_SESSION['eventid'] = 'arma2'; vs $eventid = 'arma2'; session_register('eventid'); I'd advise the first, unless you need to ensure backwards compatibility with PHP < 4.1 Justin on 22/06/03 4:41 PM, nabil ([EMAIL PROTECTED]) wrote: > what is the diffirent between : > /

Re: [PHP] Security conundrum ....

2003-06-22 Thread Justin French
Ok, I'm trying to get a grip on what happens here: 1. i visit your site, see a flash movie, which enables me to log-in 2. after i log in, I see a link called "news" 3. I click on it, which pops open a HTML window through javascript, with a URL like example.com/print_news.php [At this point, the

Re: [PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Justin French
Here one way you can do it (untested): Justin on 23/06/03 10:41 AM, Artoo ([EMAIL PROTECTED]) wrote: > Hi, > > How can I start searching for the first space in a string while starting at > say the 150th character? I'm trying to display the first 150 characters of > an article that is store

Re: [PHP] php question... opening external page/writing to it...

2003-06-23 Thread Justin French
hings like this: if($debug) { echo "Justin, you're an idiot: ".mysql_error().""; } Justin French - Indent.com.au - Graphic, Web & Information Design Web Application Development -

Re: [PHP] Securing PHP code

2003-06-26 Thread Justin French
I'm not a security expert at all, but... The short answer to your question is that if you have to ask how to make your code secure, then chances are, you probably shouldn't be attempting it at all... but then again, we all have to learn somewhere... Do a google search, and read thousands of artic

Re: [PHP] Forms / Array Question...

2003-06-28 Thread Justin French
on 28/06/03 4:20 AM, Noel Wade ([EMAIL PROTECTED]) wrote: > Anyone know if this (A) works have you tried it? surely it couldn't take more than 10 seconds to find out eh? > and > (B) is not actually just some undefined behavior that's risky to use? it's quite common, although i believe the syn

Re: [PHP] PHP Web Based File Management and Security

2003-06-28 Thread Justin French
on 29/06/03 4:12 AM, Dean E. Weimer ([EMAIL PROTECTED]) wrote: >> What is the point of the web based file manager? > To eliminate Local Accounts, and so that they don't have to upload files > via ftp or ssh. > Plain ftp is very unsecure, and using a secure ftp server can be very > confusing to les

Re: [PHP] Cookies and Macs

2003-06-28 Thread Justin French
There should be no differences in PC/Mac/Linux implementations of cookies, for common browsers. I've never had a problem. - which browsers were you testing with? - did those browsers have cookies switched on, with a security level low enough to accept yours? - can you show us a small test scrip

Re: [PHP] Performance question

2003-06-29 Thread Justin French
n both problems (performance and coding simplicity), but learning how to benchmark your scripts is a vital learning step... Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passwd protected page

2003-06-29 Thread Justin French
on 26/06/03 5:23 PM, Bibhas Kumar Samanta ([EMAIL PROTECTED]) wrote: > my problem is that when I use sessions in the restricted pages > the session_start() seem to reset the form ( when other filled in data > is lost) when go back to the form using > Back in the browser. > So I wanted to avoid se

[PHP] php.net's custom 404 scripts

2003-06-29 Thread Justin French
Hi all, I used to have a bookmark for how php.net's custom 404/redirect/search script worked, but I can't find it now, and can't see it on php.net... has anyone got a link? Not sure if it was on zend.com or php.net. TIA Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Newbie getting close, form submission

2002-07-22 Thread Justin French
I pointed this out to you in my original post: you mail() call should be: mail($MailToAddress, $MailSubject, $Message, "From: $MailFromAddress"); not: mail("$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); In other words, I don't think you should wrap plain $vars in dou

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-22 Thread Justin French
to yourself -- "you get what you pay for" springs to mind, but in the case of PHP, we get a whole lot more. Justin French on 23/07/02 2:55 AM, Greg Donald ([EMAIL PROTECTED]) wrote: > Not only did I get to re-write all my apps the past few months because of > the new reg

Re: [PHP] Comma question

2002-07-22 Thread Justin French
on 23/07/02 8:34 AM, B i g D o g ([EMAIL PROTECTED]) wrote: > What does the "," and "{}" do in this type of statement? > > Example: echo "{$strName}", htmlspecialchars( $teststr ); Not sure about the comma, but the {braces} are easy. They help separate the $vars from other stuff in the strin

Re: [PHP] Passing Special Characters In url

2002-07-22 Thread Justin French
If I want to pass something with &'s in it (commonly a query string i want to use later), I base64_encode() it, then base64_decode() it later when needed. Cheers, Justin on 23/07/02 2:29 PM, Ricky ([EMAIL PROTECTED]) wrote: > Hi, > > I am having problems passing variables in a url specifical

Re: [PHP] another problem

2002-07-22 Thread Justin French
I would have started with a search on php.net for "hex" which would have showed you two functions, and numerous other links that i'm not going to read. dechex() and hexdec() seem to do it for numbers, and i'm sure you'll find what you need with some more looking. Just

Re: [PHP] Using PHP with MySQL - Can I supress MySQL errors?

2002-07-23 Thread Justin French
You can suppress the error messages of ANY function by placing an @ in front of the function call: @mysql_connect('blah') $result = @mysql_query($sql); etc etc Justin French on 24/07/02 2:08 AM, DonPro ([EMAIL PROTECTED]) wrote: > Hi, > > I'm using PHP to connect

Re: [PHP] PHP creating table for HTML layout

2002-07-23 Thread Justin French
PHP can't help here -- you should do a search on the web for "liquid" website designs, or check out / borrow some code from other sites you've seen work. Although not valid, I've seen height="100%" work on 1000's of sites. Combined with a CSS statement, you should be able to cover all browsers.

Re: [PHP] MySQL Backup and Restore

2002-07-23 Thread Justin French
Can highly recommend doing it (and a whole lot more) with phpMyAdmin (http://phpMyAdmin.net) Justin French on 24/07/02 1:04 PM, Peter ([EMAIL PROTECTED]) wrote: > grab ur self a copy of myphpadmin or use mysqldump or just simply make a > copy of the data dir or grab ur self a c

Re: [PHP] Accessing upper directory of public_html directory

2002-07-23 Thread Justin French
g of what you need. FYI, having a .htaccess file, or storing items above your doc root WILL NOT PREVENT other users on the server accessing your files. You need to ask your ISP what sort of prevention methods they have in place for preventing another user on your server gaining access to yo

Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Justin French
on 24/07/02 2:00 PM, Dave at Sinewaves.net ([EMAIL PROTECTED]) wrote: > That works fine for files with .php extensions, but I need something to add > code to html pages as well... Any ideas??? Well, this IS a php list :P If you have control over the apache config, you can specify all .html fil

Re: [PHP] Re: Newman and his session management.

2002-07-23 Thread Justin French
the session to carry it >> across all the other pages that are in this session. Any hints on where to >> start? > > session_register() ? Or, if using PHP >= 4.1, $_SESSION['user'] = 'fred'; You could've at least *tried looking* at the session pages

Re: [PHP] Newman and sessions.

2002-07-23 Thread Justin French
, including examples and user contributed notes. please try and research stuff before posting Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble with \

2002-07-24 Thread Justin French
ither in the manual, or in the user contributed notes... but if you at least look at the manual first, you'll be more likely to get good responses, because you post better questions like: "I've tried to stripslashes using the following code, but it aint working... any

Re: [PHP] Image upload into database

2002-07-24 Thread Justin French
erver, and try to match them up, which will help. Justin French on 25/07/02 9:43 AM, Jesse Lawrence ([EMAIL PROTECTED]) wrote: > I've setup an image upload feature on a site, which > uploads images into a mysql database. > > The uploads are working absolutely as expected

[PHP] best way to log bad email address'

2002-07-24 Thread Justin French
eturn to with either an ini_set or with an email header? Because my assumption is that there will be email address' that return TRUE, but later bounce. Can't see what it might be in the php.ini file though. Thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newline problem

2002-07-24 Thread Justin French
thing ... would achieve three separate lines, so you need to do the same thing when echoing. HTH Justin French on 25/07/02 2:11 PM, Wormy . ([EMAIL PROTECTED]) wrote: > Dear all, > this sounds like a silly problem but i really dunno how to fix it! > > In the php manual on php

Re: [PHP] Newman's PHP sessions management.

2002-07-24 Thread Justin French
session_name() JF on 25/07/02 2:41 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > One question. > > When i start a new session i get the veriable PHPSESSID=what ever added to > links that I want PHPSESSID to be called sid. How can i do this? > > --- > Philip J. Newman. > PhilipNZ.com Des

Re: [PHP] The page before for newman.

2002-07-25 Thread Justin French
ission critical stuff. Justin French on 25/07/02 5:27 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > I'm looking for the global veriable that lists the page before the page that > i just came from. Anyone know what i'm talking about? > > --- > Philip J. Newman

Re: [PHP] best way to log bad email address'

2002-07-25 Thread Justin French
#x27;t *think* it's that easy unfortunately -- I can't get a message to bounce to the From: or Reply-To: headers I set. My guess is it goes to an address set in php.ini, or somewhere else, and is global to the entire server (doesn't help me). Unless I can set it was .htaccess or in

Re: [PHP] Newman Asks, Do i have to use session_name('sid') every...

2002-07-25 Thread Justin French
is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name() for every request (and before session_start() or session_register() are called). " Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Justin French
yet get the > position of the occurence! Actually, I've just written one of them, and they're not that hard, as long as the sub-set of what you want to do is limited. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to check if a field is auto increment

2002-07-26 Thread Justin French
on 26/07/02 10:50 PM, Mathieu Dumoulin ([EMAIL PROTECTED]) wrote: > Oh, and also, i need to know how to get the default value... > > Btw, i CAN be done, or else, how does phpMyAdmin does it =P Well then look at the source code of phpMyAdmin :P Justin -- PHP General Mailing List (http://www.

Re: [PHP] High Resolution Images

2002-07-26 Thread Justin French
ving that file to disk... compare file sizes, and try to open the file. If all this works, then you can rule out a file size issue, and look at other issues, like a potential bug with large files or large resolutions. Justin French on 27/07/02 8:31 AM, Tech Support ([EMAIL PROTECTED]) wrote: &

Re: [PHP] calling user-defined php functions from tag

2002-07-26 Thread Justin French
ulate foo but really, I can't understand why you wouldn't just do: Why do they have to click? You'll have to check all the javascript stuff and maybe massage it, because I haven't tested this, and haven't written much JS in the past coupla years. Beware of the l

Re: [PHP] calling user-defined php functions from tag

2002-07-27 Thread Justin French
pt code won't let me execute a server-side php function > (obviously). > > And I don't want to just shoot the link off to another page (even though > that's what it was designed to do). I want to call a very specific > function. > > Tricky, I know. :( >

Re: [PHP] Re: Date() Problem

2002-07-27 Thread Justin French
I store all dates in unix timestamp format. It's the easiest one to work with, and it's easy to do things like "date + three days", because it's just a case of adding the right number of seconds to the current stamp. You don't have to split anything, or get substr()'s of anything... and since da

Re: [PHP] High Resolution Images

2002-07-28 Thread Justin French
oad it AND open it in Photoshop et al, then the issue is the file compatibility with the browser, probably due to CMYK, resolution, or something else. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] failure notice

2002-07-28 Thread Justin French
e > to give up participating on the PHP list... > > miguel Will be sorry to see you go if that is the case Miguel. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extra spacing with in HTML

2002-07-28 Thread Justin French
place('', '', $new); ?> Either that, or write your own version of nl2br which ignores (*no way* I'd both doing this) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extra spacing with in HTML

2002-07-28 Thread Justin French
on 28/07/02 12:53 PM, Jason Stechschulte ([EMAIL PROTECTED]) wrote: > There might be an easier way, but you might just have to write your own > code for this. Something along the lines of: (completely untested) > > $line = ereg_replace("(^li|^ul|^ol)>\n", "\n", $line); > ?> Definately an easi

Re: [PHP] php 'mail()' security

2002-07-28 Thread Justin French
- ensuring there are no newlines (\n) in the email address, subject, etc etc will ensure that they aren't sneaking another email header into an existing header. Justin French on 28/07/02 1:54 PM, Dennis Gearon ([EMAIL PROTECTED]) wrote: > What I meant was, how to sanitize the i

Re: [PHP] Speed issues.

2002-07-28 Thread Justin French
suits you better". You could run some comparison tests with a microtimer to see what happens... I doubt on a 50-100K HTML page that you could notice the difference, unless the site or server got S**TLOADS of hits. Justin French on 28/07/02 5:56 PM, Yves Vrancken ([EMAIL PROTECTED]) wrot

Re: [PHP] cant send data from a website to another

2002-07-28 Thread Justin French
Try echo $_POST['nameofthefield']; If this works, it's to do with register_globals directive in your php.ini file. You can set it to on, which will solve your problem, or you can choose to be more secure, and write better scripts, by choosing to keep it off, as with the above line of code. Sea

Re: [PHP] Extra spacing with in HTML

2002-07-28 Thread Justin French
on 29/07/02 12:02 AM, Kevin Breit ([EMAIL PROTECTED]) wrote: >> Aaaannny way, you can't modify WHAT php does in nl2br, but you can do >> something to the resulting code, like replacing "" with "": >> >> > $original = "Blar"; >> $new = nl2br($original); >> $new = str_replace('', '', $new); >> ?>

[PHP] ENCRYPT() in MySQL

2002-07-29 Thread Justin French
dHat I think)... Thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ENCRYPT() in MySQL

2002-07-29 Thread Justin French
on 30/07/02 1:05 AM, Analysis & Solutions ([EMAIL PROTECTED]) wrote: > On Mon, Jul 29, 2002 at 10:06:29PM +1000, Justin French wrote: >> >> I'm on a shared server which does not have mcrypt... not good, since i want >> to temporarily store credit card numbers in an

Re: [PHP] OT - javascript question..

2002-07-29 Thread Justin French
how me something else I'm thinking opener.location.reload() or opener.location.reload(1) or opener.location.replace('my_url') might do the same job, but if you know what URL the script should refresh to (ie, load the same URL again), then the function above should work as is. Justin Frenc

Re: [PHP] OT - javascript question..

2002-07-29 Thread Justin French
on 30/07/02 6:11 AM, Martin Clifford ([EMAIL PROTECTED]) wrote: > > echo "\n\n"; > > ?> > > Something similar will work fine. Wouldn't the $PHP_SELF be that of the popped-up window, not of the opener? Justin French -- PHP General Mailing List (http:/

Re: [PHP] Re: ENCRYPT() in MySQL

2002-07-29 Thread Justin French
lso shot down. > Bottom line -- You've *GOT* to make sure you have no chinks in the armour. Thanks *HEAPS* for your info. I emailed my ISP to bitch to them about all this s**t, and they're putting together a new Linux package at the moment which has mcrypt() support... so hopefully

Re: [PHP] fullname

2002-07-30 Thread Justin French
on 30/07/02 5:12 PM, Wee Keat ([EMAIL PROTECTED]) wrote: > Is this easier for you? > > $fullname = $session["f_name"]." ".$session["l_name"]; or $fullname = "{$session['f_name']} {$session['l_name']}"; Justin French --

Re: [PHP] Good books on sessions

2002-07-30 Thread Justin French
e heaps more security 2. log in once only, and have the whole system wide-open forever I'd pick 1 over 2 anytime. I'd also provide a logout button with either system, so that people CHOOSE TO DESTROY THEIR SESSION. Personally, I log-out when I leave my desk, just in case. Imagine if

Re: [PHP] Good books on sessions

2002-07-30 Thread Justin French
way of using sessions, and can make it harder for people to get the results they want, IMHO. Justin French on 31/07/02 3:15 AM, Petre ([EMAIL PROTECTED]) wrote: > Yes , I agree,But that is exactly where my problem comes in, when I link > the person forward, it DOES NOT take the n

Re: [PHP] How to become a good PHP coder?

2002-07-30 Thread Justin French
, knowledge through books, articles and newsgroups is great, but it'll only "click" if you have a project on the go. Sure, you might re-write the code and re-think the project a few times before you get it right, but you'll have learned a heap if real-world problem solving i

[PHP] thirds of a color wheel

2002-07-30 Thread Justin French
the color wheel), given a starting color. Any clues would be great :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using Cascading style sheet

2002-07-30 Thread Justin French
This is absolutely nothing to do with PHP... suggest you try the newsgroup comp.infosystems.www.authoring.stylesheets regards, justin on 31/07/02 3:48 PM, Sailom ([EMAIL PROTECTED]) wrote: > I just turn to use CSS instead of HTML style. Can you explain pros and > cons of using CSS? I am qui

Re: [PHP] Question on File Move / Delete and Create Directory

2002-07-31 Thread Justin French
on 31/07/02 8:39 PM, Jack ([EMAIL PROTECTED]) wrote: > Dear all > I had setup a web server in windows NT 4.0 (IIS Server), there is some > question i want to ask bask on the file management! > > 1. Is there any function in php that can create a folder/Directory in a > specific path? *sigh* Did y

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Justin French
never on the browser, it's impossible to refresh it and double-post. If you work on it, this can actually all be done within one php script, rather than 3. Good luck, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text area with quotes

2002-07-31 Thread Justin French
check out strip_slashes() or stripslashes() [can never remember which one!!] in the manual. Justin French on 01/08/02 5:50 AM, Nathan Kline ([EMAIL PROTECTED]) wrote: > this seems so obvious yet it is giving me problems. > > I have a text area in a form that is passed to a php p

Re: [PHP] RE: stripping quotes from urls and images

2002-07-31 Thread Justin French
html401-19991224/intro/sgmltut.html Justin French on 01/08/02 10:43 AM, electroteque ([EMAIL PROTECTED]) wrote: > i sorter need a preg example i'm not very good at it , and its for a wysiwyg > dhtml editor , it reformats those tags if the quotes are there when i load > the conte

Re: [PHP] Page title changes when call functions!!

2002-07-31 Thread Justin French
You'd need to show us some code, preferably not 100's of lines perhaps put it up on the web somewhere so we can see the source code or something. Justin French on 01/08/02 2:16 PM, Sailom ([EMAIL PROTECTED]) wrote: > I am a newbie in this area so please be patient for my s

Re: [PHP] include()

2002-07-31 Thread Justin French
Deny Deny from all Good luck! Justin French on 01/08/02 5:28 PM, Lord Loh. ([EMAIL PROTECTED]) wrote: > I suppose include() can be used to include files from remote systems(not on > WINDOWS). > > So, How can I protect my script from unauthorised inclusions ? > > A we

Re: [PHP] PROBLEM

2002-08-01 Thread Justin French
27;ve never worked with them sorry, justin french on 01/08/02 5:43 PM, Thomas Edison Jr. ([EMAIL PROTECTED]) wrote: > hi! > i have a problem in my project.the problem is that > suppose we have the date for the whole of the month > and two different files r there. > i have to pic

Re: [PHP] Storing script in database??

2002-08-01 Thread Justin French
I'm pretty sure you can use eval() on a string, but tread with caution, and try to look around for security concerns. I certainly wouldn't eval() anything supplied by a user... no way. Justin French on 01/08/02 7:53 PM, David Pratt ([EMAIL PROTECTED]) wrote: > I am creating a

Re: [PHP] Url of frame in php variable

2002-08-01 Thread Justin French
r you could re-think your code design so you don't have to rely on something so complicated :) I guess knowing the reason why you need to do this might enable us to give you more help. Justin French on 01/08/02 10:32 PM, patrick anderson ([EMAIL PROTECTED]) wrote: > Hi, > > doe

Re: [PHP] Example safe use of eval()

2002-08-01 Thread Justin French
You can't really do much to make sure the execution of eval is safe, it's more than you have to trust the string that you're about to eval(). So, as long as you and your production team were the only ones who put the code into the strings or tables, and tested the code before hand, then 90% there

Re: [PHP] How much should this cost Or ...

2002-08-01 Thread Justin French
testing the shit out of the code. You could charge the client for 10 hours, but if you feel this is out of their budget, you could license the code to them at a fraction of your original cost (say 4 hours-ish), and by doing this with many clients, make a profit on the code library over the

Re: [PHP] decrypting values in MYSQL

2002-08-01 Thread Justin French
on 02/08/02 11:44 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: > so you mean there's no way to decrypt that. I wan't to create a Password > Reminder to my script, that would email them their password if ever they > forgot it. > Is there any suggestion/comments? You can't! If you choose to en

Re: [PHP] Need help to choose hosting!

2002-08-01 Thread Justin French
n the one server is about zero. Justin French on 02/08/02 4:31 PM, Mantas Kriauciunas ([EMAIL PROTECTED]) wrote: > Hey php-general, > > i want to buy hosting. but i can't find good one for me. maybe > someone could point some links. but this is what i need! > > Stora

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Justin French
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote: > Well, to answer my own question, I found a decent tutorial on using sessions > with the new register_globals off here: > > http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab > les.html > > Anyone want to share any

Re: [PHP] Re: Protect PHP coding

2002-08-03 Thread Justin French
us to sell our PHP programs as closed source? How much money do you make a week writing PHP scripts? Just remember, Zend gave you PHP, for free, to use in almost any commercial way you wish. My clients cant afford Zend, but when the right client comes along, it'll be my recommendation wi

Re: [PHP] Re: Protect PHP coding

2002-08-03 Thread Justin French
far less superior product. Let me ask you Acer, how much money do you make a week from developing PHP web applications with the free PHP scripting language? The $2000 doesn't seem like much in comparison, does it. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >