Re: Re: [PHP] exec() Error

2008-06-26 Thread Jason Murray
Alice, If you are already set 755 on the CGI, it looks like it might be a webserver configuration issue. If you are using Apache (I'm assuming you are) you might want to take a look at http://httpd.apache.org/docs/2.0/howto/cgi.html#configuringapachetopermitcgi for some hints on how to make

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Jason Murray
I'm thinking: ?php header(HTTP/1.1 410 Gone); die(); ? Regards, Jason On Thu, Jun 26, 2008 at 1:54 PM, David Giragosian [EMAIL PROTECTED] wrote: My favorite vi command: e! Damn it. e! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Jason Murray
Body not found? Who do you think I am? Jesus? On Thu, Jun 26, 2008 at 3:01 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2008-06-26 at 14:54 -0400, Jason Murray wrote: I'm thinking: ?php header(HTTP/1.1 410 Gone); die(); ? What about a 404? :) ?php header( 'HTTP/1.1 404

Re: [PHP] changing order of items

2008-05-15 Thread Jason Murray
On Thu, May 15, 2008 at 2:09 PM, afan pasalic [EMAIL PROTECTED] wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql

Re: [PHP] Two word array Value

2008-05-14 Thread Jason Murray
Try: echo tdinput name=.urlencode($key). type=checkbox value=.urlencode($value)./tdtd. $value./td; On Wed, May 14, 2008 at 4:02 PM, Mark Bomgardner [EMAIL PROTECTED] wrote: I am trying to use array's to populate a group of check boxes for a form. I am getting the checkboxes to print OK,

[PHP] RegEx for a URL?

2003-03-06 Thread Jason Murray
-- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
You need to explode() $line. Won't that still cause problems for him, since explode() will ignore concurrent separators ()? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
Where do you get that from? Probably from not trying it before I open my mouth. I must have dreamed it somewhere, sorry :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MYSQL :(

2003-03-06 Thread Jason Murray
How can I get this to use the next auto_increment of id (Next Autoindex = 52)? What if you just remove id from your field list? insert into ccl.ccl_maintest (id,RNum,YR,AU,ST ^^^ Here :) (Just an idea...) J -- PHP General Mailing

RE: [PHP] phpmysqladmin ? still viable?

2002-05-15 Thread Jason Murray
Go to www.google.com - enter phpMyAdmin - hit I'm Feeling Lucky :) -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Erik Gilchrist [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:15 AM To: [EMAIL PROTECTED

RE: [PHP] header problems

2002-05-12 Thread Jason Murray
Can anyone tell me if there is any reason why this would not be working? mysql_connect($DBhost,$DBuser,$DBpass) or die(header(Location: error.php)); Why bother calling die() at all there? ? if ($mysql != mysql_connect($DBhost,$DBuser,$DBpass)) { Header(Location: error.php);

RE: [PHP] Re: function over loading?

2002-05-12 Thread Jason Murray
Can you practice function over-loading in php? No you cannot overload in PHP. You can achieve the same effect (having the same function do something else in a different circumstance) by making parameters optional: ? Function functionName($param1, $param2 = ) { ... } ?

RE: [PHP] Home Finance System / Bill Splitter

2002-04-24 Thread Jason Murray
I was about to set up a spreadsheet again - but since I've started getting into learning PHP - and have recently set up our home linux server - thought that it would be a lot more exciting / functional to have a system running on the server that would allow each person to log in,

RE: [PHP] is their a way to run a command as root ???

2002-04-24 Thread Jason Murray
Is their a way to run a command as root..or another user.. I know their are a log of security issues with allowing this.. I will tighten down security after I get it to work. Get your sysadmin to set up sudo so that the user running your web server (usually nobody, httpd or www) can execute

RE: [PHP] SQL Warning

2002-04-23 Thread Jason Murray
Would you please direct your attention to this URL http://testphp.netfirms.com/code1.html Look at the bottom where the big orange commented syntax is and explain what is going on there? {$config[prefix]} I think this should be ${config[prefix]} ... also, it's handy to actually echo

RE: [PHP] Nasty DoS in PHP

2002-04-18 Thread Jason Murray
Mine produced the same error message as yours, Jason, but the memory and CPU usage continued until I hit the 'stop' button on the browser. It seemed to have overridden both time and memory limits, as it had racked up 320 megs of my RAM by the time I stopped it. It certainly didn't do that

RE: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Jason Murray
I'd be interested in knowing your versions and the versions of the first guy that posted about this. Maybe he has the same setup as me, or close enough, but both of us are different from you. Actually, I just thought about it - maybe you guys are both running it on Windows (shame on you

RE: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Jason Murray
I know what you are saying. I've taken down apache on win32 with setcookie [snip] I'm pretty sure they ran PHP on apache, not IIS. Maybe this problem is only with the win32 version of the PHP module. Yep, apparently I can't read. Apache, IIS, same header() probs. Nonetheless, a bug is

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
/passwd and guessing passwords, or getting access to other sensitive information on your file system). Unless there's something specifically bad about the Header() command (you didn't make it clear if this is what you were talking about), inifinite loops are, in general, bad. Jason -- Jason Murray

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
It does not stop after its execution time. Is your PHP actually configured to stop running after 30 seconds, though? Its the default, but you may have overridden it. We have let this run for 10+ minutes to see if it would crash the server, and it did. Is it possible you're called

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
It's a default PHP installation. We aren't calling set_time_limit(). I know its an infinite loop, the point is that if a user wanted to attack a server (happens every day) they would be able to use this method to take the server down. But, if the user has enough access to the server to

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
If the user has enough access to the server to place files on it ? There are hosting places that have PHP and you can just upload the PHP script through FTP and access it in your browser. ... in which case all you'll accomplish is taking out your own server, which is not a DoS attack. :)

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
A big if, since the OP has not yet verified that the time limit and memory limit are in effect at the outset of the loop as supposed. Someone else want to test for this scenario? Someone, that is, who can deliberately bring down their server without getting kicked off permanently?

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Jason Murray
So that was both as an Apache mod and a CGI binary? Sounds like it's reproducible. Running as an Apache module here, it terminated as expected at 30 seconds. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Banning javascript?

2002-04-08 Thread Jason Murray
Use strip_tags and only allow basic HTML (basic HTML can be anything but I'd make it BIUDIVSPANSTYLETABLETRTD) through. This will strip all SCRIPT tags. J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Leif K-Brooks

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Jason Murray
You can specify a From: field in the extra headers area of the mail() function. Additionally, you can specify the address you want bounces sent to by the same method (I think it's bounces-to or something like that). J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Jason Murray
Actually, having just checked through a message from Yahoo Groups' list server, I think you'll find it's Return-Path. -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Friday

[PHP] Strange entries in logfiles?

2002-04-03 Thread Jason Murray
times Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] reading excel file

2002-04-02 Thread Jason Murray
Has anyone ever converted an excel file over to a MySQL database via PHP? I'm currently doing it with perl, and this isn't a very good option for me. The client needs to login to a server via ssh every time they want to put data from their excel file to mysql. I'd like to find some way

RE: [PHP] reading excel file

2002-04-02 Thread Jason Murray
Thanks Jason, that is a pretty good idea. Any idea how well PHP handles large ammounts of data like that? There'll be about 25,000 lines in every excel file, and they come in groups of 5 or 6. I've rigged up an import script for similar functions before, it seems to run ok... it really

RE: [PHP] reading excel file

2002-04-02 Thread Jason Murray
If it's possible, it probably better to deal with each line by itself, rather than try to load to whole file into memory. Good point. Shared server admins probably hate me. ;) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP that will help me color code, code; like C++ on a HTML page?

2002-04-02 Thread Jason Murray
I think this might be what you're looking for: http://www.php.net/manual/en/function.highlight-string.php J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Michael Zornek [mailto:[EMAIL PROTECTED]] Sent: Wednesday

RE: [PHP] New php functions?

2002-04-01 Thread Jason Murray
It begs the question, why don't you just download the manual? It's available in a myriad of different formats, one of which must suit you. It may not be bang up-to-date and it may not have the (sometimes) useful user comments but it sure saves you a lot of time and bandwidth. Heheh ...

RE: [PHP] New php functions?

2002-04-01 Thread Jason Murray
I've got the PHP manual as a series of hyper-linked HTML pages. Searchig is is very fast. And, I don't need to wait for download of single page. Each to their own, each to their own ... :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query

2002-04-01 Thread Jason Murray
I'd say $id is blank, not being passed in, or is equal to a nonexistant IDArt. Maybe you should echo out your SQL and run it manually to see what's going on. J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Dr. Shim

RE: [PHP] New php functions?

2002-03-27 Thread Jason Murray
I went to php.net wnating info on the date() function. To my surprise the word date was already in the search for field. It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. :) J -- PHP General Mailing List

[PHP] Help! Recent PHP security patch = high server load?

2002-03-27 Thread Jason Murray
since the security patch was installed. These servers are Sun 420's running Solaris SunOS 7, 1 Gig RAM, Apache 1.3.19, Apache JServ 1.1.2, PHP 4.0.6 + patch so you can imagine how we're surprised at the high load on them... Has anyone else experienced this or similar? Jason -- Jason Murray

RE: [PHP] Any PHP equivalent of Macromedia ColdFusion's location tag?

2002-03-26 Thread Jason Murray
Is there any PHP function that works like ColdFusion's location tag? After a certain execution, I wish to leave the current PHP page entirely and go to another page. Is this possible? That's a HTTP Header, so you want to use the ... Header() command. A Location header is what does the

RE: [PHP] Any PHP equivalent of Macromedia ColdFusion's location tag?

2002-03-26 Thread Jason Murray
Or, alter your page's structure so that it writes its output into a buffer, and echo/print it at the end of the page. That way you can do the redirect at any point it's needed within the page logic. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later

RE: [PHP] $PHP_SELF in include files

2002-03-12 Thread Jason Murray
?php function questions() { [snip] a href=?php echo $PHP_SELF??page=questionsfont [snip] } ? $PHP_SELF is unknown to the function questions(). You'll need to add global $PHP_SELF at the top of the function. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work

RE: [PHP] \n Seems not to work fine

2002-03-12 Thread Jason Murray
that HTML source code tells the browser how to render the page. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Userfriendly

2002-03-07 Thread Jason Murray
... could you please use a *slightly* less obnixously long signature when you post to the list? Signatures aren't supposed to be over 4 lines (and if we want to know your AIM/ICQ/MSN/Y! ID's, we'll ask you). Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak

RE: [PHP] php, text file, and mysql

2002-03-07 Thread Jason Murray
it in the database. :) Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] A silly question. :P

