> I see this question asked here all the time, and recently had
> to implement
> it.
Ugh, apologies for the crappy formatting.
*slap.outlook*
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
metype/here");
And the code guts:
Hope this helps someone out there...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'
--
PHP General Mailing List (http://www.php.net/)
T
ou can reinstall if needed).
That said, I do find it kinda easy to compile PHP from the source
code these days, and I'm no *nix guru.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.
> It seams all I have to do is put at the top of the
> page and it should work just like putting variables into a page.
>
> But is does nothing. I would look in the manual or the archives but I
> don't no wear or what to look for. It seams this should be simple what
> am I missing hear
It sound
> Is there anyway one can protect this?
Include the passwords from another file that doesn't need
to be web-accessible.
Or, find a virtual host that doesn't allow this kind of
thing :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'
> how would I add the query criteria to the link? and how would I set up
> showdata to take the information from the selected link?
Where you would usually have a form such as:
Display Value
... to use it as a link, you would use:
Display Value
Jason
--
Jason Murray
> text file:
> This is
> a
>
> test
>
> output:
> This is a test
HTML ignores carriage returns. You could wrap it in tags, or
tags.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
> I am making a drop down menu script in PHP so it is compatible with non
> JavaScript browsers like Netscape 6.0 The problem I am having is that
when
> I make tables it doesn't always load the background in the tables. I
> suspect that maybe this is something with PHP because when I make html
>
> >> How about using something like puTTY or SecureCRT?
> >
> >Just a side note. I also like SecureCRT, but it isn't "free" (which
> >was the original request) unless you install an "alternative license."
> >It's worth the $99 to me, but the requestor was looking for free.
>
> I like just regu
;ll throw in that NeuLevel (the .biz registry) are
using PHP ... :)
Well, I thought it was kinda cool anyway.
It's funny how many comments we get here at Melbourne IT about how
pleased various people are to see us using it :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne
> Thanks - what I want to do is just say something like
> fputcsv($myarray) - and not have to worry about putting in the
> commas or whatever myself... will fputs do that?
>
> (In case it wasn't clear - I'm wanting to write back to the
> file, having already read from it using fgetcsv)
How ab
> Hi all - just wondering if anyone knows of a function like
> fputcsv - that is, writes a line to a csv file - opposite of fgetcsv.
A CSV file is just a text file with a different file extension,
so you can use fgets to write it out...
Jason
--
PHP General Mailing List (http://www.php.net/)
to tell me which is easier to get up and running?
Can anyone shed some light on this for me? It would be much appreciated.
Thanks
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'
-
> Is there a function to check of the existance of character x in
> string y which returns true or false only?
Yes, strstr().
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the lis
> Okay I am taking a number from a mySQL database and I want to
> put quotes on that number?
$databasenumber = "\"123.123.123.123\"";
or
$databasenumber = '"123.123.123.123"';
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
> As you can see. I am using the {% and %} to delimit the parts
> that need to be replaced. I can't get the replacements to work
> right though. Can someone help?
$text = ereg_replace("\{\%Last_Name\%\}", $lastname, $text);
Should be something like that :)
Jason
--
PHP General Mailing Lis
> Thanks to everyone for the help - unfortunately my problem
> seems to be the function I'm using to do the redirecting. header() is
> supposed to be the first item passed. What I'm trying to do is use a line
of
> code well down into the logic of my script to redirect the user to another
> p
> and the line 236 is: $url=ereg_replace("&","&",$url);
BADPAT probably means "Bad Pattern".
Try:$url=ereg_replace("\&\;","&",$url);
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
> I try to store phpcode in a mysql-database, to have them ready, when
> they´ll be needed
> When I request these, it seems that they will not be parsed.
> Any suggestion?
Eval() it.
http://www.php.net/manual/en/function.eval.php
Jason
--
Jason Murray
[EMAIL PROTECTED]
W
It's 1:30am here and I'm still at work :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
> > it's my first post on this list, and my doubt is...
> >
> > how can i take a file.txt and
> >
> > 1 - know how many lines i have in this text
> > 2 - print line 5 until 10
> Is there any chance for you to use a database?
> these thing would become MUCH, MUCH easier.
Actually, this is reall
e, if possible?
I didn't see the purpose (I'm tired) - I just answered the q cos
I had a heart attack when I saw an answer of "use a database" for
counting line numbers ;)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use
> Leave the messages on the server and get them via pop3s.
> Outlook is capable of pop3 via ssl.
I wouldn't do that - it makes the server a great hack target.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
> I'm looking in the docs but printf doesn't seem to be able to do that.
You want http://www.php.net/manual/en/function.number-format.php.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
> What's the best (secure?) way of transmitting sensitive
> information over email? I'm helping some friends build an online
> order form. They have a Thawte certificate and are already using
> it for the order form, but they would like the information to be
> emailed to them when an order i
> if($l=="d") {
> log_user();
> } else if($r=="d") {
> add_user();
> } else {
> $r ="y";
> }
looks like:
1. $l is not set to "d".
2. $r is not set to "d".
$r may be set to "y" by this code. Did you check it?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
> Any ideas?
Yes - get it to output the actual SQL that's running.
That way you can execute it yourself, and see what's going wrong.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
> One question though. Why does your have a name
> attribute at all?
Probably so it can be addressed through JavaScript.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list a
> Read_sql SELECT * FROM TBL_Picture WHERE FLD_FileName =
> "SailBoat.jpg"and FLD_Path ="
/var/www/html/slidecollection/WinterCarnival"
This is a little hideous.
For one thing, you should probably use ' and not ". It may not
make a difference to MySQL, but it does to other databases you
may us
> I have 2 variables here that store date start and date end, I
> want to compare the lenght between the start date and the end
> date, how would I do that?
> $dateStart = "$year" . "$mon" . "$date" ; ( for instance, it
> will return "20010102")
> $dateEnd = "$yearEnd" . "$monEnd" . "$dateEnd"
the
fuss we'd have if we required JavaScript for something. :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"What'll Scorpy use wormhole technology for?"
'Faster pizza delivery.'
--
PHP General Mailing List (http://www.php.net/)
To uns
> Yeah... I know that... but, c'mon... a browser that doesn't support
> Javascript can't surf trough at least 30% of all websites... it's the
> absolute minority. Netscape itself is a minority.
That's not the point. You should be writing the code such that you
shouldn't need to make this kind
> I never had any trouble using header() to redirect, but
> wouldn't something like this work even better (without
> worring about previous outputs)??
>
> function redirect($dest)
> {
> ?>
>
> parent.location.href='=$dest?>';
>
> }
>
>
> Is there any PHP native function to redirect to another page or URL?
No, because you can only redirect a browser to another page using the
appropriate HTTP command (it is a header) or JavaScript.
> I would like that once the user clicks on home.php4 and a few
> verifications are done, he/she
> I'm having a problem with HTMLspecialchars and nl2br interfearing with
> each other. Obviously, I'm trying to stop malicous HTML/scripts from
> being entered into my guestbook, but I'm also trying to add spacing.
> nl2br adds , but HTMLspecialchars tells it to not show that.
>
> Anyways, I'm s
> $recipient = $email;
> $headers = "From: Sirplus.tv <[EMAIL PROTECTED]>\n";
> $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
>
> This grabs the email address out of MySql and send them the email that
> would be following. However, I want a copy to go to me as well. What
> line of code to
HP files, open it in WordPad.
Me, I use HomeSite.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
> I need to know if there is a program out there that I can use to edit
> the PHP files. I use CuteFTP to download the files from my server as I
> need to change some wording around from time to time. Does anyone know
> the correct procedure for downloading a php file with CuteFTP and then a
> p
> I know there is a way to do it in Perl, but is there anyway
> in PHP to display all of the global variables. Such as OS,
> browser, date/time, that sort of thing
>
> I know I could print each one seperately, but are they all
> stored in an array somewhere?
That should show you everything
> Add two more sets of statements like those you have for the
> first query. That's it. There's nothing special to do.
MySQL also lets you stack insert statements:
$sql="INSERT INTO t1 ('A'); INSERT INTO t2 ('B'); INSERT INTO t3 ('C');"
This would work (but if you get an error, you'll have tr
> Easy. Just use fopen('http://localhost/file.asp') then fread
> the data you want. I do this technique to read Access tables
> from a Linux box.
But that gives you the RESULTS of the ASP script, not the script
itself.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> $test="b";
> if ($test=="a"):
> ?>
>value is a
> else:
> ?>
>value is not a
> endif;
> ?>
>
> It seems to work, ie it outputs different text depending on
> the value of $test. But is it safe, can I rely on this
> behaviour?
Yes can rely on it, but I just think it's somewhat ugly.
> > > while($row = mysql_fetch_row($rs))
> >
> > ^^^ should be "array".
>
> Why should it be array and not, let's say, object?
Because I went on to use it as if I'd used fetch_array in the rest
of the example code, I'd wager.
:)
Jason
--
PHP General Mailing L
> Disabling magic quote will reduce amount of code and increase
> performance a little, unless application is very small. Without
> magic_quote, script does not have to get rid of slashes to use
> value from browser and add slashes again before feeding to
> database. Code would be cleaner and easie
> $device = mysql_result($rs); // line 19
mysql_result expects the result set, the row number and the field name.
You should not need this, anyway.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
> $f=fopen('http://your.server/legacyscript.asp"), "r");
> if($f)
> {
> /*read the data from the file handle and deal with it as you
> wish - you
> might want to process it somehow, or just output it as part
> of the current
> page*/
> fclose($fp);
> }
This won't include the ASP script.
It w
Brief correction.
> while($row = mysql_fetch_row($rs))
^^^ should be "array".
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
>
>$query ="SELECT DISTINCT device FROM 3backup ORDER BY device";
> $rs =mysql_query($query);
$rs is now the result set for your SQL.
> $device = mysql_result($rs, 'device');
This is wrong. Check the manual page for how you use mysql_result.
http://www.php.net/mysql-result
> while($
> say in my db i have multiple values that are the same as well
> as different values... how can i restrict it to showing each
> value just once?
Sounds like you want a "SELECT DISTINCT".
You might want to have a look at www.sqlcourse.com.
Jason
--
PHP General Mailing List (http://www.php.n
> I need to name a file like this
> $fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w");
>
> the file gets named echo $agentcodeCyberTrac.ctr, now I want
> a real value in $agentcode, there is a value in there so it
> must be my syntax, anyone help?
$fp=fopen($agentcode.'CyberTrac.ctr', "w");
> ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF
>||
> |||
>
> So basically it is looking for the "/coverage/" folder,
> anything can come before it, and anything after it??
if (strstr($PHP_SELF, "/coverage/
on
I have is that you should obscure the email addresses somehow,
perhaps like Freshmeat does by changing an address "[EMAIL PROTECTED]"
to "whee-at-foo-dot-bar" to avoid spambots.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
> Isn't this suppose to be an infinite loop?
>
> while ($row is assigned to mysql_fetch_array($query)) {
> do stuffs;
> }
>
> someone correct me if I'm wrong?
They key here is that there's a single "=" in the condition.
... this is actually "while 'row equals the result of
mysql_fetch_array
> Ultra 1
This shouldn't work. It will produce:
Ultra 1
Try moving your " and a space:
>Ultra 1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PR
rustrating... I'm sure I've
just done something stupid.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> This works great, except it doesn't accept the country code
> domains (.au, etc). So I changed the number of characters to {2,3} at the
> end of the regex:
> ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3})
>
> But then this works for the country code domains, but cuts
> off a character of the
===
PDFLib was installed prior to attempting compilation.
Can anyone shed some light on this please?
Thanks
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
> > > if ($HTTP_USER_AGENT = "Mozilla")
>
>^ This needs to be "=="
Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))".
*slap.self*
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbo
> heres what is result in IE...which shouldnt show up at
> this code isnt parsing like I expect..
>
> if ($HTTP_USER_AGENT = "Mozilla")
^ This needs to be "=="
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
> Fatal error: Call to unsupported or undefined function
> foreach() in ...
You're probably using PHP3 on that Apache server.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To uns
> Perhaps i'm not following what you're trying to do, but why not
> manipulate the height/width img tag attributes to make it look like a
> thumbnail, but then when displaying it for real, take them out?
Because then you have to download the entire large image.
Large images are bigger. :)
Jaso
you actually ask your questions sometimes too you
know 8)
> If there aren't any around, I'll start one on Yahoogroups or
> some other similar service.
Feel free to do it, and best of luck. :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chai
> Could someone point me in the right direction...
> I need to edit existing records in a mysql database using PHP.
http://www.phpwizard.net/
You want phpMyAdmin.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List
> you can't stream output like that...netscape will wait until your
> HTML output is done, but if you're infinitely looping, it won't be, and
> you'll never get your tags.i've seen a number of
> posts trying to do chats and flush() the output, but bottom line, if you
> don't send it a com
> 1.
> 2.
Both seem fine to me.
> 3. At the time of upload, it is possible to specify a list of
> users who can "view" and "modify" the file. Currently I am storing
> this list as a whitespace-separated list in a mySQL TEXT column.
>
> Column "view" data: 3 11 1
>
> At the time of display
> ok I've changed it the SELECT to CHECKED but it had no effect ...
> 'n') { echo 'CHECKED'; }?>>
>
> I've also tried it with a "n" value so it reads like
> == 'n') { echo 'CHECKED'; }?>> but that didn't have any luck
> either ... is there anything else i can do?
Send some code to the list
> Is there a way to find out the mumber of days of a given month? for
> example a function that I pass the month number i.e. 02 (February) and
> it returns 28?
Date("t", $unixtimestamp);
If you have a month "2", you need a year as well since February's days vary
according to the year, so:
$days
> Why wouldn't this redirect?
Because you need to do this:
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> Can anyone tell me what the best form of Email validation
> there is? It needs to be quick & as open to - and . as possible.
We use this one on www.inww.com:
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing
c).
I'd go for tab delimiting over comma delimiting, since your text fields
will probably contain commas but will *very* *exceedingly* rarely have
tabs.
I've ripped some code out of phpMyAdmin to do this (ta Tobias, if you're
watching ;)) - I can post it if you want to.
J
reliability,
uptime and client happiness.
I wouldn't *dream* of moving a client's site from the hosting company
to my own system - I don't want to be blamed for the downtime, and any
server problems.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch t
> if( $submit ){
> print "I love Montana";
> >>>put form #2 in here w/ action = $PHP_SELF make sure you
> set $submit2 to
> some value
> )
> elseif( $submit2 ){
> print "Part two of script";
> }
> else{
> >>>put your form in here w/ action= $PHP_SELF
> }
Actually - do it in the reverse order, be
me real-life examples that you'd care to discuss in the
> open? Using real-life examples (with the added realism of budgets,
> legacy code, deadlines, etc.) may help everyone here.
I agree - throw us some examples of what you're thinking about, Justin.
Jason
--
Jason Murray
[E
> The older look was neat to show off to people re: pop up menus, etc.,
> but this is a real speed demon, and will be much more useful for
> searching around.
I agree. Very smart, smooth and clean!
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the co
e if a match is found?
>
> Any hints would be great.
>
> Many thanks
>
> Roland
This will do it:
$dim = sizeof($arrLoginName);
for ($nr = 0; $nr < $dim; $nr++) {
if (match) {
return 1;
}
}
Greetings,
Jason
--
Jason Murray
Developer
http:/
> I have exchange link business program with other sites,
> basically I give a hyper link to come to our store to them
> and when user click on the link on their site to come to us,
> they will genrate income from it too.
> The question is that how do I know that when a user click on
> the li
Use include(). Like
http://www.jwebmedia.com/
1 877 525 jWEB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi there,
$ob->date is '2000/03/06'.
$d = ereg_replace('([0-9]*)-([0-9]*)-([0-9]*)',
'\2/\3/\1', $ob->date);
$d is now '03/06/2000'.
$foo = getdate(strtotime($d)+86400);
Here I have to add an entire day to the value of strtotime($d) to get
the expected results for below.
ec
> I'm studying some code from the net and was kinda curious. There are
> places where it references variables like this:
>
> $$testvar
>
> What's the difference between that and
>
> $testvar
>
> ?
$testvar means "the value of the variable named 'testvar'".
$$testvar means "the
g PHP generated graphics?
That's possible.
You might like to try manually downloading the file using a
utility like wget or curl. This will show you if PHP is
outputting any errors (which would thus result in a broken
image).
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Me
te currently
> due to DB difficulties with the host (i.e., requested the DB and am still
> waiting..)
I'm evaluating PHPNuke at the moment. It certainly seems to have the
goods on customisation.
Besides which, you can always edit and fiddle :)
Jason
--
Jason Murray
[EMAIL PROTECT
>
>
>
>
Don't you need a MAX_FILE_SIZE for this to work properly?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> Great, thanks.
> I looked at the file(), but it sounded like is was just for
> local file use.
oops, should've been include(). Sorry :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
");
file("whatyouwanttosend");
> ( I am not sure if my first email went through, I got an
> error back about the mailbox being full)
I didn't see it ...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mail
PHP code is executed on the server side, not the browser.
PHP code is executed on the server side, not the browser.
:)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
r the help, and I hope my question is clear. :)
>
> Jason
>
Something like
select tbl1.id as tbl1_id, tbl2.id as tbl2_id
$ob->tbl1_id;
should work... o fthe top of my head.
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
--
PHP General Mailing Li
.
Can someone give me a clue, please?
Thanks,
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Hi,
I came across this:
$confidential = 0;
echo "$confidential " . ($confidential == "yes");
In which "0 1" was printed.
Is there something I'm missing?
Thanks,
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
> I have a strange problem, when a user inputs the quantity
> into a text input field in a cart, I want to be able to test
> to see if the value is a integer if it isn't then default it to 1
>
> if ( !is_int($Qty) ) {
> $Qty = 1;
> }
Off the top of my head (and thus probably hideously wrong),
> > Does anybody know how to upload a file if the only information you
> > have is the string to the location of the file on the clients hard
> > drive. Also, the string was not retrieved using the form method, which
> > I know about. This method can't be used and I need to be able to upload
>
> Doesn't anybody know anything?? Even a nope it can't be done
> is a better response than nothing?
"Nope, it can't be done."
Well ... actually, it *can* be done. But you ruled out the only
possible method of doing it, for some reason.
Jason
--
Jason Murr
> Is there a script I can run to tell which version of PHP the
> server is using to run it?
http://uptime.netcraft.com/up/graph/
Enter the URL under "what's that site running?", and assuming PHP
has not been instructed to keep itself quiet on that box you'll
see the
all HTML and its all correct and working in NN when its
> taken out of the php script)
You can't attach files on the mailing list, but I'd bet good money
that you've forgotten a somewhere important. Chuck in a
before and see what happens.
Jason
--
Jason Murray
[EMAIL PROTECTE
> When a form is submitted from an image (e.g. ) this
> will be passed in the URL as paging.x=SOME_NUMBER. If I try and
> access this variable as ${paging.x} in the subsequent PHP script
> I get nothing. How can I access this variable? all I want to do
> is test for it's existance ? Simple as
his alone for now on the list? It's already
gone on for far too long.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
e it to private mail.
And, try some valium for loss of sleep. :)
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> more clearly, if multiple instances occur, any new instance
> of SELECTED will supersede any previous instance.
In MSIE, yeah. Netscape ignores any subsequent SELECTED's.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
> The title of this book doesn't really matter to "me"!
>
> When I get that back, and read it from the file, it always
> ends up like:
>
> The title of this book doesn\'t really matter to \"me\"!
>
> Note the addition of the escape sequences. How can I stop
> this? Is there some function in
s just an illustration. Otherwise, if you are not
careful, you'll get infinite loops or some other wierdness.
Regards,
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> I am writing a script that will send me an email every time a 404
> error is returned for an http request. So far I have the script
> working so that it will email me and inform me of the URL of the
> page that has the offending link by using the HTTP_REFERER environment
> variable. I woul
201 - 300 of 350 matches
Mail list logo