[PHP] Dynamic array creation and tracking

2009-10-06 Thread John Nichel
Howdy guys and girls. Been a long time since I've been in these parts. My php is rusty these days, so please bare with me. I'm trying to create a dynamic, multidimensional array, and keep track of which level I'm on, opening and closing levels as needed. Lets say that I have some data like the b

[PHP] OT - Leaving

2007-01-23 Thread John Nichel
at I'm off to join people like John and Jason in the world of, "what ever happened to him". For those of you who give a damn ;) I can be reached at numerous email addresses, including: john nichel net jnichel by-tor com As well as the other in this email (which have alrea

Re: [PHP] Staff log-in

2006-11-11 Thread John Nichel
Paul Novitski wrote: At 11/10/2006 07:09 AM, tedd wrote: Lastly, I think we all know that "non-profit" simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing more. Plus, there's no limit or requirements as to

Re: [PHP] Staff log-in

2006-11-10 Thread John Nichel
Jochem Maas wrote: John Nichel wrote: 5) $80.00 is my *reduced* rate. ah - I was worried you might have been factoring in age-related brain depreciation ;-) If I factored that in, I'd have to pay the client. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdin

Re: [PHP] Staff log-in

2006-11-09 Thread John Nichel
st to help answer questions. I think it is safe to say that all of us have bills to pay, and don't want to give our services away for free. So, try not to get your panties in a knot when we want to be paid for our work. 5) $80.00 is my *reduced* rate. 2006/11

Re: [PHP] Staff log-in

2006-11-09 Thread John Nichel
Brynjar Guðnason wrote: Hi, I need a little php script. Staff log in by entering username and password and then the next time they enter their username and password they log out. The script has to take down the time they log in and log out. Then I should be able to read old log-ins and log-outs.

Re: [PHP] Delivery failed

2006-11-08 Thread John Nichel
Stut wrote: Brad Fuller wrote: Did everyone on the list get this message? Dear user php-general@lists.php.net, We have found that your e-mail account was used to send a large amount of junk email messages during the last week. Obviously, your computer was infected by a recent virus and no

Re: [PHP] why so slow?

2006-11-02 Thread John Nichel
ich should be utilized before coming to the list). On Nov 1, 2006, at 12:20 PM, John Nichel wrote: Mel wrote: I have this is the page I am working on right now and it is valid html 4.01 http://www.squareinch.net/client_testing_html401.php Bzzttt. No, it isn't. The people

Re: [PHP] why so slow?

2006-11-01 Thread John Nichel
Mel wrote: I have this is the page I am working on right now and it is valid html 4.01 http://www.squareinch.net/client_testing_html401.php Bzzttt. No, it isn't. The people here have been pretty accommodating of you so far, but if you continue to *not* do any research yourself, co

Re: [PHP] Run script every 30 seconds

2006-10-30 Thread John Nichel
Ahmad Al-Twaijiry wrote: Hi everyone, I have a script that I want it to run every 30 seconds, the problem is that cronjob can run every 1 minute only, do you have any solution ? Use atd. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL P

Re: [PHP] Problems with mail function

2006-10-24 Thread John Nichel
Ricardo Ríos wrote: Hi wizards, I 'm trying to use mail function in PHP, but this function don't send the email , I have a server with postfix. Does somebody know how to send an email with php and postfix. Thanks in advance. Does your install of postfix have a sendmail wrapper? Is it in the

Re: [PHP] Job postings?

2006-10-24 Thread John Nichel
Steve Lane wrote: Greetings all: This is a general etiquette question. I have a job posting for a junior PHP programmer. Are there any of the PHP mailing lists to which it would be appropriate to post that? If not, can anyone recommend a good place to post, especially a place that might be rea

Re: [PHP] IMAP extension causing delays

2006-10-19 Thread John Nichel
Edward Kay wrote: From this, it is clear to me there is some major delay being introduced by the loading of the IMAP extension. Any ideas on how to resolve this? use php as an apache module - thereby the startup delay is only noticed when the webserver starts - this assumes that the problem is

Re: [PHP] IMAP extension causing delays