2002-03-07 Thread Jason Murray
I would like to know why you put this character (!) in front of this: An ! means that the following statement should be false. So: if (!isset($variable)) means If $variable is not set Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Calling a Variable in a weird Way

2002-03-06 Thread Jason Murray
for ($i=1; $i 12; $i++) { echo state_$i; // This would print out either Yes No or Maybe. } What you actually want is: for ($i=1; $i 12; $i++) { $mystate = state_.$i; echo $$mystate; // This would print out either Yes No or Maybe. } $$X tells PPH to use the

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Jason Murray
-based code just ain't there. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] case insenstive

2002-03-04 Thread Jason Murray
I need to make this case insensitive. This seems like over kill? if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a)) { } if((strtolower(substr($author, 0, 1)) == a) { } :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] convert to lowercase

2002-03-03 Thread Jason Murray
What is the code to make a string into lower case? Could you please check the manual before you ask like this? It's strToLower(). http://www.php.net/strtolower Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http

RE: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Jason Murray
backward compatibility (and thus accessibility) with non-JavaScript browsers. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] using sendtohost on a secure site

2002-02-20 Thread Jason Murray
The function sendtohost: [snip] Is great for posting results to a regular http site. But what I need to do is post to a secure site (https). At that point, you'll want to look into using CURL extensions to PHP. http://www.php.net/manual/en/ref.curl.php Jason -- PHP General Mailing

