Re: [PHP] translations for PHP app

2008-09-08 Thread Shawn McKenzie
Per Jessen wrote: Shawn McKenzie wrote: I need translations from English into the most common languages of my users: Spanish, French, Italian, Chinese, Indian, Russian. Also, anyone having expertise in other languages, I would love to have them, please contact me. Maybe it's worth trying

Re: [PHP] translations for PHP app

2008-09-09 Thread Shawn McKenzie
tedd wrote: At 9:12 PM -0500 9/7/08, Shawn McKenzie wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines

Re: [PHP] Recommendation

2008-09-09 Thread Shawn McKenzie
I don't understand the question. It is an email account that I check and I get mail from that address all the time. Of course it's late/much wine and there may be some humor here that is totally escaping me. -Shawn tedd wrote: At 10:15 AM -0500 9/2/08, Shawn McKenzie wrote: Eric Butera

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Shawn McKenzie
tedd wrote: At 10:05 PM -0400 9/9/08, Dan Joseph wrote: Look, just because we let you out of your cage, doesn't mean you have to go breaking your bones! No more vacations! BTW, was that dance in response to MSU winning 2 games in a row? -- -Dan Joseph Dan: I only root for two schools:

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Shawn McKenzie
Wolf wrote: Shawn McKenzie [EMAIL PROTECTED] wrote: tedd wrote: At 10:05 PM -0400 9/9/08, Dan Joseph wrote: Look, just because we let you out of your cage, doesn't mean you have to go breaking your bones! No more vacations! BTW, was that dance in response to MSU winning 2 games

Re: [PHP] Re: Recommendation

2008-09-10 Thread Shawn McKenzie
tedd wrote: At 9:16 AM +0100 9/10/08, Colin Guthrie wrote: Shawn McKenzie wrote: I don't understand the question. It is an email account that I check and I get mail from that address all the time. Of course it's late/much wine and there may be some humor here that is totally escaping me

[PHP] Re: New Server Install

2008-09-10 Thread Shawn McKenzie
, requires NO paswword. But root, accessing from any other host requires a password. Also, this could have more host entries, but probably not by default. If your db server is on a different host from your web server, this or similar is most likely your problem. -Shawn -- PHP General Mailing

[PHP] Re: New Server Install

2008-09-10 Thread Shawn McKenzie
Shawn McKenzie wrote: Robbert van Andel wrote: I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's

Re: [PHP] Re: New Server Install

2008-09-11 Thread Shawn McKenzie
blocking this port either on your computer, the server, or the router/switch or whatever else you are using to connect the computers on the network Ash www.ashleysheridan.co.uk http://www.ashleysheridan.co.uk -- Forwarded message -- From: Shawn McKenzie

Re: [PHP] Error message

2008-09-20 Thread Shawn McKenzie
or otherwise) it considers anything before ?php as HTML, so it outputs it as HTML (newlines, spaces, whatever). So if you have whitespace before the ?php, then the PHP interpreter outputs it, thus the output before the session_start() error. -Shawn -- PHP General Mailing List (http://www.php.net

[PHP] Re: Just testing IGNORE!!!

2008-09-24 Thread Shawn McKenzie
uaca man wrote: Did IGNORE!!! pass or fail the testing? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Don't understand what is this $arr['N']['#']

2008-09-27 Thread Shawn McKenzie
. How did you do that? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
web server conf file(s) for /usr/bin/php and if found then change it to /usr/bin/php-cgi. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Shawn McKenzie
the full document ;) But for me, it is quite clear that an empty string is a valid URI *into* a document served by HTTP. I almost got used to the schreefing and now the a écriting! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
that came out correct was the first echo. The remaining echos had no values for $first_name or $last_name. What's happening here? Cheers, tedd PS: I'm open to other suggestions as to how to do this. What do you get if you do a print_r($_SESSION) just before this loop? -Shawn -- PHP

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
Shawn McKenzie wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1

Re: [PHP] SESSION array problems