2006-10-19 Thread John Nichel
Edward Kay wrote: Hello, I need PHP's IMAP extension for my web app but it is really slowing my server up. My setup: Fedora Core 5, Apache 2.2.2, PHP 5.1.4 (run as CGI with suPHP), PHP IMAP extension - all standard FC5 RPMs. The test page is simple - just a call to phpinfo(). Without the

Re: [PHP] regex

2006-10-19 Thread John Nichel
Bagus Nugroho wrote: Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Use preg_replace to replace all numbers with nothing. $var

Re: [PHP] foreach

2006-10-10 Thread John Nichel
Chris Boget wrote: $last = end ( $numbers ); reset ( $numbers ); I thought foreach() already performed a reset()? Why do it again here? Well, corn my fritters, according to TFM, it does this indeed. Maybe an old dog can learn new tricks. ;) -- John C. Nichel IV Programmer/System Admin

Re: [PHP] foreach

2006-10-10 Thread John Nichel
João Cândido de Souza Neto wrote: Hello. In the follow code: $numbers=array(1,2,3,4,5); foreach ($numbers as number) { ... } Inside foreach, could i know if i am in the last element of the array $numbers? $last = end ( $numbers ); reset ( $numbers ); foreach ( $numbers as $number ) {

Re: [PHP] guess documentroot

2006-10-05 Thread John Nichel
Javier Ruiz wrote: Hey all! Is it possible to get the path of a file relative to the document root of the webserver using php? For example... if we have a script like http://localhost/mydir/myseconddir/index.php is there a way to get that it's runing on /mydir/myseconddir/ ?? something like

Re: [PHP] chown(), chgrp()

2006-09-19 Thread John Nichel
Rahul S. Johari wrote: Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something like is_writeable() ... Except that you¹re trying to find out if you can change the Owner or Group of a file. Who will say it first? http://www.php.net/manual/en/function.fileowner.php -- John C

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread John Nichel
Howard, Tim wrote: Your site is incredibly frustrating and difficult to navigate. My site? Hmmm, I always thought it was pretty easy to navigate. I mean, if you're looking for draft beer equipment, all you have to do is click on the draft beer equipment link. I don't know how I can make

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? This is going way beyond the scope of thi

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Did.. Sudo chmod 770 foresight Specified the root account password. Returned back to prompt without errors, but did absolutely nothing. Permissions remain unchanged. I don't know about Mac, but in Linux you cannot change the permissions of a mount point while the volum

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (res

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: I'm beginning to see it's a permissions issue... Although I don't know how to approach it, as like I said, I have every permission you can think of set to this mac os x user. Does your webserver run as the user 'rjohari'? When you say "webserver", are you talking about

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: How can I set the "drwxr-xr-x" permissions on my mounted share? I've set everything I possibly could in the windows 2003 server to give the mac os x user full control! man mount -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the mounted share. Does your webserver run as the user 'rjohari'? *permissi

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Samba. It's an SMB share. On 9/13/06 12:39 AM, "Chris" <[EMAIL PROTECTED]> wrote: Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' w

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
Rahul S. Johari wrote: Permissions have been set on the Windows Server for the Mac user... And all permissions have been given to him. This is my code.. $filename exists"; } else { echo "The file $filename does not exist"; } ?> And what does this echo out? -- John C. Nichel IV Pr

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
Rahul S. Johari wrote: Ave, I¹m getting really frustrated with this. How do I get PHP to open/read a file which is on a Share, mounted on Mac OS X. My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains mounted on my Mac OS X and I need PHP to read a file off that share. B

Re: [PHP] Getting an argument out of a web page

2006-09-11 Thread John Nichel
Brian Dunning wrote: That did it, thanks! :) Keep in mind that if the ID is less than 5 digits, it won't match (I don't know where MySpace ID's start). You can change it to something like \d{1,} if you want it to match 1 or more digits. -- John C. Nichel IV Programmer/System Admin (ÜberG

Re: [PHP] Getting an argument out of a web page

2006-09-11 Thread John Nichel
Brian Dunning wrote: I'm trying to read a MySpace FriendID out of a web page. If you view the source, you see this is multiple places: .&friendID=12345& What's the simplest way to extract the FriendID and stick it in a variable? Is there a regex that would do this? Is it always in

Re: [PHP] OT - PHP Hosting Service in UK?

2006-09-05 Thread John Nichel
Rory Browne wrote: > > Why? If they're not hosting it in-house, why does it matter where on > the globe it is? Request latency due to distance and intermediate hops. The shorter the distance and fewer hops the faster those little images, stylesheets, and various other embedded media will load.

Re: [PHP] OT - PHP Hosting Service in UK?

2006-09-05 Thread John Nichel
Miles Thompson wrote: I have a Canadian client, presently living in England, who is setting up a vary basic web site. The business is located in the UK, it makes sense to have the web hosting service in the UK as well. Why? If they're not hosting it in-house, why does it matter where on

Re: [PHP] Free Shopping Carts

2006-08-31 Thread John Nichel
Jay Blanchard wrote: Can we do anything else for you today? I'm a php programmer and I have a valve knocking in the engine of my car. Can you fix it? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing L

Re: [PHP] Free Shopping Carts

2006-08-31 Thread John Nichel
Curt Zirzow wrote: On 8/30/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Are there free shopping carts that would work with PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ? [/snip] Yes. Just in case: Try google: 'php mysql shopping' cart or 'php pgsql shopping cart' Freakin

Re: [PHP] stupid compile problem... additional ini files not found

2006-08-21 Thread John Nichel
Jochem Maas wrote: hi people, anyone know why my additional ini files are being ignored. I've just built php5.1.1 the configure line is: './configure' '--with-interbase=shared,/opt/firebird' '--with-apxs2=/usr/sbin/apxs' '--with-gd=shared' '--with-zlib-dir' '--with-jpeg-dir' '--with-config-fi

Re: [PHP] select colum in array.

2006-08-18 Thread John Nichel
Adam Zey wrote: I must say So you've said. Three times now. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: On 17/08/06, John Nichel <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: >> >> >> How does the user "go back one page"? If it by using the browser's >> back-button, the php script has no way of knowing it. > > >

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: How does the user "go back one page"? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. All the session variables in the world a

Re: [PHP] Max File Upload

2006-08-15 Thread John Nichel
Tom Ray [Lists] wrote: Is there anyway to overwrite the max file upload in php.ini per instant? I'd like to have users controlled on a certain website to have more then average uploads but the site runs on a shared hosting environment. http://us3.php.net/ini_set -- John C. Nichel IV Program

Re: [PHP] ftp_chmod

2006-08-15 Thread John Nichel
tedd wrote: Hi gang: Before php 5, how did you guys handle ftp_chmod? Oh, I'd probably try the code outlined in the user contributed section of the ftp_chmod manual page. Keep in mind: a) I'm working on a shared host; b) I'm trying to change permissions via php 4; c) because of (a) (I thi

