Re: [PHP] Error Reporing Questions with Mac

2002-06-20 Thread Justin French
u'll find that the OP has "got it sorted" and it was infact a problem with Mac line breaks. He changed the default in Dreamweaver to Windows-line-breaks, and all is well. Justin French Creative Director http://Indent.com.au on 21/06/

Re: [PHP] Can I be an ASP with PHP?

2002-06-20 Thread Justin French
tc etc. Or, they may choose to pay the small monthly fees, get the updates, get the support, get the bugs fixed, etc etc. This process might be done in 12 month blocks too... Justin French on 21/06/02 4:29 AM, René Fournier ([EMAIL PROTECTED]) wrote: > I have a question to

[PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Justin French
ing a test server of Apache/PHP4/MySQL/Perl/etc? Sorry it's slightly OT, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Resoltuion

2002-06-21 Thread Justin French
Later version of Javascript. Justin French on 21/06/02 9:34 AM, Edgar ([EMAIL PROTECTED]) wrote: > Hi, > > Are there any way to know what screen resolution use a user in your monitor? > > Thank you in advance. > > -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP 4.2

2002-06-23 Thread Justin French
n upgrade install of 4.2.x, it *should* pick up your old php.ini setting of ON. It took me a week or so to update my code as well, but I look at it as a good move... my code is now more secure for starters. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Profiling

2002-06-23 Thread Justin French
Yes, that's what I use, except I use microtime(); Justin French on 23/06/02 11:49 PM, James Drabb ([EMAIL PROTECTED]) wrote: > Hello all, > > Does PHP have any built in functions to do simple profiling on a page? Or > should > I just use $time1=time(); do_stuff();

Re: [PHP] Whos online at the moment in PHP

2002-06-23 Thread Justin French
s going to take you a few hours to get your head around sessions, which can only be a good learning experience any way. Justin French on 23/06/02 11:53 PM, Pag ([EMAIL PROTECTED]) wrote: > Is it possible to code in PHP a small indicator on a site saying how many > people are viewing t

Re: [PHP] === and @

2002-06-23 Thread Justin French
w.php.net/manual/en/language.operators.comparison.php ( I did a search php.net/comparison and got it straight away ) > Also, what happens when you put a @ thingy in front of a function? Does > it surpress the errors? Yes, or perhaps allows you to form your own errors with: or die ('something'); Justin Fr

Re: [PHP] Time Delay using phpscript

2002-06-23 Thread Justin French
needs to be achieved in the BROWSER, with JavaScript or something. If you View source on a PHP script in your browser, all you'll see is HTML code... no PHP -- it's all parsed on the server. Justin French on 24/06/02 1:14 PM, Uma Shankari T. ([EMAIL PROTECTED]) wrote: > I need to

Re: [PHP] Removing Empty Lines from Text??

2002-06-24 Thread Justin French
course. Like I said, a regexp would be better here. Justin French on 24/06/02 6:51 PM, Jason Caldwell ([EMAIL PROTECTED]) wrote: > Is there an elegant way to remove excess blank lines from my form data? > > For example; if someone enters the following text and then press'

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
I think the issues are VERY project specific. Luckily for me I'm the DESIGNER and PROGRAMMER on many of my projects, but often I'm just one of the two. When I'm just designing, I obviously need to develop page templates, but more and more of my time is spent developing style guides (often also c

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
2 They can change the config file as many times as they want! Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
e that allows for 2 OR 3 alternating color rows in a table will be a lot more than for just 2, so you need to establish if this is a priority. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: New window, new session

2002-06-25 Thread Justin French
Would it help if you opened the new window with some sort of GET variable which alerted PHP that it has to kill the existing session, and fire up a new one with the current user? window.open('myPopUpPage.php?action=killSession') ??? Justin French on 25/06/02 9:16 PM, George Whiff

Re: [PHP] Downloading Files

2002-06-25 Thread Justin French
Either of these options will work fine. There was MASSIVE disscussions about this a few weeks back -- check for threads started by myself in the archives. Justin French on 26/06/02 12:35 AM, Francis ([EMAIL PROTECTED]) wrote: > I want to protect files from being downloaded and only al

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Justin French
oice of 2 or 3 columns, not 1, not 4+") will make the development time shorter, lead to less conflict, etc etc. I'm not saying "don't use style sheets" -- because I do on every project! I'm saying "don't give the style sheet to the designer" -- give them a co

Re: [PHP] Display Records in Multiple Pages

2002-06-26 Thread Justin French
Use the LIMIT function in your SELECT query... check out the MySQL manual... and then generate back / forward links depending on your current offset. It should be expandable to 1000 records without any mods to the code. Justin French on 27/06/02 4:54 PM, Aqua ([EMAIL PROTECTED]) wrote: >

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Justin French
Just sit down and think it through. Justin French on 27/06/02 5:55 PM, Aqua ([EMAIL PROTECTED]) wrote: > The LIMIT function is working, thanks. But how to generate back / forward > links using html/php? Thanks for your help. > > Aqua > > - Original Message - &

Re: [PHP] Easier way to seperate variables?

2002-06-27 Thread Justin French
what about wrapping the $variable in {}'s ?? END{$variable} I'm not 100% sure it works in the case of an END, but for everything else, it workds great. Justin French on 27/06/02 10:11 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: > I am trying to put a variable within a print

Re: [PHP] checking

2002-06-28 Thread Justin French
er to write: if($value) { ... } or if(!$value) { ... } rather than if($value == "yes") { ... } or if($value == "no") { ... } read this whole page: http://www.php.net/manual/en/language.types.boolean.php and http://www.php.net/manual/en/function.empty.php Regards, Justin Fren

Re: [PHP] Adding GD libraries after compile

2002-06-28 Thread Justin French
d have to be placed inside the extension_dir as specified by php.ini? This pretty much rules me out, since I'm on a shared server, and won't be granted access to this directory. Unless I could use ini_set to set the extension directory. Has any one got some sample code of how all thi

Re: [PHP] securing an 'includes' dir

2002-06-28 Thread Justin French
ing the files though. Unfortunately this will require the admin to allow you to use htaccess files in your on disk hierarchy, or possibly requesting him/her to make the changes needed themselves. Justin French on 28/06/02 6:25 PM, Nick Wilson ([EMAIL PROTECTED]) wrote: > -BEGIN PGP SIGNED ME

Re: [PHP] session vars and frames

2002-06-28 Thread Justin French
Are you passing the session ID around in the URL, or in cookies? Justin French on 28/06/02 6:28 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: > hi all, > > > I'm registering if people are logged in. The login page is situated in the > mainFrame. > Now in my left

Re: [PHP] pop-up windows

2002-06-30 Thread Justin French
s to do a LITTLE research before asking obvious questions, and we need to discourage people wasting our time with repetitive questions, or those who clearly subscribe to the "but it's so easy to just send an email and wait to be flamed" mentality. Regards, Justin French -- PHP Gen

Re: [PHP] Keeping "Secrets" in PHP Files

2002-06-30 Thread Justin French
should cover the basics of people grabbing your included files (with passwords etc) via http (browser). It doesn't cover people within the server (others on a shared server, etc) though. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] supersession

2002-06-30 Thread Justin French
on your needs :) Justin French on 29/06/02 6:38 AM, Michael Sweeney ([EMAIL PROTECTED]) wrote: > Depending on what data you need to have in these variables, you might be > able to set them as environment variables through apache (that is, _if_ > you're running apache, _if_ you have

Re: [PHP] Yet another session problem, with a twist.

2002-06-30 Thread Justin French
PHPLib has session functions, and was essentially "what people used" before PHP4. It will of course require a fair bit of work to port your scripts across. Personally I'd change to another host :) Justin French on 29/06/02 2:17 PM, Cysec ([EMAIL PROTECTED]) wrote: > I hav

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Justin French
.php and compiling with enable-trans-sid will not give you sessions. Justin French on 30/06/02 5:47 AM, Tim Stoop ([EMAIL PROTECTED]) wrote: > Hi people, > > Just a question, I'm building components for a customer who wants some > interactivity within his site, but still wa

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Justin French
er variables to the session (otherwise what's the point?) What is the session to be used for? >> simply converting your files to .php and compiling with enable-trans-sid >> will not give you sessions. > > ... when I do this? do what? Justin French -- PHP Gen

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Justin French
ortability is always an issue), and much simpler than multiple includes and stuff scattered every where. // includes sessions, functions, etc bla bla.. Buy this product! bla bla Good luck. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals = off

2002-06-30 Thread Justin French
uch more inline than they are now. Justin French on 01/07/02 1:12 AM, PHPCoder ([EMAIL PROTECTED]) wrote: > Hi > Going through some literature, it seems like the use of registered > globals can cause security issues. Now, the dilemma, all my previous PHP > installations ( for the

[PHP] emulating enable_trans_sid

2002-06-30 Thread Justin French
a simpler way that I'm missing? The only simpler way I can think of would be to search for '.php' and '.php?' and act accordingly, but this has obvious problems when 'something.php' is type, but not in context of a link or header redirection. Where would I look

Re: [PHP] emulating enable_trans_sid

2002-06-30 Thread Justin French
where this has been done. And since shared servers seem to be what my current client set are using, I'm looking at emulating enable_trans_sid. Regards, Justin French on 01/07/02 1:07 PM, Tom Rogers ([EMAIL PROTECTED]) wrote: > Hi > enable_trans_sid does exactly what you are trying to

Re: [PHP] emulating enable_trans_sid

2002-06-30 Thread Justin French
ll be a write-once solution that I'll use over and over. It's quite possible that the end solution will require a decent HTML parser or state engine. Fun fun :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing

2002-07-01 Thread Justin French
want to consider generating a multi-page RTF file or PDF which is generated on the fly, saved to disc, and printed upon your request. At least you only get the print window once. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] emulating enable_trans_sid

2002-07-01 Thread Justin French
That'd be great -- for inspiration if nothing else :) Justin French on 01/07/02 6:35 PM, Tom Rogers ([EMAIL PROTECTED]) wrote: > Hi > It just so happens I have been playing with an html parser making an html > to xml converter. I started with phpHTMLparse class but it couldn

[PHP] preg help (regexp newbie) whitespace

2002-07-01 Thread Justin French
Hi all, what's the correct pattern for "one or more whitespaces" (including \n\r\t and anything else I'm missing)? what about "zero or more whitespaces"? Thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] securing an 'includes' dir

