Re: [PHP] HTTP POST FILE UPLOAD HELP

2002-11-08 Thread Justin French
E_ALL) I think. Justin on 09/11/02 5:03 AM, @ Darwin ([EMAIL PROTECTED]) wrote: > Nope, tried that just now. The example doesn't work for me. Any other > suggestions? > > - Darwin > >> -Original Message- >> From: Justin French [mailto:justin@;indent

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread Justin French
Hi, This is a big, complex project for a newbie, and I doubt you're going to find anyone with the time available to give you a hand. Can I suggest you start by learning some PHP in relation to forms, form validation, login, sessions, etc etc. There's a good article by Kevin Yank on sitepoint.com

Re: [PHP] Suggestions Please

2002-11-09 Thread Justin French
Programatically, I doubt this can be done... or if it can, it would be one mother of a regex :) As you've already pointed out, there's a million ways to write an email address, and something such as an ICQ number can be written without the word "icq" and some people will still spot it... but to P

Re: [PHP] how to insert data in mysql

2002-11-10 Thread Justin French
Start by reading all the pages in this section: http://www.php.net/manual/en/tutorial.php Particularly the forms one. Now you should know heaps about PHP, variables, forms, etc etc. Now you need to insert that data into mysql through a PHP script. There are hundreds of tutorials on this... Ke

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread Justin French
>From the browser window, I believe you can only upload individual files to the server... you can do multiples at once, but you can't (IMHO) upload an entire directory off your desktop THROUGH your browser, to the server. You could .zip, .tar or .sit a folder of course, but then you'd have to unco

Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Justin French
our site has to be a form submit. Yuk!!! Or have I misunderstood your question? Justin French Creative Director http://Indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote: > I think you need to use a if you wish for the returns to be submitted. Cheers Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote: > Thanks for your quick answer, > > But it doesn't change anything. > change my text box into big text area- > > So I always have to click on submit button to submit the form. Actually, I miss-read your question... do you WANT the form to be

Re: [PHP] Restrict file access from web users?

2002-11-10 Thread Justin French
filenames. I need to somehow have an .htaccess type system, WITHOUT > .htaccess since the usernames are all just in a standard MySQL table. Any > suggestions? Store the file in a table blob? I can't really think of > anything. Thanks for your help. > Justin French

Re: [PHP] date comparison