Re: [PHP] List Meeting NNOT

2006-08-10 Thread John Nichel
Adam Zey wrote: It's still a bit of a drive when you live in Montreal and don't have a car. About an 18 hour drive, plus a few hours for bus stops and border crossings. Canadians are welcome to come? That's it, count me out! :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot

Re: [PHP] Job Posting

2006-08-09 Thread John Nichel
Jay Blanchard wrote: [snip] Sure, or a link not that Jay's up for doing any work anymore - he's a director these days ;-) Ah, so that's where Microsoft cronies go to die. :-p [/snip] Yep...they make them management. Sorry to hear about your demotion. -- John C. Nichel IV Programmer/

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Jay Blanchard wrote: [snip] Brent Meshier wrote: Qualified candidates should e-mail their resume (Word, PDF, or Plain text preferred) to [EMAIL PROTECTED] Where should non-qualified candidates e-mail their resume? [/snip] To me. Silly me. -- John C. Nichel IV Programmer/System Admin

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Brent Meshier wrote: Qualified candidates should e-mail their resume (Word, PDF, or Plain text preferred) to [EMAIL PROTECTED] Where should non-qualified candidates e-mail their resume? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL

Re: [PHP] Job Posting

2006-08-09 Thread John Nichel
Jochem Maas wrote: Jay Blanchard wrote: [snip] Is it appropriate to post jobs on this list? I have many PHP Developer positions available. [/snip] Sure, or a link not that Jay's up for doing any work anymore - he's a director these days ;-) Ah, so that's where Microsoft cronies go to

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread John Nichel
Ivo F.A.C. Fokkema wrote: Hi guys, I'm really stuck with this error and since my backup scripts are no longer running automatically through cron, I really need to get this fixed soon :) Suddenly my backup scripts die with the error "Could not startup.". Only through the cron, it runs fine throu

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
Jochem Maas wrote: Jim Moseby wrote: Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it worked amazingly well.

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
Jochem Maas wrote: Andrew Senyshyn wrote: Hi all, I need to get local user IP, but server with apache and php is in another subnetwork. So from server environment I can get only router's IP. The only solution that I see - is getting with some magic algorithm local IP from brouser and sending it

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
tedd wrote: At 12:55 PM -0400 8/4/06, John Nichel wrote: Wait, are you telling me that I can't auth my customers based on IP alone? Great, now how do I let them view their sensitive data? ;) Okay, how do you? Retina scan, and DNA sample. Seriously though, not by IP in any way, sha

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread John Nichel
Dave M G wrote: PHP List, Recently I wrote a piece of code to scrape data from an HTML page. Part of that code deleted all the unwanted text from the very top of the page, where it says "of a "" tag. That code looks like this: ereg_replace("", "", $htmlPage); It works fine. But I noticed th

