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
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
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
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
>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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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
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.
&
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
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
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:
>>
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
--
$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
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
, 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
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:
> --
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
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
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
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
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
> 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
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
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
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 &
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
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
>> $result = mysql_query("SELECT * FROM resellers WHERE
>> company='$_POST[company]'");
>> if($result && mysql_num_rows($result) > 0)
>> {
>> // insert
>> }
>> else
>> {
>> //something else
>> }
>>
>>
&g
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
>
&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>>
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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?
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
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
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
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
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
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
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
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",
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
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
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
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
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
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
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
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
801 - 900 of 1432 matches
Mail list logo