[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] Basic PHP knowledge test

2006-07-19 Thread John Nichel
Jim Moseby wrote: stock answer STFW! RTFM!! STFA!! STFU!! /stock answer 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

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 find some

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 Google

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

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

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??? I'm a slacker. Which

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

2006-07-20 Thread John Nichel
Adam Zey wrote: snip 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

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

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] 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:

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 !DOCTYPE, all the way down to the first instance of a ul tag. That code looks like this:

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, shape

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

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] 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

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] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Brent Meshier wrote: snip 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

Re: [PHP] LAMP Developer Needed - Indianapolis

2006-08-09 Thread John Nichel
Jay Blanchard wrote: [snip] Brent Meshier wrote: snip 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

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

Re: [PHP] List Meeting NNOT

2006-08-10 Thread John Nichel
Adam Zey wrote: snip 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

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

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

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

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. Yes, but the session variables have already been set

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] 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'

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' Freaking

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

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] 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] 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] 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

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.

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.. ?php #Check is DBF Exists $filename = /Volumes/foresight/2qc0831.dbf; if (file_exists($filename)) { echo brbr$filename exists; } else {

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' was

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'?

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

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] 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

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

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

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

2006-09-18 Thread John Nichel
Howard, Tim wrote: snip 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

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

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] 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] 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] 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] 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] 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

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

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] 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

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,

Re: [PHP] why so slow?

2006-11-02 Thread John Nichel
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 here have been

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

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

Re: [PHP] Staff log-in

2006-11-09 Thread John Nichel
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/9, John Nichel

Re: [PHP] Staff log-in

2006-11-10 Thread John Nichel
Jochem Maas wrote: John Nichel wrote: snip 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 Holdings

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] number format?

2005-05-10 Thread John Nichel
Dustin Wish wrote: I have a number like -56.98 I need to convert it to -5698. I tried You tried what? Multiplying it by 100? -- John C. Nichel berGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] beginner needs help!

2005-05-12 Thread John Nichel
Clinton, Rochelle A wrote: Dear Much Needed Advisor, I am definitely a PHP novice and making some code changes to a PHP script. I need to change a declared output file to include the date as an extension. My file is declared at the beginning of the script as: var $exportFile = Export.txt; I need

Re: [PHP] auto_prepend_file in Apache Directory container

2005-05-13 Thread John Nichel
Richard Lynch wrote: On Thu, May 12, 2005 12:48 pm, dan said: I'm trying to override the value of php.ini's 'auto_prepend_file' function, inside of an Apache Directory container. I'm not having much luck. In fact, no luck at all. This never happens. So I'm wondering now, are functions set by

Re: [PHP] php works in IE not Firefox?

2005-05-13 Thread John Nichel
Dustin Wish wrote: Anyone run across an issue where a php script works in IE and not Firefox? Christianboards.org is a PHP nuke site running on a Enism linux box that is having this issue. PHP is server side. The browser is irrelevant to the execution of PHP. -- John C. Nichel berGeek

Re: [PHP] PHP Phone Number Validation

2005-05-17 Thread John Nichel
IMEX Research wrote: OK, I know this has probably gone aruond the list a few times, but how do I validate a phone number that is in the format ddd-ddd- ?? I can't figure out how. preg_match ( /^\d{3}-\d{3}-\d{4}$/, $phnumber ) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] hey dip shit

2005-05-17 Thread John Nichel
Jason Motes wrote: HAH This list could really use an active moderator. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hey dip shit

2005-05-18 Thread John Nichel
Rory Browne wrote: This list could really use an active moderator. Um no. You can't moderate what's already in peoples mailboxes, and if you're going to have all posts manually approved before delivery, then you're going to seriously affect the responsiveness of the list. Besides that post was

Re: [PHP] hey dip shit

2005-05-18 Thread John Nichel
Jason Barnett wrote: John Nichel wrote: Jason Motes wrote: HAH This list could really use an active moderator. Did Mr. Nichel just volunteer for that task... Hell, I'll do it...if there are no objections from the established list members (like that will happen ;) -- John C. Nichel ÜberGeek

Re: [PHP] hey dip shit

2005-05-18 Thread John Nichel
Jay Blanchard wrote: [snip] John has my vote for what it's worth :-) [/snip] So, you're voting John in as dip shit? I second that. :) Thanks professor. ;) You knew it wasn't going to be too long before I weighed in on this. Agree with not releasing every post (posts are taking a long time to show

Re: [PHP] novice: char to varchar

2005-05-18 Thread John Nichel
tony yau wrote: Hi all, I try to do the following: CREATE TABLE IF NOT EXISTS Invoice( PKey INTEGER, Received DATETIME, Cost DECIMAL(10,2), FileName VARCHAR(50), RefNum CHAR(10), PRIMARY KEY (PKey) ) TYPE=MyISAM COMMENT='Invoice Data'; but it keep generating RefNum VARCHAR(10)