Re: [PHP] What good are constants if you can't use them in an array?

2006-08-03 Thread John Nichel
Daevid Vincent wrote: *sigh* Why is PHP so lame... Because some users are too lazy to RTFM. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Documentation of PHP sourcecode

2006-08-02 Thread John Nichel
Paul Zwiers wrote: Dear all, With a growing base of previous PHP work (not to be be mistaken for a "framework" :) ) I also find myself recoding and reinventing the wheel. Something I really do not want to do. I am looking in some possibilities for automatically documenting my functions and

Re: [PHP] Cleaning bad characters from var

2006-07-21 Thread John Nichel
Paul Nowosielski wrote: Dear All, I'm trying to set up an XML feed form our news articles. My XML is validating. The issue is some of the articles have a weird encoding. I wrote a function to do this for our product descriptions when sending them in a XML doc to certain vendors. It's old

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread John Nichel
Adam Zey wrote: Note that just because the fact that it works is a feature, doesn't mean it's good coding style. register globals is a feature too, but it isn't exactly a good idea to use it. Ding ding ding Give that man a cigar. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot

Re: [PHP] headers and newline at end of script

2006-07-20 Thread John Nichel
Jochem Maas wrote: Martin Marques wrote: On Thu, 20 Jul 2006 11:30:14 -0400, John Nichel <[EMAIL PROTECTED]> wrote: Jochem Maas wrote: I never add the final closing '?>' in any script for this very reason. 'Cause you're a SLACKER!!! What the hell is a SLACKER

Re: [PHP] headers and newline at end of script

2006-07-20 Thread John Nichel
Jochem Maas wrote: Martin Marques wrote: I'm looking for an opinion on programming style. Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This last one puts all the HTML away from the PHP code, which has made life much easier. Now, sometimes I warning messages like this one

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread John Nichel
Finner, Doug wrote: My advice, give the candidates problems and see how they solve them. Even if they don't finish, you get an idea of how they think. tedd I like this idea! Do you expect them to be able to work with code written by others? If so, hand them some of your existing code (goo

Re: [PHP] Basic PHP knowledge test

