[PHP] Re: Command line args HELP!!!

2001-07-18 Thread Paul A. Procacci
That is not the problem! Read below. This issue was resolved. It _is_ a bug, and is on the todo list for the php programmers. :) Elias wrote: > > argv > Array of arguments passed to the script. When the script is run on the > command line, this gives C-style access to the

[PHP] Re: php/mysql ecommerce solution

2001-07-18 Thread Paul A. Procacci
I agree with Chris. The Exchange Project has been one of my personal favorites as well. www.theexchangeproject.org :) Duane Douglas wrote: > > hi gang! > > i'm looking for a php/mysql ecommerce solution. i want something that is > ready made and fully customizable. i&

[PHP] Re: OT Math Question

2001-07-18 Thread Paul A. Procacci
Well, If I'm right. The total number of posible combinations in the NJ state lottery, assuming there are, say, 56 numbers is var total = 56; total*(total-1)*(total-2)*(total-3)*(total-4)*(total-5) == 23377273920:1 Now that assuming one number was pulled from the pot and the same number didn't

[PHP] Re: How to stop a previous page being repeated ?

2001-07-18 Thread Paul A. Procacci
use javascript to check the histroy. If the document.history points to the file your at then redirect? :) Cn Yeong wrote: > > How do I stop a previous page being repeated when the > user hits their back button on the browser? > > I

[PHP] Re: Simple (I hope) updating contents question

2001-07-20 Thread Paul A. Procacci
The fgets length is like this: It's the number of bytes read from a file OR up to a new line character. Which ever comes first. It's as simple as that. Try this: "; $i++; } } fclose($fp); ?> That's what gets displayed to this user and this is how we would rewr

Re: [PHP] Email Software

2001-07-20 Thread Paul A. Procacci
I have just recently wrote a php script that strips email address's off of websites, and will continually follow links until a certain depth. You can easily modify the script to "mail" or log all entries found. The script also discards duplicates found. Sounds Interesting? Le

[PHP] Re: Restoring a backup

2001-07-20 Thread Paul A. Procacci
Not usre if anyone answered your question yet, but, first off, I'm not positive. I would try mysql -u root -p !database_name! < !filename! ignore the (!) characters. :) paul Don wrote: > > Hi, > > I have a cron script that issues a: > > mysqldump --

[PHP] Trouble creating a list on months

2001-07-31 Thread Mario A. Salinas
Hello everyone, This is my first posting. I'm hoping someone can help figure this out. I'm using a GNU licensed calendar but there is a bug in it's process for building a list of months. The list is supposed to build a list of months starting with the current month and addi

Re: [PHP] Apache alias to a specific .htm file

2001-08-17 Thread Jeffrey A Schoolcraft
; my browser and for Apache server to throw up a specific .htm file on my > to get to this .htm file. How can I setup Apache to automatically 'pick > up' a set .htm file (ie, http://localhost equals "P:/My > Projects/Storyboard/ife/index.htm"). -- PHP General Mailing

[PHP] Variables not changing problem...

2001-08-23 Thread Nicholas A. Zukin
I'm using the function below to create a listing of name/value pairs to use in Flash. The first time it runs it works fine, but then after the first time, it uses the originally used variables. So if the URL looks like this: mydomain.com/hum_images.php?hub_section=pr

Re: [PHP] GUI for PHP

2001-08-29 Thread Matthew A. Schneider
As someone who has little programming experience I'd have to say jump right in and forget the "GUI" (I'm not aware of any IDE for PHP). PHP is pretty easy (to learn, becoming a master is something else I suspect) and there is always outstanding support either by reading this

Re: [PHP] The future of PHP or my 2 cents

2001-08-29 Thread Matthew A. Schneider
Although Fred's comments appear rhetorical, the suggestion has some merit. Anyone have a feel for how many PHP devotees are out there? How many people subscribe to this list? Do these numbers make it feasible to ask for a $1-10 contribution? How about $0.02 from each of the 7 million do

Re: [PHP] seeking good annotate script