2008-10-01 Thread Shawn McKenzie
tedd wrote: At 2:43 PM -0500 10/1/08, Afan Pasalic wrote: just tested. works fine $_SESSION = array( '6156' = array( 'first_name'= 'Diane', 'last_name' = 'Cable'), '7030' = array(

[PHP] Re: Yeah I'm sortof a noob

2008-10-09 Thread Shawn McKenzie
, string, int, etc...) These are correct: 0 == false '' == false null == false 69 == true 'false' == true These are not: 0 === false '' === false null === false 69 === true 'false' === true -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Login

2008-10-09 Thread Shawn McKenzie
Richard Heyes wrote: Unless that was the business you were in ;) True enough, but what kind of business would that be...? :-) Rating poo, of course... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Remove index.php from url

2008-10-11 Thread Shawn McKenzie
-Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Remove index.php from url

2008-10-11 Thread Shawn McKenzie
Shawn McKenzie wrote: OOzy Pal wrote: Hello, I expect that this question been beaten to death. I googled for many hours and all what I found is related to one CMS or another. I want to do is to make a very very very simple index.php that when is it called it automatically detect the page

[PHP] Re: How to know what current system is?

2008-10-13 Thread Shawn McKenzie
Jiang Miao wrote: Is there any function do that? when php in Linux it returns linux in windows it returns windows I found phpinfo(INFO_GENERAL); output the string System = Linux ubuntu 2.6.24-19-server. but I have no idea to get that info. Thanks Jiang Miao PHP_OS constant. -Shawn

[PHP] Re: Csv issue

2008-10-13 Thread Shawn McKenzie
1: br //p p 0 fields in line 2: br //p ect for millions of records. Try: print_r(file($_POST['filename'])); And see if you get what you expect. You might also want to have error_reporting at its highest and display_errors also. -Shawn -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Csv issue

2008-10-14 Thread Shawn McKenzie
: print_r(file($_POST['filename'])); And see if you get what you expect. You might also want to have error_reporting at its highest and display_errors also. -Shawn Please reply to the list. I missed it the first time around, but you need to use the $_FILES array: http://php.net/manual

[PHP] Re: Output to matrix printer

2008-10-14 Thread Shawn McKenzie
can write the code about this as example. Thnx, Dusan Matrix printer? Is this an awesomely powerful matrix of multiple printers high output printers? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Output to matrix printer

2008-10-15 Thread Shawn McKenzie
Per Jessen wrote: Shawn McKenzie wrote: Matrix printer? Is this an awesomely powerful matrix of multiple printers high output printers? -Shawn http://en.wikipedia.org/wiki/Matrix_printer /Per Jessen, Zürich Ha,ha, yes I know. My first printer was a http://en.wikipedia.org/wiki

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Shawn McKenzie
Nathan Rixham wrote: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* Procedural for small stuff - OOP for larger stuff when using framework *Dev OS* Kubuntu Hardy Heron *Dev PHP Version* 5.2.4 *Live Server OS* FC 6 *Live Server PHP Version*

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Shawn McKenzie
Shawn McKenzie wrote: Nathan Rixham wrote: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* Procedural for small stuff - OOP for larger stuff when using framework *Dev OS* Kubuntu Hardy Heron *Dev PHP Version* 5.2.4 currently (whatever is current

[PHP] Re: Form Loop

2008-10-18 Thread Shawn McKenzie
and let it increment. echo 'tdinput type=text id=qty name=quantity[] size=2 value=' . $row['qty']. ' //td'; -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Form Loop

2008-10-19 Thread Shawn McKenzie
Rick Pasotto wrote: On Sat, Oct 18, 2008 at 08:07:26PM -0500, Shawn McKenzie wrote: Terry J Daichendt wrote: I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1

Re: [PHP] Remote Developer Wanted

2008-10-20 Thread Shawn McKenzie
(not my profession) programmer. It seems to still be working out for me :-) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Difficulty navigating symlinks

2008-10-22 Thread Shawn McKenzie
containing the symlink. Is there any way to configure apache or php to trace back the symlink when using '..', or can that only go one direction? Thanks, Seth Haven't read the entire thread, but you might also look at http://php.net/manual/en/function.realpath.php -- Thanks! -Shawn http