2002-07-02 Thread Justin French
on 02/07/02 5:41 PM, Richard Lynch ([EMAIL PROTECTED]) wrote: >> "Justin French" <[EMAIL PROTECTED]> wrote in message >> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >>> 1. Name all included files .inc >> >> If you name them *.php then

Re: [PHP] mac ie and force download

2002-07-02 Thread Justin French
I haven't been able to figure it out as yet got every other browser I can get my hands on to do it, except IE mac. I'm thinking I'll just .zip everything :) Let me know what you find out, please. Justin French on 02/07/02 10:36 PM, Henry ([EMAIL PROTECTED]) wrote: &g

Re: [PHP] svg graphics and php : is it possible

2002-07-02 Thread Justin French
If you output the right headers, then output the file (by either passing thru an existing file or "building" a file), then it should work although I have no experience with exactly what you want -- only with MP3s, images, etc. Justin French on 01/07/02 7:52 PM, Herve le Martr

Re: [PHP] php and apache path...

2002-07-02 Thread Justin French
her option would be to use $_SERVER['DOCUMENT_ROOT']: $docroot = $_SERVER['DOCUMENT_ROOT']; include("{$docroot}myfile.inc"); I don't believe it can be done with ~/ or ./ or something... haven't found it yet!! Justin French on 03/07/02 1:34 AM, Analysis &

