RE: [PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Jason Murray
> 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]

[PHP] Send attachments with an email (Sample Code for you lot :))

2001-05-21 Thread Jason Murray
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

RE: [PHP] Recompiling PHP with MySQL

2001-05-21 Thread Jason Murray
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.

RE: [PHP] should be simple

2001-05-20 Thread Jason Murray
> 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

RE: [PHP] way to protect .php file

2001-05-16 Thread Jason Murray
> 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'

RE: [PHP] Links as a query point instead of form drop down box

2001-05-16 Thread Jason Murray
> 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

RE: [PHP] - Hard return in readfile

2001-05-16 Thread 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

RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-16 Thread Jason Murray
> 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 >

RE: [PHP] ssh

2001-05-15 Thread Jason Murray
> >> 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

RE: [PHP] HallMark uses PHP!!!!

2001-05-13 Thread Jason Murray
;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

RE: [PHP] fgetcsv

2001-05-13 Thread Jason Murray
> 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

RE: [PHP] fgetcsv

2001-05-13 Thread Jason Murray
> 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/)

[PHP] Moving existing systems from ColdFusion to PHP?

2001-05-09 Thread Jason Murray
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.' -

RE: [PHP] Easy one

2001-05-09 Thread Jason Murray
> 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

RE: [PHP] Putting quotes in?

2001-05-08 Thread Jason Murray
> 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

RE: [PHP] Pattern matching and replacement!

2001-05-08 Thread Jason Murray
> 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

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jason Murray
> 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

RE: [PHP] REG_BADPAT ERROR!

2001-05-02 Thread Jason Murray
> 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

RE: [PHP] Storing php-code in mysqlDB

2001-04-27 Thread Jason Murray
> 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

RE: [PHP] mysql table speed

2001-04-27 Thread Jason Murray
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

RE: [PHP] Lines

2001-04-25 Thread Jason Murray
> > 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

RE: [PHP] Lines

2001-04-25 Thread Jason Murray
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

RE: [PHP] Sensitive Information (like CC)

2001-04-24 Thread Jason Murray
> 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

RE: [PHP] Convert a numeric string

2001-04-24 Thread Jason Murray
> 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

RE: [PHP] Sensitive Information (like CC)

2001-04-23 Thread Jason Murray
> 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

RE: [PHP] function in if statement not executed ?-->> Help

2001-04-23 Thread Jason Murray
> 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

RE: [PHP] Now, why doesn't this work?

2001-04-23 Thread Jason Murray
> 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

RE: [PHP] Using

2001-04-23 Thread Jason Murray
> 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

RE: [PHP] trouble reading a database (fwd)

2001-04-23 Thread Jason Murray
> 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

RE: [PHP] calculate length between date to date

2001-04-22 Thread Jason Murray
> 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"

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
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

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> 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

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> 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=''; > > } > >

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> 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

RE: [PHP] HTMLSpecialchars

2001-04-18 Thread Jason Murray
> 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

RE: [PHP] Different Question??

2001-04-18 Thread Jason Murray
> $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

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jason Murray
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

RE: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Jason Murray
> 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

RE: [PHP] Global variables

2001-04-18 Thread Jason Murray
> 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

RE: [PHP] Add data to three tables at once from one form

2001-04-18 Thread Jason Murray
> 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

RE: [PHP] How do i include ASP script into PHP...??!

2001-04-17 Thread Jason Murray
> 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,

RE: [PHP] Is this kind of code safe?

2001-04-17 Thread Jason Murray
> $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.

RE: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Jason Murray
> > > 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

RE: [PHP] is it safe to stripslashes() on all form variables?

2001-04-17 Thread Jason Murray
> 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

RE: [PHP] Wrong parameter count

2001-04-16 Thread Jason Murray
> $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

RE: [PHP] How do i include ASP script into PHP...??!

2001-04-16 Thread Jason Murray
> $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

RE: [PHP] Populating HTML List boxes From DB

2001-04-16 Thread Jason Murray
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,

RE: [PHP] Populating HTML List boxes From DB