Re: [PHP] Politics

2008-10-22 Thread Shawn McKenzie
accompanied Have you tried restarting Apache? :) no, no, no, she said painfully, she must be using IIS... :) Try upgrading all your drivers and then restarting... No - reboot, reinstall, reinstall Windows. Cheers No - scandisk, defrag, reboot, reinstall -- Thanks! -Shawn http

[PHP] Re: E_STUPID

2008-10-22 Thread Shawn McKenzie
... That's my new t-shirt idea I'm with E_STUPID -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Interactive canvas example

2008-10-26 Thread Shawn McKenzie
which bar I click on, it says January 2007 Sales: 80%, which may just be your example, but I would think each bar should be different. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: clean data

2008-10-28 Thread Shawn McKenzie
() function to do the sanitizing that you want. There are lots of free tools to do this. I use kfilereplace on kubuntu. I wrote a simple one for windows in C# which you can have. If needed, you could also extend this to mysql_fetch_row() etc... -Shawn -- Thanks! -Shawn http://www.spidean.com

Re: [PHP] Mailing lists

2008-10-30 Thread Shawn McKenzie
! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mailing lists

2008-10-30 Thread Shawn McKenzie
, at least we elected them... Oh wait... -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mailing lists

2008-10-31 Thread Shawn McKenzie
OUR English down here? We drop the 'U', but they replace it with another 'O' in speech! It's aboot time yoo folks spoke properly, Cummings! ;-P I think you're confusing us witht he Scotts. Cheers, Rob. No doot aboot it. No, he's not confused. -- Thanks! -Shawn http://www.spidean.com

Re: [PHP] Mailing lists

2008-11-01 Thread Shawn McKenzie
Dotan Cohen wrote: 2008/10/30 Shawn McKenzie [EMAIL PROTECTED]: Richard Heyes wrote: It's exceedingly easy to configure and use. Not as easy as setting up a Google group, which I've just done... :-) For anyone whose interested: http://groups.google.com/group/rgraph

Re: [PHP] object persistence within a session

2008-11-07 Thread Shawn McKenzie
, but they did. Cheers, ted Stan is a young whipper - snapper. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] while-question

2008-11-19 Thread Shawn McKenzie
algorithms worked, and how code actually played with the lower intracacies of the processor where quite valuable. and no.. i'm no longer the engineer i was a time ago.. so.. interesting... They must have been case-insensitive languages, unlike English. :-) -Shawn -- PHP General

Re: [PHP] Form Input Type=File

2008-11-22 Thread Shawn McKenzie
automagically. But your form method is GET so you should probably urlencode the values, especially the ones with non-alphanumeric characters like {, }, etc... -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Some kind of Popup

2008-11-22 Thread Shawn McKenzie
?product_id=X with target=_blank, then in details.php query for the details using the product_id and display. 2. Same as 1 except use a javascript popup via onclick() so that you can control the look of the window (no toolbars, menu, etc...) -- Thanks! -Shawn http://www.spidean.com -- PHP

[PHP] Re: Some kind of Popup

2008-11-22 Thread Shawn McKenzie
it set to block popups. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Form Input Type=File

2008-11-23 Thread Shawn McKenzie
Stan wrote: I surrender. My web site is too complex to explain here. Yes, I poked around on it from the link in your previous email. I must say that it appears that you have made things much more complex than they need to be. -- Thanks! -Shawn http://www.spidean.com -- PHP General

[PHP] Re: Voting methodology

2008-12-01 Thread Shawn McKenzie
, tedd Being a union I would expect that they want some way to control the stuffing to their advantage. :-) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to fetch .DOC or .DOCX file in php

2008-12-04 Thread Shawn McKenzie
that it will end up in has yet has yet... what? Are you O.K. Jim? Did you die while writing this? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: SV: [PHP] Sending files via POST

2009-01-06 Thread Shawn McKenzie
, not on list. Oh, you may not be happy, but you may well be flamed on list :-) Best regards, and wishes for a happy 2009, Anders. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] data from db to a page and then to another page