RE: [PHP] Formatting problem

2002-02-19 Thread Jason Murray
Your problem is a simple HTML formatting problem - your FORM submit button is inside your TABLE but outside a TD (it's after the final /TR), thus Netscape puts it above the table entirely. -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original

RE: [PHP] A function that turns special charcters into html codes?

2002-02-19 Thread Jason Murray
I'm looking for a function that turns special charcters into html charcter codes ( into quot;). Is there one? Please try the manual before you ask here. If you'd looked, you'd have found the function: html_special_chars() ... which you'll note is named extremely closely to the wording

RE: [PHP] Re: problem with mail()/html/outlook

2002-02-19 Thread Jason Murray
This had worked without problems.. It sounds like the text encoding could be wrong. Using some encoding types, =charchar means something else. Maybe the charset you're using needs to be looked at? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP Developers in Melbourne, Australia

2002-02-19 Thread Jason Murray
unneccessary) - Firm grasp of SQL and MySQL use - Reasonable grasp of HTTP and networks Please email me directly - [EMAIL PROTECTED] Thanks Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne

RE: [PHP] nullifying php and html tags?

2002-02-18 Thread Jason Murray
Hello. I just finished creating a simple input form in which the contents of a textarea get written to a file which in turn gets read by a particular page. This is a Really Bad Idea(tm). it seems pretty dangerous to allow a user to enter any amount of php programming at their will. ...