2001-09-01 Thread Matthew A. Schneider
Daniel, It doesn't get much easier than Philip Greenspun's "Loquacious" (http://www.greenspun.com/com/home.html). Philip begins the description of his free comment server thusly: "You have a Web server with static pages. You want users to be able to add comments d

[PHP] sending a 404 error

2001-09-16 Thread Michael A. Peters
Is it possible to invoke the server 404 error error from php? Where I would like to do such a thing is http://24.5.29.77:10080/encryption/index.phps I would like to replace the line die ("The file you wish to download does not exist"); with instead an invocation of the http

Re: [PHP] sending a 404 error

2001-09-16 Thread Michael A. Peters
Close- this is what actually worked- header ("HTTP/1.1 404 Not Found"); But thanks- it got me on the right track, anyway (i wasn't aware server responses were sent from the header) It doesn't log it in the error_log or send the 404 error page, but i have a custom e

[PHP] ftp in PHP4

2001-09-17 Thread Chesley A Windon
I need to have web based ftp capabilities for a site I am working on. My development server is running RedHat 7.1 and php-4.0.4, and I did compile php with the --enable-ftp switch. After reading the docs at php.net, I found a "canned" script (http://www.php.net/manual/en/ref.ftp.p

Re: [PHP] SPEED: Apache module vs. compiled?

2001-09-18 Thread Michael A. Peters
On Tue, 18 Sep 2001 10:12:05 -0700 Camille Davis <[EMAIL PROTECTED]> wrote: > Does anyone have any benchmarks or proof of a speed difference between > compiling PHP as an Apache APXS module, versus compiling it right into Apache? > > I'm going to be using it on a v

Re: [PHP] Download

2001-09-19 Thread Michael A. Peters
Try http://www.zend.com/ If not- http://24.5.29.77:10080/mirror/php-4.0.6.tar.gz please note- my bandwidth is limited, if zend.com has it, it will be a MUCH faster download. On Wed, 19 Sep 2001 00:32:27 -0600 "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > >

Re: [PHP] database on CD

2001-09-20 Thread Michael A. Peters
One possible solution (I have not tried) is to force a symlink- cd /var/database/mysql ln -sf /mnt/cdrom/path/to/mydatabase mydatabase You would have to make sure the database was for the right platform (a MySQL database created on a sparc64, for example, would not work on a PowerPC) Is there

[PHP] Re: ftp in PHP4

2001-09-22 Thread Chesley A. Windon
Since my original post, the status has changed but let me recap... The file /home/windon/somefile did have permissions set to have anyone read it, but I never checked the permissions on the /home/windon directory. This has since been corrected. Next I was getting a permission denied error

Re: [PHP] WebMail Client

2001-10-02 Thread Michael A. Peters
be on the web machine, nor does the sendmail server. It does use MySQL, but he's working on a Postgresql option too. (MySQL server need not be on your machine- but it does need to be one you can creat a database and grant access privs on ;) http://www.basilix.org On 02 Oct 2001 05:38 PDT y

[PHP] newbie - some simple questions

2001-10-02 Thread John A. Grant
I'm just getting started with php 4.03. Yes I've read the FAQ and lots of documentation. I have setup my pages so they all look more or less like this: ... here is the body of the page Just for the record, there is a lot of p

Re: [PHP] FTP

2001-10-02 Thread Chesley A Windon
> I'm trying to upload some files using PHP, but I'm limited to small files of 1Mb or >a little more and I don't know why. Could anyone please help me with this? > > This is the message I get: > Warning: error opening none in /home/proj/sapens/public_html/f1_

Re: [PHP] A powerful editor!

2001-10-03 Thread Michael A. Peters
I personally like BBEdit 6.1 the best. 'course, since bbedit don't run on Linux, I end up using NEdit and vim quite a bit as well... On Tue, 2 Oct 2001 13:57:23 -0700 "Dean Householder" <[EMAIL PROTECTED]> wrote: > I used to use TextPad until I found EditPlus. I&

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Michael A. Peters
http://www.webmin.com/webmin/ On Thu, 4 Oct 2001 10:48:57 +0200 <[EMAIL PROTECTED]> wrote: > Hi: > I'm looking for a mysql administrator but no so good as > phpmyAdmin, just listing dbs, tables, insert, delete, edit > options; no create or alter tables and dbs > >

Re: [PHP] newbie - some simple questions

2001-10-04 Thread John A. Grant
ss to them at the server level. Hmm, since the directory always has an index.html, clients will never see the filename anyway and could only run it by guessing at the name, so it's a small point. -- John A. Grant * I speak only for myself * (remove 'z' to reply) Radiat

[PHP] read file twice or read into array once?

2001-10-04 Thread John A. Grant
I have a file containing ~100 lines of text, each perhaps 100-200 characters in length. I need to retrieve line $n from the file, where: $n = $julianday % $nlines; $julianday = today's date (from localtime[7]) $nlines = no. of lines in the file Method A 0. fopen() the file 1. read the

[PHP] Re: Submitting variables via /'s

2001-10-05 Thread John A. Grant
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to move away from > file.php?var1=1&var2=2&var3=3 > ...and go to > file.php/1/2/3 [...] Why? What's wrong

[PHP] accessing localtime array directly

2001-10-05 Thread John A. Grant
In Perl I have done this: $julianday=(localtime)[7]; Is there an equivalent syntax for PHP or do I just do: $now=localtime(); $julianday=$now[7]; I don't need it - I'm just curious about the syntax. -- John A. Grant * I speak only for myself * (remove 'z'

[PHP] Re: read file twice or read into array once?

2001-10-05 Thread John A. Grant
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046901c14d62$b4c7a0c0$c801a8c0@Lynchux100">news:046901c14d62$b4c7a0c0$c801a8c0@Lynchux100... > 100 lines of 200 chars each is 2 which is 20K which is chump change for > RAM... > > Unless you are on a su

[PHP] which regexp require preg_grep() and which can be used with ereg()?

2001-10-05 Thread John A. Grant
In Perl I used "/\S/" to check for blank lines read from a file. Now I'm learning PHP. How do I know what is a 'standard' regexp that ereg() can handle and how do I know what is Perl-specific syntax so that I must use preg_grep() instead? For example, can I use ereg(&qu

[PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread Brian A. Seklecki
All: Is anyone interested in adding POSIX 1003.1-2001 gethostname(2) support? I'm interested in sponsoring a small contract development initiative. I need something more reliable than $_ENV[]. Not all shells export $HOSTNAME by default. ~BAS -- PHP General Mailing List

Re: [PHP] PHP telnet server

2008-12-30 Thread Brian A. Seklecki
On Tue, 30 Dec 2008, Luke Slater wrote: Hi everyone, A quick read over Stevens` A.P.U.E. and UNIX Network Programing Vol. 1 should familarize you with multi-threaded TCP/IP daemon development. ~BAS 1. http://www.kohala.com/start/apue.html -- PHP General Mailing List (http://www.php.net

[PHP] DOMDocument help

2009-02-12 Thread Michael A. Peters
I'm using php 5.2.5 with the php-xml module. I need to split a string of html into elements. IE - this is a string that has some bold words in it. I need to be able to take that string and split it up into textNodes for the parts that are not in bold text, and bold nodes containing the

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Michael A. Peters
dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on it. It would be of great help if it

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Michael A. Peters
Shawn McKenzie wrote: Michael A. Peters wrote: Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web interface to change settings

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
German Geek wrote: > What do you think? I think just use a flippin' ssl server and be done with it. When I go to a website that requires me to let them execute JavaScript I rarely go back. You can use SSL for the login and only the login - I know that it means either using a sel

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
Dotan Cohen wrote: Have you seen the fit Firefox 3 makes for self-signed certs? So far as the end user is concerned, the site is inaccesible. Yes I have. That's why on my site I have an instruction page - and a demonstration of how Opera does it, which is just as secure and less of a

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
German Geek wrote: Hi gang, Was just thinking of a cheap solution for sites that don't require absolute security. A SSL cert cost about $150 a year. Sites like facebook could use this... Sites (like mine) that don't want to pay a certificate authority can use a self-signed cert

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
Sudheer wrote: Michael A. Peters wrote: Sites (like mine) that don't want to pay a certificate authority can use a self-signed cert. Even Red Hat does for some of their stuff (IE I believe their bugzilla server) Firefox scares its users when they encounter a website with self s

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread Michael A. Peters
German Geek wrote: OK, i hear about this self signed certificate. Whenever i signed anything it just came up with all these warnings in FF which confuses users and i think is not good at all. Can someone paste a link in here to a website with a self signed cert please? Would like to see if there

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-15 Thread Michael A. Peters
Colin Guthrie wrote: 'Twas brillig, and German Geek at 15/02/09 22:32 did gyre and gimble: Please enlighten me why it is so expensive? Is it maybe just the hassle of setting it up? The whole thing is about trust. Getting a certificate is nothing if the system is not backed up by a

Re: [PHP] Apache odd behavior

2009-02-16 Thread Michael A. Peters
Paul M Foster wrote: > I'm submitting a url like this: > > http://mysite.com/index.php/alfa/bravo/charlie/delta Why would you want to do such a thing? If you want parameters in the filename without using get, use mod_rewrite and explode the page name - and use a delimiter or than

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
German Geek wrote: well httpus seems like a good idea though. Thats the kind of response i was hoping for. :-) Maybe browsers would implement that idea in the future. I like that idea a lot actually. I mean when you login to your linux server the first time with openssh, you also have to accept

Re: [PHP] Back to Basics - Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
Rene Veerman wrote: Just for this case, where authentication of the server isn't an issue, and things like deployment cost are, i'd like to propose that we on this list look again at securing login/pass through onewayHash functions, in an otherwise non-ssl environment. i ha

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Michael A. Peters
tc. etc. to be sure that your session is secure blah blah. Now with the HV certs the UI also has the company name in the URL and this *is* going towards a trust infrastructure. If you are e-commerce then trust is an issue and you should pay for one of the certs that turns your url bar a pretty co

Re: [PHP] Apache odd behavior

2009-02-17 Thread Michael A. Peters
Paul M Foster wrote: > On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: > > FWIW, I've been doing computers since before the CP/M days > (pre-pre-DOS), so I do know the difference between absolute and relative > paths. > > I'm a little doubtful about the bro

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
Virgilio Quilario wrote: > The difference is in manageability. > Copying the scripts to another domain and you're using full url for > your src and href when referring to local images or css or pages, will > give you trouble and you must change all of them to your new domain. which takes about 3

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Michael A. Peters
Robert Cummings wrote: I think what you all are missing is that physics is just a framework for reality. I think you are missing that reality is just a construct of strawberry fields forever. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the page (header.php) like ../i

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Michael A. Peters
PJ wrote: my server is FreeBSD 7.0 My situation is this: I am evolving www.ptahhotep.com from pure HTML to php-mysql-css (not an easy task for a newbie :-) ) The challenge is to set up the web site on my local server and then move it all to my web host. Unless I am mistaken, I am pretty sure I

Re: [PHP] Full versus relative URLs

2009-02-18 Thread Michael A. Peters
Johnny wrote: Hi Thodoris, In my opinion, the best use is to include your file with relative urls, like : I believe that it best. Including the hostname use to cause a dns lookup in some browsers which made it slower but I don't believe that is the case anymore. Doing the full

Re: [PHP] Which file "Included" me?

2009-02-18 Thread Michael A. Peters
Ed Curtis wrote: Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it

Re: [PHP] Which file "Included" me?

2009-02-18 Thread Michael A. Peters
Ed Curtis wrote: Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Michael A. Peters
e not allowed to do this. LOL - reminds me of a host I used that did not allow php to call exec() So what I did was put the command into a database and had cron once a minute pop the database and run any commands it had in it. After a week I got an e-mail notifying me my cron privileges had

Re: [PHP] Which file "Included" me?

2009-02-18 Thread Michael A. Peters
Dotan Cohen wrote: http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean) I do not understand the exploit. How is he spoofing any $_SERVER variables? The attack description doesn't

Re: [PHP] Which file "Included" me?

2009-02-19 Thread Michael A. Peters
Nisse Engström wrote: On Wed, 18 Feb 2009 10:37:53 -0800, "Michael A. Peters" wrote: http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean) Amazing! Not once did they mention h

Re: [PHP] Unique User Hashes

2009-02-20 Thread Michael A. Peters
Nathan Rixham wrote: it's all a bit pointless, the only way to ensure only one vote per person is to get take and test a dns sample from each user. anything else is going to be flawed Hey now, what do you have against us clones? ;) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Why PHP won

2009-02-23 Thread Michael A. Peters
Paul M Foster wrote: On Mon, Feb 23, 2009 at 01:39:51PM -0800, Daevid Vincent wrote: http://startuplessonslearned.blogspot.com/2009/01/why-php-won.html I *like* the way this guy thinks. Paul It was a decent page. Point #2 though - you can use mod_rewrite to do wonders with respect to

Re: [PHP] Why PHP won

2009-02-24 Thread Michael A. Peters
Per Jessen wrote: Michael A. Peters wrote: [anip] and you can use DOMDocument to completely construct the page before sending it to the browser - allowing you to translate xhtml to html for browsers that don't properly support xhtml+xml. I suspect you meant "translate xml to

Re: [PHP] Why PHP won

2009-02-24 Thread Michael A. Peters
Per Jessen wrote: I don't use any of them, but I thought even IE6 was able to deal with xml. What happens is IE6 (and I believe IE7) asks the user what application they want to open the file with if it receives an xml+xhtml header. IE does parse xhtml but only if sent with an incorrect ht

Re: [PHP] syntax

2009-02-24 Thread Michael A. Peters
Micah Gersten wrote: $query .= " WHERE stamp < ".(time()-7*3600*24); Using something like that is disastrous for DST and Leap Seconds... That's why you use UTC for servers and translate to local time when you need to display it. Not sure that solves the leap second issue, but it certa

[PHP] Stupid is as Stupid does

2009-02-26 Thread Michael A. Peters
As my web app is coming to completion, I added a means to search records (different from site search). This involves reading post input and is many cases converting it to an integer. Damn I feel dumb. The search app wasn't working, so I did what I often do when troubleshooting crap -

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Michael A. Peters
9el wrote: --- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Michael A. Peters
Bob McConnell wrote: From what I have seen of PHP, it is strictly interpreted. i.e. a line is read, and executed. Then the next line is read, and executed. etc. So there is no way to get it to block execution from the beginning even when there are fatal errors. It will already have printed out

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Michael A. Peters
Robert Cummings wrote: ... the line between the definition of interpreted language and compiled language is quite blurry these days. #include main() { printf("Hello World"); } Compile that - and you can run it on any system that is binary compatible, whether or not is has a

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-02-27 Thread Michael A. Peters
Murray wrote: Not sure he's from a company. His email address is in the berkeley.edudomain. I guess there's a chance he's involved in Berkeley DB, although I believe this is now owned by Oracle? I'd be curious to know if any Berkeley people are still involved in the developme

Re: [PHP] Re: Best error handling

2009-02-27 Thread Michael A. Peters
Nathan Rixham wrote: further, for live servers you really should have display errors set to off in you're php.ini - at which point nothing will be returned but they are still in the server logs - so they are still viewable if you need to see what errors occur (just mentioning it because som

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Michael A. Peters
ou put all output into a buffer or object (ala DOMDocument class) you could refuse to print the document to the requesting client if any errors were thrown during the creation of the document. DOMDocument sure makes (at least for me) code easier to read because you aren't mixing html an

[PHP] preg_match and dates

2009-03-02 Thread Michael A. Peters
I have absolutely no control over the source file. The source file is an xml file (er, sort of, it doesn't follow any particular DTD) and has a tag called VERBATIM_DATE in each record - looks to be required in their output as every record so far has it, but w/o a DTD hard to know - ti

Re: [PHP] preg_match and dates

2009-03-02 Thread Michael A. Peters
Per Jessen wrote: Michael A. Peters wrote: What I'm trying to do is write a preg matches for each case I come across - if it matches the preg, it then parses according to the pattern to get me an acceptable -MM-DD (not sure how I'll deal with the season case yet ... but I'

Re: [PHP] Re: preg_match and dates

2009-03-02 Thread Michael A. Peters
Peter Ford wrote: Michael A. Peters wrote: I have absolutely no control over the source file. The source file is an xml file (er, sort of, it doesn't follow any particular DTD) and has a tag called VERBATIM_DATE in each record - looks to be required in their output as every record so fa

Re: [PHP] www.soongy.com

2009-03-02 Thread Michael A. Peters
nature of http that's just the way it is. uploadprogress does require php 5.2 or newer, that may be their issue. Anyway, when a host is not willing to provide what you need, it's time to find a new host. I've never tried php-apc. Another solution I've seen people do is use perl to

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Michael A. Peters
mike wrote: On Mon, Mar 2, 2009 at 7:45 AM, Boyd, Todd M. wrote: Gears will allow you to do a lot of things. So will site-proprietary Firefox extensions that go well outside the realm of basic client-server interaction via webpages. I was under the impression that Gears requires a local

Re: [PHP] www.soongy.com

2009-03-02 Thread Michael A. Peters
py to change hosting provider and if you know any other hosting with those extensions please inform I use linode - they give me a xen virtual host where I have root. A xen virtual host from them is about $20 a month (more for additional IP's and lots of bandwidth/storage/etc). In the past I

Re: [PHP] retrieve multiple select

2009-03-02 Thread Michael A. Peters
Cleopatra Mummies Whenever something doesn't work for me I always make sure what I am doing is valid html/xhtml That doesn't look valid to me - multiple="multiple" might be. Maybe it is valid under older html. But anyway, multiple selects are a bad idea because they are

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Michael A. Peters
Nitsan Bin-Nun wrote: I have just been wondering for the 20 zillion time why does people always stick together "20" and "zillion"? you can't just use "zillion times"? is that not enough for you? My server can handle 19 zillion multiple submits. ;) -- PHP General Mailing List (http://www.php.

Re: [PHP] Javascript question

2009-03-02 Thread Michael A. Peters
Boyd, Todd M. wrote: Before some of you newbies feel like being heroes and jump all over me: I KNOW THIS IS A PHP-RELATED LIST. IF YOU DON'T LIKE MY QUESTION, DON'T ANSWER IT. Now that that's out of the way... I have a Javascript question (and maybe a Browser/DOM question) for

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Michael A. Peters
6% of browsers now... And more and more people are using something like noscript to block it because XSS hacks are out of control. It is too easy to publish a website and too many web developers only care about their own data, they don't care about protecting users from malicious content.

Re: [PHP] retrieve multiple select

2009-03-02 Thread Michael A. Peters
PJ wrote: Michael A. Peters wrote: PJ wrote: Well, I think 60+ checkboxes get kind of garbagy I bet it is easier to select the fields you want from 4 columns of 15 checkboxes than from a big long list of 60 in a select. But you might be right. I don't design for a living. Neither

Re: [PHP] retrieve multiple select

2009-03-02 Thread Michael A. Peters
PJ wrote: Well, I think 60+ checkboxes get kind of garbagy I bet it is easier to select the fields you want from 4 columns of 15 checkboxes than from a big long list of 60 in a select. But you might be right. I don't design for a living. -- PHP General Mailing List (http://www.ph

Re: [PHP] whoami explanation

2009-03-03 Thread Michael A. Peters
PJ wrote: Gee, thanks. So, when was I supposed to have used this alias? Hell, I can live with my ignorance. What's a POSIX system and why is it a POSIX - a language, I think I heard cd ~ brings you to your home directory. cd ~/stuff brings you to the stuff sub-directory of your

Re: [PHP] whoami explanation

2009-03-03 Thread Michael A. Peters
Michael A. Peters wrote: With respect to value of issuing shell commands from within php - I'm sure there are some legitimate uses. I use to do it all the time but now I really try not to because it makes the php less portable. You also have to be super careful with your code so tha

Re: [PHP] whoami explanation

2009-03-04 Thread Michael A. Peters
Peter Ford wrote: PJ wrote: Per Jessen wrote: PJ wrote: forgot to add: What's the difference between back ticks or quotes and regular single quotes? text in back ticks is executed via a shell, text in single quotes isn't. Ok, but how does this relate to a command pas

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Michael A. Peters
Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in arbitrary order with default values. To allow for the encapsulation of complex content in

Re: [PHP] escape your variables

2009-03-04 Thread Michael A. Peters
Eric Butera wrote: So here's some examples of bad behavior. = Database = Bad: $name = mysql_real_escape_string($_POST['name'], $link); myql_query("INSERT INTO foo (`name`) VALUES ('". $name ."')"); $name now contains slashes which means it i

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Michael A. Peters
Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the template target. To simplify the use of parameters so that they can be used in

Re: [PHP] escape your variables

2009-03-04 Thread Michael A. Peters
Kyle Terry wrote: On Wed, Mar 4, 2009 at 6:55 PM, Chris wrote: Eric Butera wrote: On Wed, Mar 4, 2009 at 8:18 PM, Chris wrote: You only need to escape data coming from a user going in to your database. If you put user input into your database and pull it back out, it's still raw

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
Robert Cummings wrote: On Wed, 2009-03-04 at 18:01 -0800, Michael A. Peters wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote: Robert Cummings wrote: To punt what is repeated over and over during runtime to a single compilation phase when building the

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
quot;,$name); >> $input->setAttribute("value",$value); >> return($input); >> } >> >> Does that answer your question? > > That was what I thought. > > Cheers, > Rob. Is there a reason I shouldn't be doing it that way? The reasons I

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Michael A. Peters
Robert Cummings wrote: Is there a reason I shouldn't be doing it that way? I didn't say you shouldn't. It's just expensive on every page request to regenerate a document node by node. it also strikes me as tedious :/ It's definitely tedious - but I end up writ

Re: [PHP] verify problem

2009-03-05 Thread Michael A. Peters
code (I don't care if this is just an example of your code, make it easier for everyone who's trying to help you). It's much easier to read this: if (strlen($_POST["first_nameIN"]) > 0 ) && (strlen($_POST["last_nameIN"]) > 0 ) { echo $f

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread Michael A. Peters
Edmund Hertle wrote: Hey, I've got 2 server, both having the same authentication scripts and using the same database. My problems are: 1.: User logs in on server1 -> trys to use a part of the site which is physically located on server2 -> has to login again on server2 2.: There i

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Michael A. Peters
Anton Heuschen wrote: This might sound trivial, but for the live of me cant seem to get it to work, and I am not familiar with such a thing. What I have is a query lets say : select country,name,population from USERS where id= 'some_id' "; Now I want to assign the result

[PHP] Database Abstraction Class

2009-03-07 Thread Michael A. Peters
In some earlier thread (I really don't want to dig to find it) I argued for running mysql_real_escape_string right on the _POST I must concede I was definitely wrong about that. The right place to do it is in a database abstraction class that does the actual insert for you, so that i

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Michael A. Peters
Richard Heyes wrote: Hi, Anywhoo, that being said, does anyone have a suggestion for a good database abstraction class? Ooh, I think you'll get the odd one or two... Preferably one that already has decent support for several open source databases? PEAR::DB was good, but IIRC it&

Re: [PHP] verify problem

2009-03-07 Thread Michael A. Peters
Ashley Sheridan wrote: I'm more a fan of lining up opening and closing brackets so they are at the same indent level. It prevents one of the most popular errors caused by omitting a bracket, brace or other in the wrong place. A few extra line breaks in the code are not going to m

Re: [PHP] verify problem

2009-03-07 Thread Michael A. Peters
Nathan Rixham wrote: actually much of this discussion is null and voided by using a decent IDE, certainly eclipse, netbeans, zend ide all handle much of the formatting and indenting - the one gripe I have is that PDT2 is lacking the "format source" option which is a vast time-

Re: [PHP] Script execution

2009-03-09 Thread Michael A. Peters
George Larson wrote: Thanks everybody! I guess I was a little vague. I'm working on an OpenSUSE setup with Apache, MySQL and PHP. I just knew that my confusion was because of my Windows up-bringing. The writing I referred to was to a file. One example is I had a script that was pulling

<    12   13   14   15   16   17   18   19   20   21   >