2009-01-07 Thread Shawn McKenzie
?band=2Band2/a Then in page2 use $_GET['band'] and do your query. (of course checked and sanitized, yadayada...) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Shawn McKenzie
-belligerent intentions when asking this question. Thanks, dK local.php ?php $safe_flag = 1; require_once(http://otherhost.com/remote.php;); ? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cannot Install mysql extension

2009-01-08 Thread Shawn McKenzie
\PHP\libmysql.dll to c:\Windows -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Shawn McKenzie
with the best colors, but the rough formula is: Black = minimum(1-Red,1-Green,1-Blue) Cyan= (1-Red-Black)/(1-Black) Magenta = (1-Green-Black)/(1-Black) Yellow = (1-Blue-Black)/(1-Black) Write your own little functions to convert. -- Thanks! -Shawn http://www.spidean.com -- PHP General

Re: [PHP] Re: Adding extension to an existing PHP install

2009-01-12 Thread Shawn McKenzie
that some extensions may have been added after the initial install and my new installation would overwrite those. The binary should be in the dir where you ran make (I think) and you should put it in the dir specified in your php.ini for extensions. -- Thanks! -Shawn http

Re: [PHP] PHP unlink Permission Error

2009-01-13 Thread Shawn McKenzie
to delete the file? Who is the owner of the file and what are the perms? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php session GC error

2009-01-13 Thread Shawn McKenzie
on line 2 What do I have to do to make this work right? Frank Does C:\WINDOWS\TEMP\ exist? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] switch vs elseif

2009-01-13 Thread Shawn McKenzie
here unless they are dereferenced to a simple type. I believe boolean is also one. I would point out however that the switch does a loose comparison, so this would be different: switch (true) { case (strpos(shawn, s)): //actually returns 0 so is false break; case

[PHP] Re: php session GC error

2009-01-13 Thread Shawn McKenzie
Frank Stanovcak wrote: Nathan Rixham nrix...@gmail.com wrote in message news:496d03d3.2060...@gmail.com... Frank Stanovcak wrote: Shawn McKenzie nos...@mckenzies.net wrote in message news:f8.ef.24097.e510d...@pb1.pair.com... Frank Stanovcak wrote: I'm trying to make sure that my sessions

Re: [PHP] Basic Authentication

2009-01-14 Thread Shawn McKenzie
://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Javascript header

2009-01-15 Thread Shawn McKenzie
! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Looking for an app...

2009-01-15 Thread Shawn McKenzie
. Depending upon the features you need you can easily write your own. HTML form with an input type=file PHP file to acept and move the file PHP file to view files in certain directory http://us3.php.net/manual/en/features.file-upload.post-method.php -- Thanks! -Shawn http://www.spidean.com -- PHP

Re: [PHP] how to display new icon for news posted within 2 days?

2009-01-15 Thread Shawn McKenzie
. So unless the post date is 172800 or earlier it will eval to true. How about: SELECT *, UNIX_TIMESTAMP(post_date) as ts FROM tbl if($post-ts (time()-172800)) { echo 'img src=new.gif'; } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] how to display new icon for news posted within 2 days?

2009-01-15 Thread Shawn McKenzie
Shawn McKenzie wrote: paragasu wrote: is it possible to do it like SELECT *, UNIX_TIMESTAMP(post_date)-172,800 as is_new FROM tbl $post = mysqli_fetch_object($sql); if($post-is_new) echo 'img src=new.gif'; From what I can tell, you'll just have a timestamp 2 days earlier than the actual

Re: [PHP] To check for existing user in database