Re: [PHP] novice: table design FOREIGN key

2005-05-19 Thread John Nichel
tony yau wrote: Hi All snip Even though some people on this list were nice enough to answer your first OT question, this is still not a MySQL list. http://lists.mysql.com/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
Sebastian wrote: I'd like to know if it is possible to perform a search across multiple mysql tables within a single query. eg, i have two tables with different column names: news: title | newstext faqs: topic | faqstext currently i am just searching the news table with a query as such:

Re: [PHP] Requiring stuff question

2005-05-23 Thread John Nichel
Robert wrote: I have the following in a config file: // Define and require the Smarty library define('SMARTY_DIR', 'Smarty/'); require(SMARTY_DIR . 'Smarty.class.php'); // Define the pager stuff define('PAGER_DIR', 'Pager/'); require(PAGER_DIR . 'Pager.php'); require(PAGER_DIR .

Re: [PHP] Error checking

2005-05-23 Thread John Nichel
Michael Satterwhite wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
John Nichel [EMAIL PROTECTED] wrote: We are currently away on holiday, until 16th June. I will respond with your email on my return. Thanks James Nunnerley Lookie, lookie php list controler peopleanother reason for an active moderator. -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] Free penetration test

2005-05-23 Thread John Nichel
snip Gee, I wonder why this one ended up in my spam folder. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] searching tables

2005-05-23 Thread John Nichel
Sebastian wrote: I am quite aware of a mysql mailing list. I don't feel like joining another list, anyway, move along,.. I've already solved the problem without your help, but from others on this list. So you feel it's a-okay for *you* to post off topic questions because *you* don't feel

Re: [PHP] Regex nightmares

2005-05-23 Thread John Nichel
W Luke wrote: Hi, I really struggle with regex, and would appreciate some guidance. Basically, I have a whole load of files (HTML) which are updated every few minutes. I need to go through each line, looking for the word CONFIRMED: (which is always in capitals, and always superseded by a

Re: [PHP] Why this doesn't work ?

2005-05-24 Thread John Nichel
Mário Gamito wrote: Hi, Hi have this bit of code: - echo script language=\JavaScript\ window.location=\valid_cv_insert.php?email=$email\ /script; - but when passing to file

Re: [PHP] Very long delay posting to php-general (might be OT)

2005-05-25 Thread John Nichel
Marek Kilimajer wrote: Andy Pieters wrote: Hi all I was wondering if it is normal that when posting to the php-general list there is always a very long delay before messages are shown. It's not like with snail mail. Sending mail messages is instant so where is the delay? I think John

Re: [PHP] further detail on mysql connect problem

2005-05-25 Thread John Nichel
Jim Sara Feldman wrote: Hi: Adding a detail to my previous note on the mysql connect problem: At the point where I attempted to connect, I added a printout of the error generated when the instruction ran. The two lines now read: $result = mysql_pconnect(localhost, api_user, x97533); echo

Re: [PHP] [JOB] PHP/Java Web Developer -- Washington, DC area -- ON SITE

2005-05-25 Thread John Nichel
Alok K. Dhir wrote: LOCAL INDIVIDUAL CANDIDATES ONLY -- WE ARE NOT LOOKING FOR TELEWORKERS OR CONSULTING COMPANIES. Strongly Desired Skills (2.5+ years): - Large scale, highly available applications development on Unix/Linux platform - PHP - SQL - D/HTML/Javascript/CSS

Re: [PHP] novice: how to run .sql script from php?

2005-05-27 Thread John Nichel
tony yau wrote: Hi All, I got this .sql script that setup the whole db schema, I can run mysql.exe to run on my pc but when it goes to a hosting company's server I don't have that command! So I tried to include(setup.sql) into a string and send that as one long sql query. BUT I need to

Re: [PHP] addslashes/stripslashes issue

2005-05-27 Thread John Nichel
JM wrote: Hi all, Ok here is what I need help with: $var = i like fi'sh; I'm able to addslashes(gather the data from a form), submit into the database, stripslashes(retrieve it). My problem is when I display it in a input type=text form the single quote is causing a truncation. input

Re: [PHP] .INC files

2005-05-31 Thread John Nichel
Martin Zvarik wrote: Hi, I saw files like file.inc.php and file.inc What is the *.inc suffix good for ? Thank you for replies. Martin It doesn't matter. PHP will parse either if you call them via include() or require() I guess it just boils down to your preference. -- John C. Nichel

Re: [PHP] Craig's List Clone part deux

2005-05-31 Thread John Nichel
Michael O'Neal wrote: Hi...I posted a while back looking for an open-source or affordable Craig's List clone built in PHP, and the advice was to search...there are a ton out there. So far, the only one I've been able to come up with is AJ Classified Pro

Re: [PHP] [Files suffix] .inc.php files

2005-06-01 Thread John Nichel
Leif Gregory wrote: Hello Martin, Sunday, May 29, 2005, 9:24:00 PM, you wrote: M I saw files like file.inc.php and file.inc M What is the *.inc suffix good for ? It's good for a lot of trouble if the webserver hasn't been set up to parse .inc files as PHP. If it hasn't then someone can request

Re: [PHP] what is -- $this variable - $this other variable -- means?

2005-06-01 Thread John Nichel
Marek Kilimajer wrote: ...helmut wrote: What does $this variable - $this other variable Means? I have seen it and i have used but I am not sure what exactly it means in regular English or Spanish wording that is. read about variable variables While variable variables are useful, and a

Re: [PHP] What are these weird variables??

2005-06-03 Thread John Nichel
Brian Dunning wrote: I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: if(!defined(MAGPIE_DBUSER)) define(MAGPIE_DBUSER, brian); ... $dbuser = MAGPIE_DBUSER; ... $dbh = mysql_connect($dbhost,$dbuser,$dbpass); And it works

Re: [PHP] Delay?

2005-06-03 Thread John Nichel
GamblerZG wrote: What's keeping you. There are no official PHP forums. [EMAIL PROTECTED] jnichel]$ whois officialphpforums.com [Querying whois.internic.net] [whois.internic.net] Whois Server Version 1.3 Domain names in the .com and .net domains can now be registered with many different

Re: [PHP] linux php editor

2005-06-06 Thread John Nichel
Greg Donald wrote: On 6/6/05, Clive Zagno [EMAIL PROTECTED] wrote: what php GUI editors do you recommend. any other recommendations, thanks vim You newbies and your fancy editors. Back in my day, you got vi, and you were happy with it. ;) -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] linux php editor