2001-04-16 Thread Jason Murray
> >$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($

RE: [PHP] Populating HTML List boxes From DB

2001-04-16 Thread Jason Murray
> 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

RE: [PHP] syntax

2001-04-11 Thread Jason Murray
> 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");

RE: [PHP] Properly formatted ereg??

2001-04-10 Thread Jason Murray
> 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/

RE: [PHP] Need Feedback

2001-04-10 Thread Jason Murray
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!

RE: [PHP] while loop

2001-04-09 Thread Jason Murray
> 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

RE: [PHP] Another Select question

2001-04-09 Thread Jason Murray
> 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

[PHP] Libcurl problems

2001-04-09 Thread Jason Murray
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]

RE: [PHP] More Email ereg Validation

2001-04-04 Thread Jason Murray
> 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

[PHP] Installation problems - PHP4.0.1 / PDFLib / --with-dom

2001-04-04 Thread Jason Murray
=== 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:

RE: [PHP] help with parse

2001-04-03 Thread Jason Murray
> > > 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

RE: [PHP] help with parse

2001-04-03 Thread Jason Murray
> 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

RE: [PHP] foreach in Apache

2001-04-02 Thread Jason Murray
> 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

RE: [PHP] Image Resizing in PHP

2001-03-29 Thread Jason Murray
> 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

RE: [PHP] This PHP list

2001-03-28 Thread Jason Murray
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

RE: [PHP] Editing Records

2001-03-28 Thread Jason Murray
> 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

RE: [PHP] No output

2001-03-27 Thread Jason Murray
> 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

RE: [PHP] File upload and database optimization questions

2001-03-26 Thread Jason Murray
> 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

RE: [PHP] setting Check box

2001-03-26 Thread Jason Murray
> 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

RE: [PHP] getting number of days in agiven month

2001-03-26 Thread Jason Murray
> 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

RE: [PHP] header redirection

2001-03-20 Thread Jason Murray
> 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]

RE: [PHP] Email validation

2001-03-20 Thread Jason Murray
> 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

RE: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jason Murray
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

RE: [PHP] Anyone running their own Servers & DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Jason Murray
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

RE: [PHP] Multi-Step Script

2001-03-13 Thread Jason Murray
> 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

RE: [PHP] tutorials on good database design

2001-03-13 Thread Jason Murray
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

RE: [PHP] new php.net look

2001-03-07 Thread Jason Murray
> 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

Re: [PHP] explode question

2001-03-07 Thread Jason Murray
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:/

RE: [PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread Jason Murray
> 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

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jason Murray
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]

[PHP] strtotime question

2001-03-06 Thread Jason Murray
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

RE: [PHP] what does $$ mean?

2001-03-04 Thread Jason Murray
> 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

RE: [PHP] Dumb newbie graphics question

2001-03-01 Thread Jason Murray
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

RE: [PHP] best slashdot?

2001-02-28 Thread Jason Murray
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

RE: [PHP] File Upload Strangeness

2001-02-27 Thread Jason Murray
> > > > 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]

RE: [PHP] File downloading?

2001-02-27 Thread Jason Murray
> 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

RE: [PHP] File downloading?

2001-02-27 Thread Jason Murray
"); 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

RE: [PHP] calling functions

2001-02-26 Thread Jason Murray
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

Re: [PHP] 2 columns same name cuz of a join

2001-02-26 Thread Jason Murray
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

[PHP] File Upload Strangeness

2001-02-26 Thread Jason Murray
. 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

[PHP] Variable Strangeness

2001-02-21 Thread Jason Murray
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

RE: [PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Jason Murray
> 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),

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> > 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 >

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> 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

RE: [PHP] How To Tell Which v. PHP?

2001-02-12 Thread Jason Murray
> 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

RE: [PHP] Nothing Showling up in Netscape

2001-02-12 Thread Jason Murray
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

RE: [PHP] input type equals image

2001-02-12 Thread Jason Murray
> 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

RE: [PHP] "wide open"

2001-02-11 Thread Jason Murray
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]

RE: [PHP] To The Hacker: CodeBoy

2001-02-11 Thread Jason Murray
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]

RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread Jason Murray
> 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

RE: [PHP] UN-Escaping text from a form submit?

2001-02-07 Thread Jason Murray
> 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

Re: [PHP] Is there a 'redo' loop control function?

2001-02-01 Thread Jason Murray
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]

RE: [PHP] 404 error checker

2001-01-31 Thread Jason Murray
> 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

<    1   2   3   4   >