Re: [PHP] Setting a cookie and redirecting

2002-07-02 Thread Justin French
me sort of GET flag that issues a thankyou note or something. Otherwise people can hit "refresh" and post the data twice, or 10 times :) I can't see any SERVER SIDE way around this. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Justin French
-to-end... HEAPS of infomation. > - use "safe-mode"? I have no idea about safe mode. This list really does work best (ie best results for you) if you come to us with a specific problem, rather than something general. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User generated Web pages?

2002-07-04 Thread Justin French
mmend it for a first project unless you've got some form of programming experience in a simular web language. Good luck! Justin French on 04/07/02 10:51 PM, Anthony Rodriguez ([EMAIL PROTECTED]) wrote: > I'm trying to develop a software package for end users with no knowledge of >

Re: [PHP] eregi problems

2002-07-04 Thread Justin French
both return valid. The only way to ensure an email address is truely valid is to send an email to it, and have them respond... indicating that the address is linked to an email box and furthermore, someone opened the email, read it, and responded. Even then, this could be done by a robot I guess.

Re: [PHP] Mailing all the elements of a form

2002-07-07 Thread Justin French
or for an intranet where you trust the submitters (eg your own staff perhaps), this *might* be sufficient. Justin French Jeremy Bowen wrote: > Hey, > > I have looked in PHP manual but I cannot seem to find what I am looking for. > > I have a very large form that I need to be