2002-11-10 Thread Justin French
atabase > }else{ > //insert $incrementdate to the mysql database > > } > > > regards , > mike Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] automatically updating software

2002-11-11 Thread Justin French
ould be pretty easy with a short text file explaining what goes where... Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delivering Custom Content

2002-11-11 Thread Justin French
want to tie in with phpBB, you would create a related table to the user id, which stores some preferences. let's say phpBB has the following user table: col names: userid | password | date_added | firstname | lastname sample: justin77 | xx | 11/11/2002 | Justin | French then you could RE

Re: [PHP] Can somebody help me with making a login Script?

2002-11-11 Thread Justin French
5.0 and php 4 installed (although it is the installer version). So can > somebody please help me? Thanks See this article, it's got all the building blocks you need, they'll just need adapting. http://www.WebmasterBase.com/article/319 Justin French Creative Dire

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Justin French
fly, though -- I'm trying very > hard not to pollute the web folder with anything that I don't have to, and > file creation/deletion is very expensive since I have to do it via FTP. Any > ideas on this one? > > -- Charles Wiltgen > Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Justin French
Well, you seem so sure it will work, so give it a go... I can't see how, but am totally willing to learn! Have you got any info on invisible gets? Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PH

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Justin French
om the referring page to the current page as per your wishes... Haven't thought it through though :) Justin French on 13/11/02 3:15 PM, Joseph Szobody ([EMAIL PROTECTED]) wrote: > Folks, I have a popup window that I would like to put a mild security > constraint on. I don't want

Re: [PHP] form with two actions

2002-11-13 Thread Justin French
script. If someone could point me to an example I would appreciate it > > Thanks, > S.W. Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP extensions

2002-11-13 Thread Justin French
what the function of each one is? And does anyone > have the URL of that e-mail extension everyone finds > so useful? > > __ > Do you Yahoo!? > U2 on LAUNCH - Exclusive greatest hits videos > http://launch.yahoo.com/u2 Justin Fre

Re: [PHP] UPDATE MySQL

2002-11-13 Thread Justin French
.php"); > ?> Try adding the line echo mysql_error(); after the line $result = mysql_query($myquery, $connPENPALS); This should tell you if you have a mysql error... if not, then we can look at other things.. Justin French Creative Director http://Indent.com.au W

Re: [PHP] BUG with session trans sid ?

2002-11-13 Thread Justin French
ot;FJ_S_close", "FJ_S_read", "FJ_S_write", > "FJ_S_destroy", "FJ_S_gc"); > session_start(); > > TRANS SID feature doesnt working, but constant SID set > correctly (PHPSESSID=...). If I write SID in links and forms > manually, all works fine. &

Re: [PHP] Help with project

2002-11-13 Thread Justin French
tion > page > Where you can add/delete trade players. > > I need help with interface and login script as well.pleas email me. > > Karl. > Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Justin French
akes 3 seconds. > > Then, why not disable "right-click" as well? Justin French Creative Director http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Justin French
Maybe also check out http://www.php.net/parse_url and http://www.php.net/pathinfo Justin French on 14/11/02 1:33 PM, Jonathan Sharp ([EMAIL PROTECTED]) wrote: > try basename('http://www.domain.com/stuff/index.html'); > > -js > > > Charles Wiltgen wrote: >>

Re: [PHP] multiple file upload

2002-11-14 Thread Justin French
ess on the server, which would only be possible for some compression types. I'm thinking there MIGHT be some way with a hugely complex Java (not javascript) program, but I'm no expert. Justin French http://Indent.com.au Web Developent & Graphic Design --

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread Justin French
$e is excluded, or invalid, you can set a default. So these three links won't break the the page: Good luck Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] scanning for non alpha characters

2002-11-14 Thread Justin French
o "i want to keep this stuff in", which is a lot safer than trying to imagine everything a hacker might try... a good rule to live by, even if it's not totally needed in this case. Justin French on 15/11/02 1:32 AM, CJ ([EMAIL PROTECTED]) wrote: > I want to scan the variable

Re: [PHP] returning unique values in columns

2002-11-14 Thread Justin French
, Plus - instead of the Fashion, Basics, Fashion, > Plus, Plus I would get if I had run: SELECT column FROM tblname; > > any help would be greatly appreciated... Justin French http://Indent.com.au Web Developent & Graphic Design -- P

Re: [PHP] PHP download problem IE5 on mac

2002-11-14 Thread Justin French
IE5 Mac is a *B I T C H* with file downloads. It doesn't behave like any tutorial suggests it should. Justin French on 15/11/02 1:22 AM, Ernest E Vogelsinger ([EMAIL PROTECTED]) wrote: > At 15:13 14.11.2002, Javier Montserat spoke out and said: > --

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Justin French
uld do something like SELECT * FROM tablename ORDER BY id DESC LIMIT 1 BUT, it's *possible* that another row could be inserted before you get the chance to check... the real key here (assuming you are using MySQL) is to use mysql_insert_id(). Justin French http://Indent.co

Re: [PHP] PHP extensions

2002-11-15 Thread Justin French
lternative (the one that comes with PHP). I > wanted to check into it. > > __ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com Justin French http://Indent.com.au Web

Re: [PHP] session handling

2002-11-15 Thread Justin French
documentation > online but cudnt grasp much as to where i am going > wrong. > > thank you. > anjali. > > > __________ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com Justin Frenc

Re: [PHP] Php Form Issue

2002-11-16 Thread Justin French
at $foo contains both betty AND bob. It's just not the way the GET variables work. Post your JS to a JS list/forum, and tell them you need to have the checkboxes names something[] -- hopefully someone will be abel to spot the glitch with ease. Justin French http://In

Re: [PHP] Opening a file to manipulate it

2002-11-16 Thread Justin French
Hi, on 17/11/02 1:45 PM, Troy May ([EMAIL PROTECTED]) wrote: > > echo $header; ?> > > It writes "Resource id #1" at the top of the page. What is that?! :) You're missing some code -- instead, try this example from the fread() page in the manu