RE: [PHP] nullifying php and html tags?

2002-02-18 Thread Jason Murray
Would strip_tags() do? Easily gotten-around then by not closing your PHP ? ? tags. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for optimal coding

2002-02-14 Thread Jason Murray
Any expert programmers out there with the way to chop this even further? I would suspect that chopping this further would make it even harder to understand/maintain in the future... J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Work in New York

2002-02-12 Thread Jason Murray
Jason L wrote: Of course, I am lucky enough to be working in a place which uses PHP/MySQL for practically everything, and Perl in a few others. And say ASP, and you are liable to get your head shot off. Same here, everything web-related anyway ... but the head-shot-off attitude is in

RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread Jason Murray
The error message might be useful, but in any case I think you need to enclose the source filename in quotes; also (you better check the docs here) if I remember correctly you need to give the full path to the source file unless it is in the mysql data directory. That's right, it needs

RE: [PHP] Mailing text from a text file.

2002-02-12 Thread Jason Murray
I have the need to be able to mail out a text file. whats the best way that I could do this? Simple answer: mail(). If you're not sure, www.php.net/mail. More complicated answer: Are you talking about using a text file as a template for the email, using a user-uploaded text file as the

RE: [PHP] PHP Work in New York

2002-02-12 Thread Jason Murray
I figure if I'm forced to go M$ I'd much rather use C# that VBScript... C# actually seems to be getting quite a lot of positive mentions in the *nix world at the moment. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Work in New York

2002-02-12 Thread Jason Murray
Well, the projects that are underway to create a open source implementation of the .NET platform as evidence that at least some people in the *nix world have been quite taken with it... That, and the number of positive mentions its getting on SlashDot in the last week or so. Jason -- PHP

RE: [PHP] File upload

2002-02-06 Thread Jason Murray
copied the uploaded data into. Take care that you use the appropriate security measures to protect yourself against exploits here. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Jason Murray
might be busy at the time). If you think you've graduated from the Newbie class, pat yourself on the back, move on, and quietly unsubscribe yourself. Don't make fun of the newbies who come here for advice. They don't know any better, and we were all new to PHP at one point. Jason -- Jason Murray

RE: [PHP] mysql

2002-01-30 Thread Jason Murray
suspect your connection isn't working, as I've never seen 127.0.0.1 used - normally I just use localhost or . Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] Fwd: PhpSmsSend remote execute commands bug