Re: [PHP] Authorization

2002-07-07 Thread Justin French
in this lists' archives, mostly with the subject "register globals" 3. read up on the new predefined variables such as $_POST, $_COOKIE, $_GET, $_SESSION, etc etc, and learn how to modify your scripts to run in this more secure manner: http://www.php.net/manual/en/language.variable

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Justin French
s) between the offline and online worlds is that 1000's of CC#'s stored online in a digital format (eg database) is a lot more enticing than 1000's of cc#'s stored on little bits of paper. I guess to a "hacker" the thought of breaking a password is a little more entic

Re: [PHP] compare variables from text fields...

2002-07-07 Thread Justin French
the manual would also help :) Justin French on 08/07/02 1:45 PM, Jas ([EMAIL PROTECTED]) wrote: > What is the best function or operator to compare two text strings being > inputted by a text field within a form? Any help is appreciated. > Thanks in advance, > Jas > > -- PH

Re: [PHP] add to basket

2002-07-08 Thread Justin French
tring), carry this around as a var in the URL until you're ready to go back to that page and continue. I do this on every site, but with more features (I've basically got a "stack" of things that need to be done). Good luck! Justin French on 08/07/02 7:30 PM, Wilbert

Re: [PHP] Authentication

2002-07-08 Thread Justin French
hat I'd be doing... otherwise, you've asked how to assign a variable to a session, pretty much. $_SESSION['coursepaidfor'] = "45"; Which should be pretty easy to compare. Justin French on 08/07/02 7:20 PM, Anthony Rodriguez ([EMAIL PROTECTED]) wrote: >

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Justin French
of course it doesn't help with problem #2 (shared computers). Good luck, Justin French on 05/07/02 2:00 AM, Sebastian Marcu ([EMAIL PROTECTED]) wrote: > Hi there, > > I am new to PHP and need some help. > I was wondering if there is a way to get hold of the IP address of a si

Re: [PHP] Session variables

2002-07-08 Thread Justin French
By the way, this has nothing to do with sessions :) It's purely about how to populate drop-down menus from an array, and how to have the correct value selected if it exists, else showing a default selection. Cheers, Justin French on 08/07/02 9:36 PM, Steve Fitzgerald ([EMAIL PRO

Re: [PHP] keep textformating ?

2002-07-08 Thread Justin French
appear within a HTML page. Justin French on 08/07/02 11:28 PM, Hawk ([EMAIL PROTECTED]) wrote: > Lets say I have a guestbook, and I want the text the visitors write in it be > saved in a database(mysql) and when retrieved, if should have the same > textformating, I guess this is a really

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Justin French
I'm a firm believer in option 1. 750,000 page views per month is only 1 page every 3.4 seconds (ish) on average, so I don't believe you'd see any server load even in peak periods. If there IS server load, you can have an option 3, which basically combines option 1 and 2. Keep the raw article da

Re: [PHP] Commit/Roll Back Transaction in PHP/mySQL

2002-07-09 Thread Justin French
What about uploading the new data to a temporary table... once you're assured that every thing was completed, you can delete the old and rename the new to suit... Simular thing could be done with copying the existing table, etc. Justin French on 10/07/02 3:07 PM, Thomas Edison Jr. ([

Re: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no