2006-07-20 Thread John Nichel
Please reply to the list. jekillen wrote: On Jul 19, 2006, at 8:31 AM, John Nichel wrote: We're looking to hire an entry level php programmer here, and I've been tasked with writing the test to evaluate the potential candidates. Being the lazy guy that I am, I naturally turned to

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread John Nichel
Ray Hauge wrote: On Wednesday 19 July 2006 10:31, John Nichel wrote: We're looking to hire an entry level php programmer here, and I've been tasked with writing the test to evaluate the potential candidates. Being the lazy guy that I am, I naturally turned to Google to see if I could

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread John Nichel
Jim Moseby wrote: STFW! RTFM!! STFA!! STFU!! That totally goes against my being lazy. Hell, I didn't get to where I am today by *not* exploiting the 'little people' :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -

[PHP] Basic PHP knowledge test

2006-07-19 Thread John Nichel
We're looking to hire an entry level php programmer here, and I've been tasked with writing the test to evaluate the potential candidates. Being the lazy guy that I am, I naturally turned to Google to see if I could find some tests that I could use. After clicking thru many links, and finding

Re: [PHP] Calculations

2006-07-06 Thread John Nichel
Jochem Maas wrote: tedd wrote: At 11:27 AM +0300 6/28/06, Robin Vickery wrote: On 28/06/06, tedd <[EMAIL PROTECTED]> wrote: At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote: http://www.php.net/manual/en/language.operators.bitwise.php I wonder why that's true for php when it's common to us

Re: [PHP] Chnage Management in PHP

2006-07-05 Thread John Nichel
Jay Blanchard wrote: [snip] Yeah, write your own you lazy sack. And get your finger out of your nose. [/snip] John obviously had a fine Fourth! LOL! Hey John, could you write it for me? It's a homework assignment. I had to stay home with the baby while my wife took the 6yo to see the firewo

Re: [PHP] Chnage Management in PHP

2006-07-05 Thread John Nichel
Jay Blanchard wrote: I have been searching and digging for a PHP based change management application but have had little luck. Can anyone make a recommendation? Yeah, write your own you lazy sack. And get your finger out of your nose. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) D

Re: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread John Nichel
Don wrote: Hi Have have a varchar field in a MySQL database which contains the following 905.362.6000"l""s"'L' I am trying to display it on my web page in a field but all I see is: 905.362.6000 Because it has quotes in it. I bet if you look at the source of the page, the full value is

Re: [PHP] ONE PAGE CONNECTS MANY DATABASE

2006-06-30 Thread John Nichel
BBC wrote: Hi again.. I'm wondering is it possible to make one page which connects to many DataBase? Yes. If it's possible please tell me where can I get the references? Look at the connection functions for whatever database engine you're using. -- John C. Nichel IV Programmer/System Ad

Re: [PHP] Update site through email

2006-06-29 Thread John Nichel
Nathanael Merrill wrote: I will be on vacation from June 26th through July 17th. I will have limited access to email and will get back to you as soon as I can. Thank you. - nathanael merrill You just made the list Nathanael. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Ho

Re: [PHP] Update site through email

2006-06-29 Thread John Nichel
Jim Moseby wrote: Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. How much time

Re: [PHP] working on a template system...

2006-06-28 Thread John Nichel
Robert Cummings wrote: On Wed, 2006-06-28 at 15:10, tedd wrote: At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be reduced to simplistic solutions. That's right, and a template engine simplifies the complexity. Cheers, Rob.

Re: [PHP] Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: Just how does one launch a "DOS" attack? c:\ fdisk c:\ format Repeat as needed ? -- Damn John, now anybody who wants to start DDOSing knows the secret. Well then, they still have some research to do for launching a DoS attack. -- John C. Nichel IV Programmer/System

Re: [PHP] Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: Hey, Am really starting to like your emails on this list, its different to say the least! seeing as you didn't threat to DoS my server I guess I'm not trying hard enough to be different ;-) Oops, sorry about that, let me try again: You , how dare you say that, I am now going

Re: [PHP] Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: --- Prathaban Mookiah <[EMAIL PROTECTED]> wrote: Are you trying to use PHP to write the HTML onto a database. If this is the case you can simply use addslashes(). This way you can still preserve the double quotes, but write into the database without any problems. Either way s

Re: [PHP] Ereg problem