2002-01-29 Thread Jason Murray
I'm think I'm going to start forwarding all the bugtraq alerts for PHP scripts to this list. Any objections? Yes, if the author of the script isn't on the list it's useless unless someone wants to patch their script themselves. And if they're the kind of person who's inclined to do that,

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Jason Murray
I'm processing a form but all the functions I've found on the web only seem to add the BR after the \n. I need to remove the \n altogether - anyone know how I can kill the \n and put a BR in it's place? Sounds like you want a simple ereg_replace(\n, BR, $sourcestring); Jason -- PHP

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Jason Murray
Isn't there a function br2nl() and it's relative nl2br() ?? There's nl2br, but I don't believe there's one that goes the other way. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] seems easy...

2002-01-23 Thread Jason Murray
1 $limit = 5000; 2 if(strlen($text) $limit) 3{ 4cut $text down to $limit length 5$text .= ...sorry, text was too long; 6} 4$text = substr($text, 0, $limit); 5$text .= ... (More); :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Unable to Jump Row ?!?

2002-01-17 Thread Jason Murray
Here is the error... Warning: Unable to jump to row 1 on MySQL result index 2 in /blahblahblah/patient/display_search_results.php on line 39 This means that the query you executed didn't return enough rows to count up to ... 1. Here is the code on line 39 $d = mysql_result($result,

RE: [PHP] Unable to Jump Row ?!?

2002-01-17 Thread Jason Murray
Here is the code on line 39 $d = mysql_result($result, $c, id); the field id is an auto_increment column. $c is an exsisting row in the query, $result. Any help? Yes, it looks like $result doesn't contain anything, so maybe your SQL is messed up. Oh yes, additionally

RE: [PHP] Computer Science and PHP

2002-01-17 Thread Jason Murray
Why PHP is so not popular in the computer science teaching area? Well, here at RMIT in Melbourne Australia they're teaching all the first year students PHP... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] include() and URL's

2002-01-17 Thread Jason Murray
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Can you retrieve the file from that URL

RE: [PHP] Generating a new line in a text file

2002-01-17 Thread Jason Murray
stumped. \n is the new line character. Make sure you use it in and not in ''. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] Generating a new line in a text file

2002-01-17 Thread Jason Murray
: Don't know why it's got everyone else stumped. : : \n is the new line character. Make sure you use it in and : not in ''. : : Jason Unfortunately, that doesn't work either, it changes the \n that appeared at the end of the new line to a single black block. It does not put the next

RE: [PHP] Getting the last record in a mysql table

2002-01-17 Thread Jason Murray
I thought this would be easy but it ain't. What I want is the id number of the last record in a table. If you use mysql_num_rows() and decrement it by one, you'll have the ID of the row you can use with mysql_result. Jason -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Webmail with Attach

2002-01-08 Thread Jason Murray
I need that that my webmail can send mail with many attach. How can I do it? You could either ask the user how many attachments they want, and present that number of INPUT TYPE=FILE fields, or you can grab the file attachment from the user, store it in a uniquely-named temporary directory,

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
in aol.com could be in the USA, Europe, Asia, or Australia these days. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
Thank you Jason ,I will check the Digital Envoy to get more information, have you got the website address of it? www.google.com ... digital envoy ... I'm feeling lucky :) ... or just www.digitalenvoy.net. Search engines are fun :) -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne

RE: [PHP] apostrophe's in PHP MySQL

2002-01-08 Thread Jason Murray
Is there a way around this? Or is this a limitation of my older versions of PHP and MySQL? You need to apply addSlashes() to the text fields before entering them into the database. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Apostrophes and text fileds forms

2002-01-08 Thread Jason Murray
What is an addSlash ? How can I appy addSlashes ? Can anyone give me an example ? Try the manual ... http://www.php.net/addslashes Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] phpinfo() question

2002-01-06 Thread Jason Murray
When you run phpinfo(), the first line of detail has the OS version. What variable produces this? Thats the output from uname -a on the command line... at least, under *nix it is... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Scripting events with php

2002-01-06 Thread Jason Murray
My problem is that I want to use events in my forms but I do not know how to use php as a script for an event. Say I wanted to do something as simple as (within a form): input type=button value=Test onclick= ?php print 'testing, testin 123';? Essentially, when a click this button in a

RE: [PHP] An idea for a PHP tool