2002-07-10 Thread Justin French
I don't know what else to do. Justin French on 11/07/02 2:41 AM, Jason Soza ([EMAIL PROTECTED]) wrote: > Hey, > > I got a response from [EMAIL PROTECTED] regarding Erik Hegreberg's little > stunt yesterday and they want full headers from the message in > question.

Re: [PHP] File Uploading Question

2002-07-10 Thread Justin French
on 11/07/02 10:10 AM, Nick Oostveen ([EMAIL PROTECTED]) wrote: > I've got a (hopefully) simple question which is indirectly related to php. Very indirectly. Infact, it's completely a HTML/CSS question. Try the comp.infosystems.www.authoring.stylesheets newsgroup. Justin Fre

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Justin French
Try: ... you might have a newer version of PHP (4.1+), which uses the global arrays like: $_SERVER $_POST $_GET $_SESSION $_COOKIE ... Justin French on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote: > I have this in my web site not in an executable folder: > >

Re: [PHP] sort problem

2002-07-11 Thread Justin French
d apply the 50 points at that point. Like I said, you need to define when this happens, so that we can figure out the best way... or perhaps you'll figure it out for yourself after you have a think about WHEN the 50 points are applied. Justin French on 11/07/02 7:30 PM, andy ([EMAIL PROTE

Re: [PHP] Table Making

2002-07-11 Thread Justin French
I hate to think what sort of a burden this would place on ther server, but... You could always find out how many rows there are, then run individual queries for each cell of the table. In other words, to achieve this layout: 1 4 7 2 5 8 3 6 9 You would do queries in this order: 1 4 7 2 5 8 3