2006-06-27 Thread John Nichel
Beauford wrote: Please turn of your mail client's request for return receipts when sending to a mailing list. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] GET, POST, REQUEST

2006-06-23 Thread John Nichel
Richard Lynch wrote: On Tue, June 20, 2006 2:38 am, Satyam wrote: I come from languages where you not only have to initialize a variable but have to declare it as well so initializing comes natural, I feel wrong if I don't do it, even if the interpreter does not care. Just to be pedantic... T

Re: [PHP] Re: [MailServer Notification]Content Filtering Notification

2006-06-21 Thread John Nichel
Adam Zey wrote: [EMAIL PROTECTED] wrote: Content Filter @ AIT Batam has detect violation of the PROFANITY rule, and Quarantine entire message has been taken on 21-Jun-2006 22:49:25. Message details: Server:BTMAIL Sender: [EMAIL PROTECTED]; Recipient:[EMAIL PROTECTED];php-general@lists.php.net;

Re: [PHP] helping people...

2006-06-21 Thread John Nichel
Rob W. wrote: No that wasnt a ddos threat you idiot, i dont play them games. So what was your threat then Robbie? Here's an idea, do your own damn homework. And if all you're going to do here is cry like a little girl*, do us a favor and STFU. *sorry to give all the little girls a bad name

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread John Nichel
Jochem Maas wrote: [EMAIL PROTECTED] wrote: var_dump gives Company Director string(17) Company Director string(16) Why would they be different? probably because there is either: 1. white space in the value in your data source 2. white space being outputted along side the value when creati

Re: [PHP] mysql_db_query & INSERT

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] How do I retrieve the auto generated primary key field in the first table during the first insert operation. [/snip] http://www.php.net/mysql_insert_id You mean they have a manual for this stuff?? Holy Toledo! -- By-Tor.com ...it's all about the Rush http://www

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread John Nichel
Jochem Maas wrote: echo '',$port,''; 2. try to output something that resembles proper HTML (an without a closing tag sucks) P I never close my option tags that way Bar :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.

Re: [PHP] Simulating mysql_real_escape_string