2005-06-06 Thread John Nichel
Greg Donald wrote: On 6/6/05, John Nichel [EMAIL PROTECTED] wrote: You newbies and your fancy editors. Back in my day, you got vi, and you were happy with it. ;) # dd if=/dev/tty of=/dev/hda1 Now we just need the punch card people to speak up. -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] linux php editor

2005-06-06 Thread John Nichel
Clive Zagno wrote: the truth is Ive been developing on windows, because of some .net developments. Ive been starting most new projects as web applications and using php/mysql. On windows I used ultredit, then I found a product called phpedit, which I liked, now Im trying to move to linux.

Re: [PHP] Nameserver lookup

2005-06-07 Thread John Nichel
Hans J.J. Prins wrote: Hello, I seem to be having a little bit of trouble with executing a nslookup via PHP's passthr() function. This: passthru(nslookup -query=ns testing12345.nl, $returnVar); Returns: Server: ns1.activedomain.nl Address: 217.148.161.5 Aliases: 5.161.148.217.in-addr.arpa

Re: [PHP] Re: How to execute local applications on the client

2005-06-07 Thread John Nichel
Matthew Weier O'Phinney wrote: * Mauricio Pellegrini [EMAIL PROTECTED]: Some one has asked me to set a web page from within wich users could launch local applications. Those applications are allready installed in the client PC. The link on the web page would act as a simple link to start the

Re: [PHP] The goto discussion on the Internals List

2005-06-07 Thread John Nichel
Jay Blanchard wrote: snip The speed difference is negligible though, in this day and age, dependent upon how much hair-splitting you would care to do. You're still setting aside a block of code which will have to be parsed and you incur the same setup if the goto section is the same code as the

Re: [PHP] Re: string highlight

2005-06-08 Thread John Nichel
Rory Browne wrote: On 6/8/05, David Duong [EMAIL PROTECTED] wrote: Sebastian wrote: i'm looking for a function that can highlight certain search terms in a string. anyone have something already made that i can plugin to my exisiting code? I found a couple but they do not work very well..

Re: [PHP] problem with IE and php

2005-06-08 Thread John Nichel
Philippe Reynolds wrote: Hi all, I running two php web page...therefore the page name has the .php on the end. The first page contains a form with a submit button at the botton. That submit button actions the second .php page. When I use my firefox browser everything works fine. When I use

Re: [PHP] Re: string highlight

2005-06-08 Thread John Nichel
Rory Browne wrote: snip Good catch Rory. A regex replace would work better here. $search = body; $find = /\b . $search . \b/; preg_replace ( $find, b . $search . /b, $html ); I don't think so. If I'm reading your code correctly you still have the same problem, as I outlined above. There is

Re: [PHP] Really simple regex

2005-06-08 Thread John Nichel
Dotan Cohen wrote: Now, I know that this is easy, but I am embarassed to say that I can't find a regex tutorial that will show me how to match any occurances of x and replace them with one x: x x xx x x x $string=I have apples!; $string=preg_replace(-regex here-,x, $string);

  1   2   3   4   5   6   7   8   9   10   >