Re: [PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Justin French
tc. You just need a /inc/ dir full of page_n.inc files. Good luck! Justin French on 12/07/02 12:43 AM, Martin Clifford ([EMAIL PROTECTED]) wrote: > The easiest way to accomplish that is by using switches. Here is an example: > > switch($pageid) { > default: > include("d

Re: [PHP] Mailing List

2002-07-11 Thread Justin French
ere are heaps of them out there (ezmlm the obvious one), and they might even have such a beast already installed. Good luck! Justin French on 12/07/02 3:33 PM, César Aracena ([EMAIL PROTECTED]) wrote: > Hi all. > > I know for sure that this question has been asked and answered bef

Re: [PHP] problem with cookies and some browsers

2002-07-13 Thread Justin French
hich does this for you c) test for cookies, and explain to those without that your site requires them, explain how to access them/turn them on, and perhaps provide a small subset of content or alternatives for those who won't/can't use them. Justin French -- PHP General Mailing List (

Re: [PHP] PHPDiscuss.com

2002-07-13 Thread Justin French
d replying to emails :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] state engine or HTML parser

2002-07-14 Thread Justin French
an working with regexp's. As it turns out, I'm only looking to work with at this stage, so I don't think it'll be a massive state engine, but I'd like to explore any other options or existing libraries of code before considering such a beast. Any links / articles / code / wh

Re: [PHP] Does not work

2002-07-14 Thread Justin French
carefull of is what effect your fall back has on the unknown browsers. Or design/program without the need to know what they're using :D Justin French on 15/07/02 5:34 AM, Saci ([EMAIL PROTECTED]) wrote: > // HTTP_REFERER as a feature. In short, it cannot really be trusted. > >

[PHP] two way encryption

2002-07-14 Thread Justin French
ectext}"; ?> I'm getting the following error using 4.1.1: "Fatal error: Call to undefined function: mcrypt_create_iv() in /usr/local/apache/htdocs/tests/enc.php on line 3" Which is confusing, given that the manual says mcrypt_create_iv() is available in PHP 4. Any ideas

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
th it either... so there's very little point in getting my local server working with it. What alternatives do I have? > General encryption advice -- generate your key using urandom and save it > to your key file. It will be much more secure than anything you can > think up for a

Re: [PHP] Does not work

2002-07-14 Thread Justin French
out issues you may not have thought of. You could have easily replied with "thanks for those pointers, but I'm less concerned with privacy, since this is a corporate intranet". I'm not sure I'd ever help you again, if I'd received a reply such as yours. Justin Frenc

Re: [PHP] Does not work

2002-07-14 Thread Justin French
--- Upon first loading, it will not be set, but when you click go, you have a referer, and it is set. For me, it's listed under the Apache Environment heading. If you still can't get a referrer var after all that, then there's an issue with your server (are you using apache???

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
base64 doesn't have a key, so anyone could decode the string, which is obviously not desirable :) thanks anyway Justin on 15/07/02 2:00 PM, James Cox ([EMAIL PROTECTED]) wrote: > sorry to step in, but did you consider base64_[encode|decode] ? > > -- james > >>

Re: [PHP] mysql error or PHP

2002-07-15 Thread Justin French
try add_slashes($string) before inserting into the database, or turn on magic quotes in php.ini justin french on 15/07/02 5:57 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: > Hi all, > > > has anybody ever seen this? And knows what it means? > thx. > > You have

Re: [PHP] Complex session issue

2002-07-16 Thread Justin French
sion_x"); there's a good example in the user-contributed notes of the manual Justin French on 16/07/02 4:01 PM, Divyank Turakhia ([EMAIL PROTECTED]) wrote: > I have a situation where I have one browser window open for lets say web > application 'x'. Now I want my use

Re: [PHP] Re: Training / Courses in Australia

2002-07-16 Thread Justin French
nd skills is a better guarantee. The other --although totally superficial-- benefit is a few letters after your name, and a few more things for freelancers to brag about when attempting to prove they're good enough. If there was a PHPCE, I'd probably take it just "because".

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
session. So, if there is no uid and pwd in $_SESSION, I check in $_COOKIE. If there's nothing there, they aren't logged in as far as I can tell. On every page I validate the uid and pwd against the database, so the only way you could fake being another user is to know the uid AND md5(

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 11:11 AM, Analysis & Solutions ([EMAIL PROTECTED]) wrote: > On Wed, Jul 17, 2002 at 10:43:24AM +1000, Justin French wrote: >> I set a >> cookie on their system which remembers them, which is just their username >> and an md5() of their pasword (the same

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
from launching this... could you elaborate on the potential risk, or point me to some documentation? Thanks heaps, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
Thanks heaps John, So as a basic rule, having a uid and pwd stored as session variables is NOT the problem, but storing the uid and/or pwd in a cookie on the browser is just plain asking for it :) So, how do you implement a "remember me" safely? Setting JUST the uid in a cookie prevents people

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
gt; password. Just use uniqid() and md5() to create a unique id for the use, > save it in their table, and use that in the cookie. If you base it off > of something, it makes it easier to crack... Good point. Thanks for your advice. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 1:05 PM, John Holmes ([EMAIL PROTECTED]) wrote: > Sure, why not? Users can't create session variables (unless you're on a > virtual server...) ... and I am -- A shared host server that is. Justin French -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Justin French
XML based solution, or a PDFLib based solution can be achieved? Considering InDesign is about 1/3rd the price of Quark, *maybe* you might want to consider other options aside from Quark. Justin French on 17/07/02 4:53 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote: > On Sun, 14 Jul 2002, Simo

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Justin French
on 17/07/02 5:28 PM, Justin French ([EMAIL PROTECTED]) wrote: > I've attached a file I received with Quark 3.32, which has sample text > complete with Quark Xpress tags. Sorry forgot to attach the file! Justin @DropCapParagraphStyle=<*L*h"Standard"*kn0*kt0*ra0*rb0*d

Re: [PHP] Sessions / logins / cookies / security

2002-07-17 Thread Justin French
on 17/07/02 6:51 PM, John Holmes ([EMAIL PROTECTED]) wrote: >> ... and I am -- A shared host server that is. > > Now I'm not sure on this, I haven't tested it. Has anyone? Is this particular vulnerability only in existence when the server is pretty open? I mean, on my particular host, I can't

Re: [PHP] querying for one specific row number

2002-07-17 Thread Justin French
you really want to pull out id#3, the new second rown in the table... in which case you'd use limit make sense? Justin French on 18/07/02 12:21 AM, Phil Schwarzmann ([EMAIL PROTECTED]) wrote: > I want query my mysql table and get one particular row. > > So let's say my tab

Re: [PHP] Sessions: watertight?

2002-07-18 Thread Justin French
, but does for FRAME's. It worth doing some testing if you go down this road. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies - good or bad???

2002-07-18 Thread Justin French
anyone out there have a view/practise when it comes to > session/cookies? - basically I am still not convinced that using > sessions/cookies is a good idea, but I would love to be educated as to > why I should... If you want 100% accessability, forget cookies were ever invented :)