2006-06-19 Thread John Nichel
Tim Traver wrote: Hi all, ok, have a relatively complicated architecture of php scripts in place, and after reading more about SQL injection, want to make sure that I clean my data completely before I enter it into a MySQL db. I tend to clean the data on the way into the app, which has many

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] Anot PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( "/\((\d{1,}.*?)\)/", "Upper Voltage (124.1)", $regs ); [/snip] Still returns parentheses ereg("[^\(][0-9\.]*" , "Upper Voltage (124.1)", $regs ); gets rid of

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] \(([0-9]*)\) [/snip] I had done this before and still get the parenthesis... ereg("\(([0-9]*)\)", "Upper Voltage (124.1)", $regs); Anot PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( "/\((\d{1,}.*?)\)/", "U

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: I have a field that contains a value in parenthesis', but also contains other text, for instance; (it is a legacy app that I am working with, and by legacy I am saying pre-1980) Upper voltage (124.1) I know that \([0-9]*\) will get me (124.1), but I am totally forgetting ho

Re: [PHP] Array

2006-06-19 Thread John Nichel
Rob W. wrote: $query="SELECT switchport FROM network"; $result=mysql_query($query); $sql_range=array($result['switchport']); Anybody tell me what i'm doing wrong and why this isnt going in to an array? Because you're not understanding what the function mysql_query() is doing. Look at

Re: [PHP] Re: mysql ORDER BY problem

2006-06-18 Thread John Nichel
Rob W. wrote: It's not in general to mysql, it's how php and mysql is displaying it. That's not what you asked. You asked how to do it with your query, which has nothing, nadda, zip to do with PHP. You want MySQL to do the sorting, look at the MySQL manual under the select syntax, or ask o

Re: [PHP] SMS with php recommendation (a bit 0T i guess)

2006-06-18 Thread John Nichel
Ryan A wrote: Hey, Right now I am using PSWIN to send SMS messages from my php scripts, can anybody recommend a (reliable) company that i can use instead? We "fill up" on 25euros everytime on pswin, so i am not looking for a "free" provider, just a reliable and good priced one. PSwin is good,

Re: [PHP] Control GET data

2006-06-06 Thread John Nichel
Steffen Mazanek wrote: Hello, I want to provide two input text fields lastname and firstname and if the user pushes the submit button the generated url should be ...?name=firstname_lastname. Is this possible and how? Yes and JavaScript Thank you for helping a php newbie. You're welcome,

Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread John Nichel
tedd wrote: And I thank you for your reply -- you've been much kinder than most (on and off-list). :-) True the subject line was a bit misleading, but that was intentional. Bait causes more fish to rise. I've received the answer several times over since I posted the problem, but I wasn't lo

Re: [PHP] If value is odd or not

2006-06-02 Thread John Nichel
Jochem Maas wrote: Jonas Rosling wrote: Hi all, is there any easy why to check if a value is odd or not? ignore every answer that doesn't use the % operator. if ( is_int ( $value / 2 ) ) { // Even } :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of B

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Nichel
John Meyer wrote: John Nichel wrote: Do what I do, and don't do OO. ;) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and ignore dogma? Hmm, what a concept! Actually, the company I work for operates multiple sites

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Nichel
Jochem Maas wrote: I get this sometimes, it often means I have overlooked something: Fatal error: Access to undeclared static property: AreaAgendaItem::$extraFields EVERYWHERE in php an unset var causes an E_NOTICE, but if you dare to use OO then all of a sudden the OO nuthouse runs out

Re: [PHP] regex problem

2006-06-01 Thread John Nichel
Merlin wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for "test_a9393.htm", but not for "9393.htm" as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a hint why the regex also

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread John Nichel
Beauford wrote: Hi, I have a form in which a drop down field is populated from a MySQL database. I am also using sessions. The problem is this. After I submit the form the session variable only shows the part of the input before the space. Example: if I choose Niagra Falls from the drop down l

Re: [PHP] corrupt pdfs

2006-05-31 Thread John Nichel
Ross wrote: I have pdfs saved as BLOBs I create the links dynamically but only some of the PDFs display an error message 'error opening this files...this file cannot be repaired..." Is there a file size limit in kb for Blobs and what is it? What size of file can a LONG BLOB accomodate? If it

Re: [PHP] Escaping double quotes

2006-05-25 Thread John Nichel
Pavleck, Jeremy D. wrote: So I'm writing this page (PHP Newbie here) and it checks to see if a var is set, if it isn't it spits out the form info like so: echo ""; Now is there a way to 'wrap' that so I don't have to escape quotes? Something like perls 'qq' function is what I'm looking for. I tr

Re: [PHP] storing single and double quote in MySQL

2006-05-24 Thread John Nichel
[EMAIL PROTECTED] wrote: ok. I just made one test and if you can then explain something to me: I entered in form (textarea) afan's "crazy" web and stored in db using mysql-real_escape_string(). in DB, it's stored with slashes: afan\'s \"crazy\" web Then I pulled that from DB on three different w

Re: [PHP] storing single and double quote in MySQL

2006-05-24 Thread John Nichel
[EMAIL PROTECTED] wrote: after these very helpfull comments, I rad (again) Shiflett's (and few others) Security articles about filtering input and output. And more I read - less is clear :( Before, I used addslash() before I insert data in database and strislshe() to show them on screen. Later

Re: [PHP] storing single and double quote in MySQL

2006-05-22 Thread John Nichel
Brad Bonkoski wrote: Looks good to me, just make sure you use: http://www.php.net/manual/en/function.stripslashes.php if you have to dump that information back to the users. (you might want to check out: addslashes() to add the slashes before your DB insert, just to keep those things under your

Re: [PHP] Need Help Please

2006-05-21 Thread John Nichel
marvin hunkin wrote: Hi. doing an assignment, for my Certificate Four In Website Administration. The tutor list is down the hall. now got a couple of problems. will explain what i have to do. create a html form, which i have done. in textpad. now, when i open the form, it does not set focus t

  1   2   3   4   5   6   7   8   9   10   >