Re: [PHP] what is the PHP equivalent of Transactional ASP page

2002-11-17 Thread Justin French
> Yours sincerely, > See Kok Boon > Realize Creations > http://www.realizecreations.com > --- > looking for - jobs? career? customer? > look in realPortal! > http://realportal.realizecreations.com > Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searching a Table

2002-11-17 Thread Justin French
of my content of my reviews, I need to make it > simple. >>> How could you search a table of articles (let's say game_reviews) by >>> comparing keywords the user types in, to the text of the article? All > the >>> tutorials I can find make a table with a

Re: [PHP] Query string???

2002-11-18 Thread Justin French
t page' or something like that ? > > > As you can see I'm a newbie and a quebecer so, sorry for my english and > thanks for your help! > > Ben > Justin French http://Indent.com.au Web Developent & Graphic Design

Re: [PHP] Query string???

2002-11-18 Thread Justin French
on 19/11/02 12:31 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: > instead of > if(empty($item)) { ... > I would recomend > if(is_numeric($item)) { ... very true -- thanks for picking that up! Justin French http://Indent.com.au Web Developent &

Re: [PHP] speed comparison

2002-11-18 Thread Justin French
ation Developer > Outer Banks Internet, Inc. > 252-441-6698 > [EMAIL PROTECTED] > http://www.OuterBanksInternet.com > Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a conditionial insert

2002-11-18 Thread Justin French
t will return true if the query was successful, it's not dependant on if there were rows returned. To check if there was a row returned, use mysql_num_rows($result) $result = mysql_query("SELECT * FROM resellers WHERE company='$_POST[company]'"); if($result

Re: [PHP] a conditionial insert

2002-11-18 Thread Justin French
>> $result = mysql_query("SELECT * FROM resellers WHERE >> company='$_POST[company]'"); >> if($result && mysql_num_rows($result) > 0) >> { >> // insert >> } >> else >> { >> //something else >> } >> >> &g

Re: [PHP] Getting info from users comp?

2002-11-18 Thread Justin French
the users CPU. Is > this even possible with PHP since its a server side language?? > > And if its not possible with PHP, what language then? > > Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General M

Re: [PHP] problems with PHP code (Please help!)

2002-11-19 Thread Justin French
ame'] or $_GET['firstName'] (depending on the the method specified in the tag). A quick fix would be to take note of the variables you're expecting from the form, and re-assign them at the top of your script(s), eg: ... Good luck, Justin French on 19/11/02 6:41 PM, `Ya

Re: [PHP] Loooooooooonnnnnnnnnnggggggggg

2002-11-19 Thread Justin French
on 19/11/02 10:00 PM, Hacook ([EMAIL PROTECTED]) wrote: > Do you have any tips to make it faster ? The answers will come in faster if you tell us how you're "processing" it. Justin French http://Indent.com.au Web Developent & Graphic Design

Re: [PHP] Stripping HTML tags, but keeping entities...

2002-11-20 Thread Justin French
eplacing [b] with , etc etc. It's a lot of work, and you will run into even more work when you choose to allow [a href=""] or other attributes, but it IS safer. Or, perhaps it's "cheaper" for you to do some preliminary stripping of tags as per your code above, and then

Re: [PHP] scrolling data from db

2002-11-20 Thread Justin French
ination of javascript + css + a whole lot of testing on browsers + an understanding that it will break some browsers might do it. s will do it, s will too. Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List

Re: [PHP] scrolling data from db

2002-11-20 Thread Justin French
on 21/11/02 7:56 AM, Support @ Fourthrealm.com ([EMAIL PROTECTED]) wrote: > Hi Eddie, > iFrames do offer a really nice solution, but they are an IE only > tag. they are part of the HTML spec... so, conforming browsers (NN6, NN7, Opera I think, etc) all have iframe support. The real problem is

Re: [PHP] copying tables

2002-11-20 Thread Justin French
gt; multiple times and need the same information to start off with. Justin French http://Indent.com.au Web Developent & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preg_replace question

2002-11-21 Thread Justin French
7; href = "something.php" href="something.php" AND you'll have potentially MANY tags with MANY allowed attributes, it turns into quite a complex regexp really quickly... i decided that I should probably do it all with a parser, or even a char-by-char analysis/state engine, but never g

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

2002-11-21 Thread Justin French
> In Netscape 7 I have checked the stored cookie and it is set to expire > at the end of the session (which is the default I think), so I don't > understand why the PHP thinks the session is still opened ... Justin French http://Indent.com.au Web Developent &a

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

2002-11-21 Thread Justin French
6:02 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Justin French wrote: >> >> I know that for IE Mac users (not sure about NN7) it's not until you QUIT >> the application that the session is "terminated"... >> >> I *think* you'll find

Re: [PHP] FAQ a good idea?

2002-11-22 Thread Justin French
ign up, plus possibly a monthly or weekly reminder... the weekly reminder is really easy (it just requires someone to write the FAQ and set up a cron or something), but the one when ppl sign-up really needs the PHP-team in on it... really, it's their list, so it should be in their hands. Ju

[PHP] countries

2002-06-04 Thread Justin French
Apologies for being slightly OT, but has anyone got an array or list of countries that I can use to populate a pull-down menu? Or maybe a link to a resource to find this sort of stuff? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] countries

2002-06-04 Thread Justin French
t;,"Liberia"; > "LY","Libya"; > "LI","Liechtenstein"; > "LT","Lithuania"; > "LU","Luxembourg"; > "MO","Macau"; > "MG","Madagascar"; > "MW","Malawi"; > "MY","Malaysia"; > "MV","Maldives"; > "ML","Mali"; > "MT","Malta"; > "MH","Marshall Islands"; > "MQ","Martinique (Fr.)"; > "MR","Mauritania"; > "MU","Mauritius"; > "MX","Mexico"; > "FM","Micronesia"; > "MD","Moldavia"; > "MC","Monaco"; > "MN","Mongolia"; > "MS","Montserrat"; > "MA","Morocco"; > "MZ","Mozambique"; > "MM","Myanmar"; > "NA","Namibia"; > "NR","Nauru"; > "NP","Nepal"; > "AN","Netherland Antilles"; > "NL","Netherlands"; > "NT","Neutral Zone"; > "NC","New Caledonia (Fr.)"; > "NZ","New Zealand"; > "NI","Nicaragua"; > "NE","Niger"; > "NG","Nigeria"; > "NU","Niue"; > "NF","Norfolk Island"; > "MP","Northern Mariana Isl."; > "NO","Norway"; > "OM","Oman"; > "PK","Pakistan"; > "PW","Palau"; > "PA","Panama"; > "PG","Papua New"; > "PY","Paraguay"; > "PE","Peru"; > "PH","Philippines"; > "PN","Pitcairn"; > "PL","Poland"; > "PF","Polynesia (Fr.)"; > "PT","Portugal"; > "PR","Puerto Rico (US)"; > "QA","Qatar"; > "RE","Reunion (Fr.)"; > "RO","Romania"; > "RU","Russian Federation"; > "RW","Rwanda"; > "LC","Saint Lucia"; > "WS","Samoa"; > "SM","San Marino"; > "SA","Saudi Arabia"; > "SN","Senegal"; > "SC","Seychelles"; > "SL","Sierra Leone"; > "SG","Singapore"; > "SK","Slovak Republic"; > "SI","Slovenia"; > "SB","Solomon Islands"; > "SO","Somalia"; > "ZA","South Africa"; > "SU","Soviet Union"; > "ES","Spain"; > "LK","Sri Lanka"; > "SH","St. Helena"; > "PM","St. Pierre & Miquelon"; > "ST","St. Tome and Principe"; > "KN","St.Kitts Nevis Anguilla"; > "VC","St.Vincent & Grenadines"; > "SD","Sudan"; > "SR","Suriname"; > "SJ","Svalbard & Jan Mayen Is"; > "SZ","Swaziland"; > "SE","Sweden"; > "CH","Switzerland"; > "SY","Syria"; > "TJ","Tadjikistan"; > "TW","Taiwan"; > "TZ","Tanzania"; > "TH","Thailand"; > "TG","Togo"; > "TK","Tokelau"; > "TO","Tonga"; > "TT","Trinidad & Tobago"; > "TN","Tunisia"; > "TR","Turkey"; > "TM","Turkmenistan"; > "TC","Turks & Caicos Islands"; > "TV","Tuvalu"; > "UG","Uganda"; > "UA","Ukraine"; > "AE","United Arab Emirates"; > "UK","United Kingdom"; > "US","United States"; > "UY","Uruguay"; > "UM","US Minor outlying Isl."; > "UZ","Uzbekistan"; > "VU","Vanuatu"; > "VA","Vatican City State"; > "VE","Venezuela"; > "VN","Vietnam"; > "VG","Virgin Islands (British)"; > "VI","Virgin Islands (US)"; > "WF","Wallis & Futuna Islands"; > "EH","Western Sahara"; > "YE","Yemen"; > "YU","Yugoslavia"; > "ZR","Zaire"; > "ZM","Zambia"; > "ZW","Zimbabwe"; > > > > > At 16:22 04/06/02, you wrote: >> Apologies for being slightly OT, but has anyone got an array or list of >> countries that I can use to populate a pull-down menu? >> >> Or maybe a link to a resource to find this sort of stuff? >> >> Justin French >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retrieving Info from Cookies

2002-06-04 Thread Justin French
you should be able to access it via $_COOKIE['name'], or what I do, $cookie = $_COOKIE['name']. Justin French on 05/06/02 2:19 PM, Tom Ray ([EMAIL PROTECTED]) wrote: > I've been playing with cookies, and I've been able to write information > to a cookie, bu

Re: [PHP] Retrieving Info from Cookies

2002-06-04 Thread Justin French
try wrapping the vars inside curly braces {$_COOKIE['var']} when using them inside strings. eg echo "your username is {$_COOKIE['uid']}\n"; Justin French on 05/06/02 3:22 PM, Tom Ray ([EMAIL PROTECTED]) wrote: > when I do that it comes up with > &

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Justin French
is documentation for the php.ini file IN the the php.ini file, and on the website. Justin French on 05/06/02 10:40 PM, Zac Hillier ([EMAIL PROTECTED]) wrote: > Hi, > > Is it possible using php on our own apache server to create global variables > for virtual host without having t

[PHP] carrying a query string

2002-06-05 Thread Justin French
HTTP_REFERER isn't always set my the browser. Thanks, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dumb guy needs smart answer

2002-06-05 Thread Justin French
your case, c:\php4\pear), which is set in php.ini. Justin French on 06/06/02 4:22 PM, Doug ([EMAIL PROTECTED]) wrote: > I get the following error statement from a PHP insert I am trying at > http://www.solomonsporch.org/test.php > > Warning: Failed opening > 'http://www.g

[PHP] if() statements

2002-06-06 Thread Justin French
i'll go back to multiple includes... Is there a good way to time scripts too? All I can think of is comparing time() or microtime() from the start and end of the scripts. Thanks, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-06 Thread Justin French
gh PHP and have the session ID appended to the URLs... This can be done by giving all files a .php extension, or by forcing .html files through Apache (httpd.conf file needs to be modified). Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Anyone?

2002-06-06 Thread Justin French
they do it. Or check out a decent article on the subject. Security is a massive topic. Justin French Creative Director http://Indent.com.au on 07/06/02 3:18 AM, Jas ([EMAIL PROTECTED]) wrote: > I cannot believe that no one with alot of PHP and MySQL

[PHP] emulating --enable-trans-sid -- project idea?

2002-06-06 Thread Justin French
start work on it as an opensource project, hopefully with the support of this list to make sure it stays on the right track. On the other hand, there may be a huge flaw in my idea :D Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NEWBIE- Is this possible? How?!

2002-06-06 Thread Justin French
th the new text - include that text in your home page (or whatever). Justin French Creative Director http://Indent.com.au on 07/06/02 11:50 AM, Kevin J ([EMAIL PROTECTED]) wrote: > > Hello All Helpers! :) > > I was wondering if it is poss

[PHP] high % of capital letters in a string

2002-06-06 Thread Justin French
Hi, How would I determine if there was a high % (say > 40%) of capital letters in a string? I'm trying to think of a way of preventing endless use of capital letters in a message board, to stop YELLERS. Justin French Creative Director http://Inden

Re: [PHP] high % of capital letters in a string

2002-06-06 Thread Justin French
Thanks Lars & Evan... much appreciated! Justin French on 07/06/02 2:13 PM, Lars Torben Wilson ([EMAIL PROTECTED]) wrote: > On Thu, 2002-06-06 at 20:20, Justin French wrote: >> Hi, >> >> How would I determine if there was a high % (say > 40%) of capital letters &g

[PHP] restricting files

2002-06-07 Thread Justin French
Hi, I wish to restrict access to a dir of files, depending on if the user is a logged in and validated member. My first guess was to restrict access to the files with .htaccess, only allowing access if the referring (linking) script was something like members.php, so they'd only get the link if

Re: [PHP] CONVERT

2002-06-07 Thread Justin French
I think you'll get MUCH better answers if you join the MySQL mailing list, and search the MySQL website, rather than this PHP list. Also less chance of getting flamed :) Justin French on 08/06/02 1:20 PM, sonjaya ([EMAIL PROTECTED]) wrote: > i have databse paradox (extension *.db

Re: [PHP] restricting files

2002-06-07 Thread Justin French
MP3 and quick time -- otherwise the solution would be easy :) Thanks, Justin on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > On Saturday 08 June 2002 09:19, Justin French wrote: >> Hi, >> >> I wish to restrict access to a dir of files, depending on if the u

Re: [PHP] restricting files

2002-06-07 Thread Justin French
08 June 2002 13:46, Justin French wrote: >> MP3 and quick time -- otherwise the solution would be easy :) >> >> Thanks, >> >> Justin >> >> on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote: >>> On Saturday 08 June 2002 09:19, Justin Fren

Re: [PHP] restricting files

2002-06-09 Thread Justin French
Have you got a link for somewhere to look for a base set of functions for me to build on? Thx, Justin on 08/06/02 5:39 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote: > On Sat, 8 Jun 2002, Justin French wrote: >> When you say serve the files through a script, I assume you mean >>

[PHP] logic question

2002-06-09 Thread Justin French
h thread the user has read (and the date they read it), and if the thread has changed since that date, highlight it? Thanks in advance, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtok()

2002-06-10 Thread Justin French
you're trying to split it on a space (" ")... there are no spaces in "tony". "my name is tony" would prolly output my name is tony You could try splitting on "" (nothing), or use a different function which places a after each character. Justin on 11/06/02 1:34 PM, Anthony Ritter ([EMAI

Re: [PHP] strtok()

2002-06-10 Thread Justin French
I *think* it's because you don't have an { at the beginning of the while() loop "; while ($token!="") { $token=strtok(" "); echo $token.""; } ?> Or, use the example in the manual as a guide: "; $tok = strtok(""); } ?> Justin on 11/06/02 1:58 PM, Anthony Ritter

Re: [PHP] Adding zeros in front

2002-06-10 Thread Justin French
k the length of $row[main_group], and add some zeros to the start of it, until it's length = your desired length. I'm sure there are other ways, and it'd be best if you wrapped it in a function :) Justin French on 11/06/02 1:11 PM, César L. Aracena ([EMAIL PROTECTED]) wrote: > Hi

Re: [PHP] Include question

2002-06-11 Thread Justin French
Check that you actually have wrapped around the PHP code in somefile.php that you include. Justin French on 12/06/02 11:36 AM, Tom Ray ([EMAIL PROTECTED]) wrote: > Yes, but according to http://www.php.net/manual/en/function.include.php > I should be able to delcare the include and the

[PHP] bulk mail()

2002-06-12 Thread Justin French
do I have? Break the mailing list up into batches of 40 or so? How would I implement something like this? Any advice / concepts / ideas welcome! Justin French Creative Director http://Indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forcing file downloads

2002-06-12 Thread Justin French
is a widely accepted practice for forcing downloads (a pop-up window to download a file), given the problems with older versions of IE? 2. Can someone tell me what the %20 is there for? Regards, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Justin French
Can we take this off list PS: you only get what you pay for Justin French on 12/06/02 10:49 PM, The_RadiX ([EMAIL PROTECTED]) wrote: > Abusing you??? > > > I am quite sorry but I am lost as to when I abused you? > > > I simply had a "form of service&q

Re: [PHP] Else/For loop

2002-06-12 Thread Justin French
Wouldn't you need if ( $num_results == 0 ) not if ( $num_results = 0 ) if you do the latter, it will allways be true, because you're setting the var... easy mistake to make! check out comparisons in the manual for more info. Justin French on 12/06/02 11:19 PM, Roberts, Ma

Re: [PHP] Email validation

2002-06-12 Thread Justin French
, but decided not to re-invent the wheel... I've adopted this script on every project from now on, thanks to the kind person on this list who let me know about it! Justin French on 13/06/02 2:56 AM, Jeroen Timmers ([EMAIL PROTECTED]) wrote: > Is there a simple function that validate an ema

Re: [PHP] A question

2002-06-12 Thread Justin French
There is a difference in the default way php installs between 4.1.x and 4.2... the newer version comes with register_globals Off in the php.ini file. Simple solution, change this value to On in your php.ini file, and restart. However, you scripts will be a lot more secure if you leave register_g

[PHP] sessions in multiple browser windows

2002-06-13 Thread Justin French
P doesn't like it, trashing them on purpose b) because I've got a problem with my session code somewhere ??? Many thanks, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Justin French
would. Put mail.php in your doc root and give it a try -- works fine on every browser I've been able to test on. Justin French Creative Director http://Indent.com.au on 14/06/02 7:02 AM, Manuel Lemos ([EMAIL PROTECTED]) wrote: > I had that

Re: [PHP] security advice...

2002-06-13 Thread Justin French
That's a big can of worms :) I think perhaps start with one problem, like "sessions", then move onto another problem. Not really sure what you mean by cross site scripting... maybe you mean writing decent code once, and having it portable to many new projects with little fuss?

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Justin French
Hi, on 14/06/02 11:53 AM, Manuel Lemos ([EMAIL PROTECTED]) wrote: > Hello, > > On 06/13/2002 10:18 PM, Justin French wrote: >> I don't think relying on JavaScript for something so integral as an email >> address it THAT good an idea... > > Why not? I use this

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Justin French
he target market. I would expect the users of a web dev site would be clued up, but maybe not the visitors to a craft and sewing store. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Justin French
e can also be sued for making demands about the user's method of surfing. SOCOG already copped this in Sydney 2002 didn't they??? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting help on php

2002-06-14 Thread Justin French
browser to a different URL *IF* you haven't sent anything to the browser yet (ie, before or ) using PHP's header function (header("Location: blah2.php")). http://php.net/header Justin French on 15/06/02 12:36 AM, Hotmail ([EMAIL PROTECTED]) wrote: > Dear sir, &g

Re: [PHP] bulk mail()

2002-06-14 Thread Justin French
ing process into batches of 10 or 20 rows using a redirect, encorporate a log (so that I can remove bad address' that may slow it down), and then see where to go from there. Thanks for everyone's help. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downside to using login sessions?

2002-06-15 Thread Justin French
focused answer :) Justin French on 15/06/02 6:59 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: > I am planning to change how my site stores logins to using sessions. > Are there any reasons not to do this? Reasons against it I should > know? Thanks for your input. > -- PHP General

Re: [PHP] Downside to using login sessions?

2002-06-15 Thread Justin French
makes sense to store the password in a cookie this way as well, so that people digging around can't possibly figure it out. I guess leaving the password in plain text in the cookie opens a small security hole which is unneccassary, as long as you're storing an encrypted password in the

Re: [PHP] Sharing form information

2002-06-15 Thread Justin French
ll. for example > the following doesn't work properly as it inserts it, but on a submit.. > again the values don't belong to $f2. > > insert($t,$c = cell()); > insert($c, input_text(array("name"=>"matrix", > "value"=>"$ohms",

Re: [PHP] RE: [PHP-DB] Extracting Time??

2002-06-16 Thread Justin French
I don't think there's a fucntion out-of-the-box for this, but it's only 12 months, so it'd be quite a simple function that you'd only ever have to write once :) Justin French on 16/06/02 6:20 PM, César Aracena ([EMAIL PROTECTED]) wrote: > Well... actually, I

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Justin French
on 19/06/02 12:27 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote: > I thought we answered this question already! Hehe yup -- a different thread that I started :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Justin French
our help files, or grab BBEdit ($) or BBEdit lite (!$) from bare bones software. Justin French on 19/06/02 1:12 AM, Kevin Ruiz ([EMAIL PROTECTED]) wrote: > I'm sorry...I think I was unclear. > > Even if my script has an error on say line 42 it still tells me that the > error is on

Re: [PHP] Sessions and variables dum question

2002-06-18 Thread Justin French
When you're dealing with session variables, it's a good idea to refer to them using the new global variables. "; echo $_SESSION['pass'] . ""; } else { echo "not logged in"; } ?> Of course this is no where near production/secure code :D Justin on 19/06/02 1:54 AM, web

Re: [PHP] Incoming Development

2002-06-18 Thread Justin French
ession system, then work your way up from there. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Incoming Development

2002-06-18 Thread Justin French
even if it was in a library, so I don't like your chances. To get started with sessions, I'd look at Kevin Yank's article on sitepoint.com, but it uses cookies, and isn't exactly what you're after, but it's been the basis of my entire session library. Justin French

Re: [PHP] dynamic water marks?

2002-06-18 Thread Justin French
If a css layer or anything esle that DOESN'T change the source file was employed, it would only act as a very mild deterent. Why not just set-up an action script (macro) in Photoshop to batch process all the images with a watermark... end of story. Justin French on 19/06/02 2:22 PM, Pet

Re: [PHP] insert date with a calendar

2002-06-20 Thread Justin French
er you want as strings, then insert them into your DB. Easy. Justin French on 21/06/02 1:51 AM, Kevin Meredith ([EMAIL PROTECTED]) wrote: > Hi there. > > I have an app that requires users to insert an 'end' date. The date is > saved in MYSQL in the date format. The pro

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