2002-01-03 Thread Jason Murray
Like google has it's toolbar, why not have a PHP Manual toolbar? That would be *great*. Just type in the function name and hit go and the manual comes up. You could probably work a bit of javascript magic in a bookmark to do the same thing. I've seen bookmarks that pop up a javascript

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
news would actually be a PHP script, of course. I know how to handle /2002/01/02/keyword as parameters, my question is on making news be interpreted through PHP. Off the top of my head... You could either use a .htaccess to force Apache to recognise news as a PHP script, or you could use a

RE: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Jason Murray
So far nothing seems to work which leads me to believe there's something else wrong. Here's what I've tried $service_type_insert = $x['926service_type']; //works fine when I hard code a value in and returns proper value $service_type_insert = $x[$$keyservice_type]; //returns empty

RE: [PHP] User-friendly URI's

2002-01-03 Thread Jason Murray
A 404 ErrorDoc would still reply with a 404 code, which could mess up some search engines. Not true, try this: www.inww.com/ifdbnifoudbvfd This is actually produced by ErrorDocument 404 /404.php3 in our Apache configuration, and 404.php3 is a PHP script that sends the neccessary stuff to be

[PHP] RE: User-friendly URI's

2002-01-03 Thread Jason Murray
True, but if I remember right, the hit will end up in your error_log not in your access_log. Ah. Bugger. But since this would require messing with your Apache config you could adjust that anyway surely? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] printf()?

2001-12-16 Thread Jason Murray
HTML doesn't pay attention to line breaks, thats why you're needing a BR... Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Ray Gaylog [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:49 PM

RE: [PHP] E-mail Uploaded File

2001-12-11 Thread Jason Murray
rolled my own solution). Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- 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

[PHP] Store locator / postcode proximity

2001-12-09 Thread Jason Murray
messages. Could someone please help me a little with this? :) Thanks Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] content disposition and internet exploder

2001-12-02 Thread Jason Murray
generated files? I just use: Header(Content-disposition: filename=.$filename); ... ie, no attachment. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Jason Murray
Can't be done easily with PHP right now... To get that type of functionality, you'd need to write it in Perl using the SpreadSheet::WriteExcel module. http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html In that case, someone could probably work out how to do it based on the source of

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Jason Murray
Actually, I looked into the possibility of doing that, but it turns out the Excel 5.0+ file format is -very- complicated... Not just a standard binary file... Check it out: http://www.wotsit.org/search.asp?page=49s=ALLFILES Way beyond my capabilities and patience. :) Eugh

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Jason Murray
Actually, I looked into the possibility of doing that, but it turns out the Excel 5.0+ file format is -very- complicated... Not just a standard binary file... Check it out: http://www.wotsit.org/search.asp?page=49s=ALLFILES Way beyond my capabilities and patience. :)

RE: [PHP] exporting

2001-11-19 Thread Jason Murray
I need something that will do a direct transfer to word or excel or the others.. not something via a cvs method.. Excel loads comma separated (CSV - CVS is something else entirely) files happily. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] using mail

2001-11-12 Thread Jason Murray
Then why didn't you notice that in the additional headers you can specify the from header? mail([EMAIL PROTECTED], Whee, Whee! Mail Body, From: Jason Murray [EMAIL PROTECTED]\n); Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original

RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Jason Murray
I have 2 date string like this $t1 = 2001-11-12 17:30:10; $t2 = 2001-11-12 17:15:32; I need to substracts the number of seconds from $t2 from $t1 First, convert them to unix time format: ? Function dateTextToUnix($string) { $year = substr($string, 0, 4); $month =

RE: [PHP] Download script - sometime works sometime not

2001-11-08 Thread Jason Murray
Its works for file .html or.zip or .tar or .tar.gz But it is not for text file.. Could you recommend how I download text file ? What do I have to do in my scripts...? I read the manual about HTTP functionsand search through mailing list about header functions but still

RE: [PHP] sending email to php script

2001-10-31 Thread Jason Murray
You'll also need to compile php as a standalone, and put as the first line of your php script #!/path/to/php -q What if we need both version?? There's nothing stopping you running both. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

  1   2   3   4   >