Re: [PHP] Re: Cookies - good or bad???

2002-07-18 Thread Justin French
om -- no cookies, no javascript, no reliance on client-side for anything. Take care of it all server-side, where you have a controlled environment. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies - good or bad???

2002-07-18 Thread Justin French
> problem. Passing a SID via URL to an IFRAME is not the problem -- I was referring to the fact that I don't *think* --enable-trans-sid can handle IFRAMEs, from my limited look at the PHP source. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Re: Cookies - good or bad???

2002-07-18 Thread Justin French
my function link() takes the standard link, and adds the SID to it. It's not that tricky, all it does is check if there's already a query string, if there is, it appends the SID with &, otherwise with ?. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] modify an element of a HTML tag within a string

2002-07-18 Thread Justin French
{ $attribute == "foo2"; } } } while (getTag('DIV',$myHTML)) { while(getAttribute('ID')) { deleteAttribute(); } } The solution might be a helluva lot more complex, or may be OOP based. Any i

[PHP] best way to delete char# 4-7 from a string?

2002-07-18 Thread Justin French
ler = '4567'; ($str would now be 'abc4567hijklmnop') This is what I think would work (untested), looking for pointers, optimisation, or a better approach: Thanks, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No text in form submission

2002-07-21 Thread Justin French
Create a file with phpinfo() in it. Justin on 22/07/02 6:08 AM, Dean Ouellette ([EMAIL PROTECTED]) wrote: > Is there a way to tell, just contacted my host and they do not know, > they said they could look it up Monday when back in office -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Justin French
on 22/07/02 6:40 AM, Richard Lynch ([EMAIL PROTECTED]) wrote: > But, if they still insist on it, one answer, as I already said, lies here: > > http://phpclasses.org/ > > I'm sure there are a zillion other solutions, that just happens to be one I > know of. > > Why it takes a few thousand peopl

Re: [PHP] Inline Images ?

2002-07-21 Thread Justin French
ed by the image data. At least that's my (limited, theoretical) understanding. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] webserver for mac

2003-08-27 Thread Justin French
On Wednesday, August 27, 2003, at 04:49 AM, Richard Baskett wrote: on 8/26/03 10:50 AM, Edward Peloke at [EMAIL PROTECTED] wrote: Hello all, I am doing some php work for a local company who uses a mac. I was telling them that I use apache as my webserver and they want to know what they can u

Re: [PHP] dynamical balancing text in two colums

2003-08-27 Thread Justin French
To throw a huge spanner in the works: 1. tables are not intended for layout 2. devices other than a PC/Windows web browser may be more suited to q well structured XHTML based, table-less format with CSS for styling. 3. columns work well in a newspaper, but do not translate well to the web, sin

Re: [PHP] Thank You for your help

2003-08-28 Thread Justin French
t can do it programatically, but I have no idea about that. 2) this question is more directed to Justin French, but in any case, the reason i wanted to use the PDF forms is so that i don't have to create them again in CSS or any other format, the forms are already created and all i nee

Re: [PHP] WYSIWYG online editor for Macintosh?

2003-09-01 Thread Justin French
I think this is at the point where you might need to cut your losses, and look for a good, lightweight WYSIWYG editor application for OS9 (free/share ware) that you can load on their systems... they can simply cut-and-paste from the textarea to their editor and back. This way the OS X (OSX has

[PHP] PHP eqivalent of 'smartypants', and other text educating for XHTML, etc

2003-09-04 Thread Justin French
Please, not interested in non-PHP solutions (exec()'ing a Perl script for example), because I want it to run on a base PHP install, and integrate effortlessly into my CMS. TIA Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    5   6   7   8   9   10   11   12   13   14   >