2009-01-16 Thread Shawn McKenzie
mysql_num_rows(). -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
. HTH, // Todd Wow, that's alot! This should work with or without quotes and assumes no spaces in the URL: $prefix = http://example.com/;; $html = preg_replace(|(href=['\]?)(?!$prefix)([^'\\s]+)(\s)?|, $1$prefix$2$3, $html); -- Thanks! -Shawn http://www.spidean.com -- PHP General

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Shawn McKenzie wrote: Boyd, Todd M. wrote: -Original Message- From: farn...@googlemail.com [mailto:farn...@googlemail.com] On Behalf Of Edmund Hertle Sent: Thursday, January 15, 2009 4:13 PM To: PHP - General Subject: [PHP] Parsing HTML href-Attribute Hey, I want to parse a href

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Friday, January 16, 2009 1:08 PM To: php-general@lists.php.net Subject: Re: [PHP] Parsing HTML href-Attribute Shawn McKenzie wrote: Boyd, Todd M. wrote: -Original Message

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
(|(href=['\]?)(?!http(?:s)?://)[/]?([^'\\s]+)(\s)?|, $1http://www.example.com/2$3;, $html); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: function_exists question

2009-01-16 Thread Shawn McKenzie
you use the second parameter? You'll get a whole number returned on v3 so why would you want a fractional returned on other versions? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
with spaces, like my web page.html. When I get a minute I'll fix it. I thought spaces in URLs weren't valid markup, but it seems to validate. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Website crawler auto image downloader

2009-01-16 Thread Shawn McKenzie
of images, regex or dom - fopen and read it - fput and save it, if it exists add an incremental number - save url and local dir/filename in db -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need List Advice

2009-01-19 Thread Shawn McKenzie
. ;-) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] maybe we could all?

2009-01-20 Thread Shawn McKenzie
what + a name, cos if we need to start prefixing.. and it can't be 4LC as can't start with a number :p The world's object? this will be massively interesting.. Given Common Objects and Datatypes, has anyone proposed COD Pieces? -- Thanks! -Shawn http://www.spidean.com -- PHP

[PHP] Re: ANNOUNCEMENT: ModBox - Open Platform as a Service

2009-01-20 Thread Shawn McKenzie
. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installation problems on Vista

2009-01-20 Thread Shawn McKenzie
#AddType application/x-httpd-php .php #PHPIniDir c:/php5 remove the #'s Yes, and then... make sure php and your php.ini are actually in c:\php5, and then... make sure to restart apache. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Installation problems on Vista

2009-01-20 Thread Shawn McKenzie
#AddType application/x-httpd-php .php #PHPIniDir c:/php5remove the #'s -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php What is the error message from the windows event viewer? Most likely it can't find a file. -- Thanks! -Shawn

Re: [PHP] Re: Installation problems on Vista

2009-01-20 Thread Shawn McKenzie
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php What is the error message from the windows event viewer? Most likely it can't find a file. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] how to simplify my code - I will have tooo many lines -please help

2009-01-21 Thread Shawn McKenzie
} } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to simplify my code - I will have tooo many lines -pleasehelp

2009-01-21 Thread Shawn McKenzie
Shawn McKenzie wrote: Wow! Yes, there are a lot of ways to do it. This is a quick stab (not tested): $Today = date('m/d/y'); if ( $selectedProdCode == agreem $errorArray['agr1expdate'] $Today) { $selectedProdCode= //agreement cost + late fee } else { $selectedProdCode

Re: [PHP] distinguish between null variable and unset variable

2009-01-22 Thread Shawn McKenzie
, but maybe it is flawed: if (isset($var) is_null($var)) { echo $var is set and is null; } Or maybe a function to return is the $var === null: function eq_null($var) { return (isset($var) is_null($var)) ? true : false; } -- Thanks! -Shawn http://www.spidean.com -- PHP General

Re: [PHP] distinguish between null variable and unset variable

2009-01-22 Thread Shawn McKenzie
Shawn McKenzie wrote: Daniel Brown wrote: On Wed, Jan 21, 2009 at 20:27, Jack Bates ms...@freezone.co.uk wrote: How can I tell the difference between a variable whose value is null and a variable which is not set? Unfortunately, in PHP - like other languages - you can't. A variable

Re: [PHP] distinguish between null variable and unset variable

2009-01-22 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Jan 22, 2009 at 15:11, Shawn McKenzie nos...@mckenzies.net wrote: Or something like this (dunno, just brainstorming): function setornull($var) { if (!isset($var)) { return false; } elseif (is_null($var

Re: [PHP] distinguish between null variable and unset variable

2009-01-22 Thread Shawn McKenzie
for both explicitly-set NULL variables and undefined variables alike. That's why I was testing isset() fist, however as you pointed out, that is crap also. :-( -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Multiple queries in PHP

2009-01-25 Thread Shawn McKenzie
extension. mysqli_multi_query() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: tee function in PHP

2009-01-26 Thread Shawn McKenzie
$output = ob_get_contents(); file_put_contents('/path/to/file.html', $output); But there's not that much difference between that and this (unless you don't want to modify all of the echos): $output = 'Your HTML'; echo $output; file_put_contents('/path/to/file.html', $output); -- Thanks! -Shawn http

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
file that does that. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Tom wrote: Shawn McKenzie wrote in message news:a0.87.62571.3d92e...@pb1.pair.com... Tom wrote: My Hosting site said that I needed to include the PHP otherwise the form won't work. I need to know where to include my email info to get this set up don't I? What do you suggest? T Daniel

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Tom wrote: Shawn McKenzie wrote in message news:a0.87.62571.3d92e...@pb1.pair.com... Tom wrote: My Hosting site said that I needed to include the PHP otherwise the form won't work. I need to know where to include my email info to get this set up don't I? What do you suggest? T Daniel

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Shawn McKenzie wrote: Tom Scott wrote: - Original Message - From: Shawn McKenzie nos...@mckenzies.net Newsgroups: php.general To: php-general@lists.php.net Sent: Monday, January 26, 2009 3:52 PM Subject: Re: [PHP] Coding for email response forms Tom wrote: Shawn McKenzie

Re: [PHP] Coding for email response forms

2009-01-27 Thread Shawn McKenzie
Tom wrote: Edmund Hertle edmund.her...@student.kit.edu wrote in message news:f7ed91b20901261644y125f71aer3e0b70735c949...@mail.gmail.com... 2009/1/26 Tom obeli...@comcast.net Shawn McKenzie sh...@mckenzies.net wrote in message news:497e3ab9.2060...@mckenzies.net... Shawn McKenzie wrote

[PHP] Re: Need Help resolving the undefined variable and getting property of non-object errors

2009-01-27 Thread Shawn McKenzie
Enhanced Listing Submitted by . $row-Name .\n; *This is the trying to get property of non object* -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: unlink file rights problem

2009-01-28 Thread Shawn McKenzie
. Thank you for any help! Best regards, Merlin Why not run the cron as root, or ftpuser? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding for email response forms

2009-01-28 Thread Shawn McKenzie
a contact.php file and put the email specific PHP in it and then modify your form to have method=post action=contact.php. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Shawn McKenzie
); $query = SELECT * FROM workorders WHERE AdminID = ' . $admins['AdminID'] . '; $result = mysql_query($query); $workorders = mysql_fetch_assoc($result); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Shawn McKenzie
Shawn McKenzie wrote: Terion Miller wrote: Well I'm stuck I have the AdminID but now I can't seem to use it to pull workorders with that AdminID . I couldn't get your block to work Andrew :( I think I'm just not using it right now that I have it...lol On Wed, Jan 28, 2009 at 2:26 PM

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Shawn McKenzie
Terion Miller wrote: On Wed, Jan 28, 2009 at 3:43 PM, Shawn McKenzie nos...@mckenzies.netwrote: Shawn McKenzie wrote: Terion Miller wrote: Well I'm stuck I have the AdminID but now I can't seem to use it to pull workorders with that AdminID . I couldn't get your block to work Andrew :( I

Re: [PHP] New to PHP question

2009-01-28 Thread Shawn McKenzie
in IE. Then when it looked better in IE and better in ff/linux, it had some issues iin ff/windows. I love tables and will use them for most layouts until they are removed from (x)html :-) -Shawn -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Shawn McKenzie
Because your queries are hosed. You want to populate $row with what? If you want all the fields in workorders, then this works great: SELECT * FROM workorders WHERE AdminID = 7 -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-28 Thread Shawn McKenzie
($_SESSION['user']) . '); -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >