Re: [PHP] I dont see whats wrong!

2001-09-03 Thread Andy Woolley
You could also perhaps try this. $message = " $alias $name $email $site $cam $quote "; Might not work in all cases though but it's certainly easier to read. It all very much depends on personal preference. Andy. - Original Message - From: "John Monfort" <

[PHP] PHP Stress Testing.

2001-09-04 Thread Andy Woolley
try and prove how good PHP really is. Andy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Stress Testing.

2001-09-04 Thread Andy Woolley
ow that the above is probably more to do with the web server but I want to prove a point that PHP is not the "fly by night" software that some people are saying it is. I know it's good, but, I need to show just how good it can be. I then want to publish the results for all to see. Still

Re: [PHP] mySQL wont connect

2001-09-05 Thread Andy Woolley
Kyle, If you are absolutely sure that your username and password is correct...You are sure arn't you ? Try changing "P500.MSHOME.NET" to either "localhost" or "127.0.0.1" Most likely the MySQL admin dude has set it so that you can only connect to

[PHP] POST superglobal is empty

2004-08-03 Thread Andy Loftus
--enable-force-cgi-redirect \ --disable-path-info-check \ --enable-safe-mode \ --disable-short-tags \ --with-regex=system \ --with-mysql \ --enable-debug \ --with-mcrypt \ --enable-versioning \ --disable-libxml -- Andy --

[PHP] Request for Help/Information

2004-08-04 Thread Andy Baldwin
ename=" . $filename); Any help would be appreciated! Andy Baldwin Software Developer Questa Software Systems, Inc. mailto://[EMAIL PROTECTED]

[PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
include_path='.:/var/www') in Unknown on line 0 --- I tried combing through the PHP manual but there's no troubleshooting section and the FAQ doesn't address this issue. :( - Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Andy do a small page with only this in it and see if it will load. phpinfo(); ?> That churned out a rather long page with all sorts of information... so now I'm assuming that PHP is parsing correctly, but I have some sort of configuration error? What that would be, I'm unsure...

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
Can we see some of the code throwing the error? PHP is working correctly if you got the page above (a handy thing to keep around BTW). I assumed it was a configuration error because the error occured on line 0. But in any case, here's some lowdown. main.php - the file everyone will be seeing, and

[PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
Thanks to this newsgroup I finally overcame one of my biggest errors in PHP. But it still doesn't work completely. :) --- Fatal error: Call to undefined function: pg_connect() in /var/www/include/db.php on line 30 --- Undefined function? Isn't it a standard command? - Andy Moore -- P

Re: [PHP] Newb PHP Question

2004-08-13 Thread Andy Moore
httpd got access to all the files? Ah! I fixed it now. Ok, this problem is solved, thanks all :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yet another Newb Question - error

2004-08-13 Thread Andy Moore
point it to a directory or something? I don't know where library files are stored... - Andy Moore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for internet connection.

2009-12-20 Thread Andy Shellam
> > I think the only way to detect if it can connect to the Internet is to > see if you can grab a file from somewhere on the Internet. I'd hazard a > guess that when operating systems are able to tell you they can "connect > to the Internet" they are actually saying they can ping a predetermined

Re: [PHP] Checking for internet connection.

2009-12-20 Thread Andy Shellam
> By attempting to connect you will implicitly query DNS (which itself > is a connection to server). No it's not - it's putting out a packet targeted at an IP address and hoping a server will answer - hence why multi-cast works for DNS because you're not directly connecting to a specified ser

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
> > Both at home and at work there are caching DNS on the LAN. So a DNS > request may come back with a valid IP address when the WAN connection is > down. I still won't be able to connect to the remote site. Dig an external server - e.g. dig @a.root-servers.net google.co.uk If your net is down t

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
> > I'm confused... what's the problem with just trying to hit the update server? > If you can then you check for updates, if not then you, erm, don't. Simples, > no? True, I think I said this same thing in a previous post - I suggested the DNS option if all the OP wanted to do was check if a

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
> > And I was pointing out that this would not be a valid test when there is > a caching DNS on the LAN. I also pointed out how to avoid caching issues - the comment was aimed at the author of the message before mine. > > Too much of the conversation and most of the attribution was stripped >

[PHP] Re: [PHP-DB] RE: Help for a beginner

2009-12-23 Thread Andy Shellam
You didn't mention in your post if you had or not and I'm not familiar enough with MySQL on Windows to know if the essentials package includes it. The error you're getting from ASP means it doesn't recognise the driver "mySQL" or is looking for an ODBC connection

Re: [PHP] sending email with php

2009-12-23 Thread Andy Shellam
d also realise that a lot of mail clients don't render images/stylesheets by default - therefore straight after the tag before the rest of the content, put a link to an external website where recipients can view the content online. Regards, Andy -- PHP General Mailing List (http://ww

Re: [PHP] idea? add set_trace_handler() to PHP

2009-12-25 Thread Andy Shellam
Hi, Have you taken a look at Xdebug - http://xdebug.org/ ? From the manual: "Xdebug allows you to log all function calls, including parameters and return values to a file in different formats." Would this do what you need - then your second script could process this file? Regards, A

Re: [PHP] Intermittent etwork connection errors with apache. Restarting apache temporarily fixes the problem. PHP or apache problem?

2010-01-04 Thread Andy Shellam
before in the ESTABLISHED state, PHP isn't disconnecting. If any connections are listed as TIME_WAIT, it means the connection was dropped without the client disconnecting properly - it may be worth running netstat on your LDAP server as well. Regards, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Andy Shellam
rfectly reliable as a relay on Windows - just install it and SMTP to localhost - nothing more, nothing less. Andy

[PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
I'm trying to parse a string containing an HTML table using the builtin DOM classes and running into an odd problem. Here's what I'm doing: $dom = new DOMDocument(); $dom->loadHTML($str); $tables = $dom->getElementsByTagName("table"); $rows = $tables->item(0)->getElementsByTagName('tr'); foreach($

Re: [PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
5 PM, Rene Veerman wrote: > hmm lame bug... but you can add a classname to the s and check for that?.. > > On Thu, Mar 11, 2010 at 9:34 PM, Andy Theuninck wrote: >> I'm trying to parse a string containing an HTML table using the >> builtin DOM classes and running into an odd

Re: [PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
sportTH'. >> } >> >> the only problem i foresee is s in your reports already having a >> class="something" set, which could mess it up. you'd need to check >> that. but in that case you can always pump the original $str to the >> DOM, and us

[PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
Hey everyone, I'm really not sure what's going on here: basically, the bitwise NOT operator seems to simply not work. Here's an example of what I see. Script $ cat bintest2.php = Output $ php bintest2.php Bin: 1

Re: [PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
20 August 2010 17:41, Peter Lind wrote: >> On 20 August 2010 17:10, Andy McKenzie wrote: >>> Hey everyone, >>> >>>  I'm really not sure what's going on here:  basically, the bitwise >>> NOT operator seems to simply not work.  Here's an exa

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling wrote: > On 20 August 2010 17:00, Andy McKenzie wrote: >>  Thanks to everyone who responded.  I've dealt with binary math >> before, but it never occurred to me (and doesn't seem to be anywhere >> in the document

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike wrote: >> -Original Message- >> From: Andy McKenzie [mailto:amckenz...@gmail.com] >> Sent: 24 August 2010 17:24 >> To: php-general@lists.php.net >> Subject: Re: [PHP] Bitwise NOT operator? > > >> From y

Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie wrote: > 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: >> Even if I'd thought about it in terms of the architecture, I >> would have assumed that PHP would treat a two-bit number as a two-bit

Re: [PHP] HTTPS SSL

2010-09-02 Thread Andy McKenzie
Jordan, Bostjan hit the main points, but if you're trying to run a secure server, you probably ought to know more about it than you do now. It's pretty easy to arrange a secure connection that isn't actually secure if you don't know what you're doing. I'd recommend a good Apache book -- I have

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
> > A question, to clarify my fuzzy thinking about such things: > > Can a business have a server connected to the Internet but limit access to > just their employees? I don't mean a password protected scheme, but rather > the server being totally closed to the outside world other than to their > in

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
On Sun, Sep 12, 2010 at 1:51 PM, tedd wrote: > At 1:18 PM -0400 9/12/10, Andy McKenzie wrote: >> >>  > >>> >>>  A question, to clarify my fuzzy thinking about such things: >>> >>>  Can a business have a server connected to the Internet but

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse wrote: > On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown wrote: >>    It would be cheaper to employ the same method used on some >> lawnmowers and required on Jet Skis and Skidoos: a cable with a clip >> worn by the rider.  The rider falls off, the cable

[PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
Hey folks, I have the feeling this is a stupid question, but I can't even find anything about it. Maybe I'm just not searching for the right things. Here's the problem. I'm writing a lot of pages, and I hate going in and out of PHP. At the same time, I want my HTML to be legible. When you

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples wrote: > On Mon, 2010-09-20 at 14:56 -0400, Andy McKenzie wrote: >> Hey folks, >> >>   I have the feeling this is a stupid question, but I can't even find >> anything about it.  Maybe I'm just not searching for

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote: > On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: >> >> On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: >> >> > Hey folks, >> > >> >  I have the feeling this is a stupid question, but

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind wrote: > On 20 September 2010 21:56, Andy McKenzie wrote: >> On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote: >>> On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: >>>> >>>> On Sep 20, 2010, at 2:5

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
Here's a related question maybe one of you can answer: is there any place in HTML (not PHP, but actually in HTML) where there's a difference between a single quote and a double quote? As nearly as I can tell, it shouldn't ever matter. If that's the case, using double-quotes to enclose an echo ge

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Andy McKenzie
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger wrote: > On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: > > >> Hey folks, >> >>  Here's the problem.  I'm writing a lot of pages, and I hate going in >> and out of PHP.  At the same time, I want my

[PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
Hey folks, Here's the deal. I have the following code: if($col_vals[$i][$val['column']] == $search_result[0][$col]) { echo ' selected="selected"'; } elseif($val['default'] == $col_vals[$i][$val['column']]) { echo ' selected="selected"'; } It's supposed to check whether t

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
[$i][$val['column']]) && (!isset($search_result[0][$col]))) Now the elseif only triggers if there is a default, but there is no value in the DB for that field. Hope my failure to think saves someone else some trouble later! -Alex On Fri, Sep 24, 2010 at 1:56 PM, chris h w

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote: > On 10-10-06 08:52 AM, Peter Lind wrote: >> >> Where exactly do you get the part about double quotes from? Can't seem >> to locate it in the any of the relevant specs (xhtml or xml). Also, >> never seen an xml or xhtml validator choke on sing

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind wrote: > On 6 October 2010 15:21, Andy McKenzie wrote: >> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote: >>> On 10-10-06 08:52 AM, Peter Lind wrote: >>>> >>>> Where exactly do you get the part about dou

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
favoring the value of the knowledge here, but it's been a close thing a few times in the last week. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard wrote: > [snip] > really makes me question remaining a member...it's been a close thing a > few times in the last week. > [/snip] > > $door = new door("large", "heavy", "swift"); > $door->open(); > $door->hitArse(); > $door->close(); > > C'mon, the ru

[PHP] Why might fclose() block?

2012-05-03 Thread Andy Theuninck
I'm currently seeing this in 5.3.10, although it's an intermittent problem I've seen earlier versions too. Occasionally I get a "maximum execution time" error when calling fclose() on a parallel port file descriptor. Code looks like this: $fp = fopen('/dev/lp0','w'); if ($fp){ fwrite($fp,$LongS

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Andy McKenzie
y exist, then taper off for a while, then come back. I'd bet when the next major version of PHP is released we'll see an upswing in traffic for a while as people try to figure it out. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
, and I've now scrapped the entire project and rebuilt it. Why? Because I did just about everything wrong. It just plain wasn't practical to try to fix it. I'd never learned the basics, I just threw myself at a big project to see what would happen. Good luck! -Andy McKenzie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random 404 screens

2013-02-09 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner wrote: > This is a tough one. > > Lately, my web pages are giving me some problems. Once a day or so one or > more of my pages/scripts will give me a 404 error page saying my web page > has timed out. Problem is that the page was just displayed. I clic

Re: [PHP] Random 404 screens

2013-02-10 Thread Andy McKenzie
> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > This is a good point, and one I hadn't thought of. I saw "Network time out" and thought network problems, but Geoff is right. If it's actually a 404

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Andy McKenzie
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown wrote: > Remember to hit reply-all, Andy, so it goes to the list as well as > the previous author. > > On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie wrote: >> On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown wrote: >>> O

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Andy McKenzie
... I'm unemployed right now, and a project to work on this week (or next... this week is kind of busy) might be a good thing. -Andy McKenzie On Mon, Apr 1, 2013 at 6:49 PM, Mark wrote: > On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea > wrote: > > Hi Mark, > > I think a sim

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Andy McKenzie
thing much more complex then that there's going to be some value in using foreign keys, whether formally (constraints set in the DB) or informally (constraints imposed in the web interface), but it's quite possible the guy had never worked on something where they were needed. -Andy . On Thu

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
was supposed to, so we fixed it" kind of way. If you were taking advantage of that bug, you get knocked down, but the vast majority of software will keep running. Java doesn't seem to work that way, at least from an IT worker's perspective. Andy McKenzie On Tue, Aug 20, 2013 at

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
of opening a file on a new OS, only to find that the default editor there has wiped out my formatting. With PHP, that's not a big deal: as long as I put my braces in the right places, everything will continue to work. With Python -- or any whitespace delimited language -- it's fatal, and I have to hope I can exit without saving anything. Andy

Re: [PHP] Command line PHP

2011-01-07 Thread Andy McKenzie
On Fri, Jan 7, 2011 at 11:55 AM, la...@garfieldtech.com wrote: > Hi folks.  I have a project coming up that will involve writing a > non-trivial command line PHP application.  Most of it will be nice and > abstracted and standalone and all of that jazz, but it will need to do > command line intera

[PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
Hey folks, Hopefully this is enough on-topic not to annoy anyone. Up until now I've mostly written small one-off scripts -- a web page that needs a few things dynamically generated, a shell script to do a small job, things like that -- and vim has been more than adequate. I'm currently worki

Re: [PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine wrote: > Andy McKenzie wrote: >> >> So:  does anyone have a recommendation for an IDE that works in >> Windows, Mac, and Linux?  I spend roughly equal time in all three, and >> I haven't found a tool I like yet that w

Re: [PHP] How to write code: how wrong am I?

2011-02-22 Thread Andy McKenzie
On Tue, Feb 22, 2011 at 6:29 AM, Dotan Cohen wrote: > I wrote a short page on how to actually type of code that one writes, > it can be found here: > http://dotancohen.com/howto/write_code.html > > The point that I stress on the page is that first you close an > element, then you fill it's content

[PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-14 Thread Andy McKenzie
Greetings, I'm moving some scripts from an older server (SuSE who-knows-what, running PHP 5.2.5) to a newer one (Ubuntu 10.10, running PHP 5.3.2). For the most part there haven't been any problems, or they've been things that I was able to fix easily. This one's got me stumped. I have the fol

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson wrote: >> >> This one's got me stumped.  I >> have the following line in a script: >> >> $this->bc = ($this->network | (~$this->netmask)) & 4294967295; >> >> $this->network and $this->netmask should both be of type long, and I >> should wind up wit

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Tue, Mar 15, 2011 at 8:07 AM, Andy McKenzie wrote: > On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson > wrote: >>> >>> This one's got me stumped.  I >>> have the following line in a script: >>> >>> $this->bc = ($this->network

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
> Now:  I did a little more looking around this morning, and it looks > like I may well run into problems here given that I'm moving from a > 32-bit architecture to a 64-bit architecture.  Bitwise math is still > fairly obscure to me, so it's likely that I'm overlooking something > obvious, but may

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
this case. (If you're confused by the numbers I used, check here: http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html) I hope that helps! -Andy On Mon, Mar 21, 2011 at 1:58 PM, Al wrote: > I understand dir perms pretty well; but, have a question I can't readi

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andy McKenzie
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey wrote: > If I only had 1 book on php, what would it be? > > -- > end > > Very Truly yours, >                 - Kirk Bailey, >                   Largo Florida > My most common reference is, as other people have said, www.php.net. But when I reach for a

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Andy McKenzie
On Fri, Jun 24, 2011 at 1:30 PM, wrote: > Chrome. Enough said. Now, if we can only convince the rest of the world ... > Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago and went back to Opera, so it doesn't bother me when Firefox does something weird lik

Re: [PHP] book quest

2011-09-28 Thread Andy McKenzie
#x27;t quite supplanted it as a concept book, but is my go-to for "here's a way to solve this particular problem using a new version of PHP" book. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] book quest

2011-09-29 Thread Andy McKenzie
Put simply, I like to learn the basics from books rather than web pages. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Broken connection

2005-04-02 Thread Andy Pieters
s about in this context proved unsuccessfull I thank you for your time and bid you good day With kind regards Andy Pieters Straight-A-Software A young idealistic programmer -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I released under the GP

Re: [PHP] MySQL empty row

2005-04-04 Thread Andy Pieters
charcters after the > are gone. With kind regards Andy Pieters Straight-A-Software On Monday 04 April 2005 16:57, Neo Theone wrote: > Until some time I could make a new empty line in mysql with this query: > INSERT INTO `".$_SESSION['type']."`() VALUES () > where

Re: [PHP] MySQL empty row

2005-04-04 Thread Andy Pieters
On Monday 04 April 2005 18:45, Andy Pieters wrote: > After the ?> must be NO character, not even a CR or LF > Best way to check this is to put your cursor right next to the > and press > the left key.  If you r cursor moves then press left followed by del.  Keep > pressing the

Re: [PHP] dynamic image will not print properly

2005-04-05 Thread Andy Pieters
To test, cstl.php?dk=somethinghere and try to print that? Maybe your browser is configured to NOT print images (or bakckground) ? Maybe your printer is textonly (just kidding) Tada Andy On Tuesday 05 April 2005 23:26, DuSTiN KRySaK wrote: > Hi there - I had my first crack at creatin

Re: [PHP] PHP 4.3/MySQL phpinfo()

2005-04-05 Thread Andy Pieters
the rpms, you're better of compiling each yourself (exluding Linux). For example, the precompiled rpms from Fedora (read Red Hat) do not include GD on php. Required items: An internet connection A good deal of time Much more patience Much commitment. Some reading glasses Andy -- Register

Re: [PHP] To session or not to session

2005-04-05 Thread Andy Pieters
actors are applied AFTER login verification. (The login is verified with a cookie that holds a unique id I sent when the user loged on. This is validated against a database. The unique id's live span is extended after each request) Thank you for your input already Andy -- Registered

[PHP] Anybody getting these also?

2005-04-05 Thread Andy Pieters
-- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting ActiveWire Inc! This is an automated response. Due to the enormous amount of SPAM (200+) emails per day, we have blocked this email add

Re: [PHP] if question

2005-04-06 Thread Andy Pieters
break; case 6: somestuff; break; etc default: somestuff; break; } You can find answers to these and many other questions on www.php.net Look at the documentation section Andy -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I

Re: [PHP] To session or not to session [SOLVED]

2005-04-06 Thread Andy Pieters
Thank you all for your input. Andy -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ -- -- PHP General Mailing List (http://www.php.net

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Andy Pieters
start of the file. Andy On Wednesday 06 April 2005 12:07, Robert S wrote: > I am running a Woody server. I'd like to run php scripts from the command > line, but I note that the php/php4 executable is not in my PATH. > > I have php4, version 4.1.2-7.0.1 installed. > > Is

Re: [PHP] Extern Executions (Perl)

2005-04-08 Thread Andy Pieters
HI Suggestion 1: configure apache to parse files with php extension thru php binary Suggestion 2: place a shebang on the start of the php file like #! /usr/bin/php Suggestion 3: rewrite your script and have the php script call the perl ;-) Tada Andy On Friday 08 April 2005 07

Re: [PHP] Installation Warning?

2005-04-08 Thread Andy Pieters
Here is that faq url http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 Cheers Andy -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http

Re: [PHP] Storing password in cookie

2005-04-08 Thread Andy Pieters
expired? No -> User still loged in No Cookie Do Login This way, you automatically log out users that are logging in on another computer. Kind regards Andy -- Registered Linux User Number 379093 -- Feel free to check out these few php utilities that I released und

Re: [PHP] Installation Warning?

2005-04-09 Thread Andy Pieters
throughout > the business day. > Off course I know of tons and tons of sites out there that have Linux + Apache2 + MySql + Php > 4 And the're running just fine, day after day after day. It is a calculated risk we made and haven't regreted it since. Andy -- Registered Linux User

Re: [PHP] sessions not being stored : DAY 2

2005-04-10 Thread Andy Pieters
your harddisk wiped out by an intruder. You're asking for it. Try running 'last' and see if your system hasn't been compromised already Andy -- Registered Linux User Number 379093 -- ---BEGIN GEEK CODE BLOCK- Version: 3.12 GAT/O/CM d- s:+ a- C UL P+ L+++ E--- W+++

[PHP] Bulletproof POST remove

2005-04-11 Thread Andy Pieters
he back button, there is a white page that sais "Your session has expired". It should be noticed that I do not use sessions. It should be like POST-once, after that there should be no more remnants of it. With kind regards Andy -- Registered Linux User Number 379093 --

Re: [PHP] Installation problem of PhP5.0.4 on Fedora 2

2005-04-12 Thread Andy Pieters
one Will point you in the right direction. Andy -- Registered Linux User Number 379093 -- ---BEGIN GEEK CODE BLOCK- Version: 3.12 GAT/O/CM d- s:+ a- C UL P+ L+++ E--- W+++ N++ o+ K w--- O+++ M- V PS+ PE++ Y+ PGP+++ t+ 5-- X R !tv b DI+++ D++ G e-- h+ r--- y+ -- ---END GEEK CODE BLOCK-

Re: [PHP] Mysql insert problems

2005-04-15 Thread Andy Pieters
escape_string($_POST['Phonenumber']); etc There are some issues when magic quotes are turned on but you can implement a hack that corrects any consuequences of that (stripslashes) Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/&g

Re: [PHP] php and linux shell script

2005-04-15 Thread Andy Pieters
t($mydialog); Off course the limitations are second to none! I have released some PHP CLI scripts under the terms of GPL2 and they all use the same basic simple engine for argument processing. It may not suit your needs, but you're welcome to study it to get you started. With kind regards

[PHP] Abstract Legacy question

2005-04-20 Thread Andy Pieters
Y, it will in its turn call function X (which is not overloaded in class B) and function X calls the function GUID from which class? Class A or Class B? Kind regards Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:

Re: [PHP] Re: Abstract Legacy question [SOLVED]

2005-04-20 Thread Andy Pieters
On Wednesday 20 April 2005 23:36, Matthew Weier O'Phinney wrote: > > Since Class B overrides method guid, function x will call the method > from Class B. Thank you. Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>

Re: [PHP] converting word document to plain text file

2005-04-20 Thread Andy Pieters
ort back here and ask us to analyze your code for pointers on how to make it more secure. Good luck! Andy ps: Google is your friend! http://www.google.com/search?num=100&q=%22read+pdf%22+%2Bphp&btnG=Search Also search on PEAR http://pear.php.net -- Registered Linux User Number 379093

Re: [PHP] formatting logic

2005-04-21 Thread Andy Pieters
Hi First, execute your query unset($fail); $res=mysql_query($sql,$dbhandle) or $fail=true; if( (isset($fail)) || (!(is_resource($res)) ) echo "There was a problem with the execution of the query"; if(mysql_num_rows($res)==0) echo "The query resulted in ZERO records"; #now that's out of the way

Re: [PHP] PEAR Packages

2005-04-21 Thread Andy Pieters
On Thursday 21 April 2005 17:04, [EMAIL PROTECTED] wrote: > Hmm... another project to add to my list of > projects that I'll never finish. haha Glad to know I'm not the only one. ;-) Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version:

Re: [PHP] Between Query (0T)

2005-05-08 Thread Andy Pieters
elect between which ages he wants > the records shown... > eg: if he types 23,25 then I should get all results where > age >=23 and age <=25 > SELECT * FROM `table` WHERE `age` BETWEEN 25 AND 26; You might want to sanitize your input first. Like using intval() on

Re: [PHP] I'm having a blond moment with a while loop???

2005-05-08 Thread Andy Pieters
be table" so we can see how your table looks like. Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-

Re: [PHP] Reducing size of htm output

2005-05-08 Thread Andy Pieters
his scheme, the browser can cache the different bits of the script, and you don't need to send all of the script on each page hit. Kind regards Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++)

Re: [PHP] Re: Bug, erreurs ou non =?iso-8859-1?q?document=E9?=

2005-05-08 Thread Andy Pieters
On Wednesday 04 May 2005 22:47, Amir Mohammad Saied wrote: Bonjour Amir C'est liste est en Anglais. Cependant, la réponse: Il est necessaire de 'eschapper' le character '\' Au lieux d'ecrire '\', il faut ecrire '\\' Donc si le chemin est \\srvdfs00\partages\0-50\M7\05_APValidation\Forfa

Re: [PHP] select statement

2005-05-08 Thread Andy Pieters
y. * in mysql commands, it is better to explicitally specify the resource link identifier you obtained when you opened the connection ($link=mysql_connect(...)) * if you include a critical script, better use 'require' because it will cause php to stop parsing the page if it cannot find

Re: [PHP] Sending htm as it's being generated

2005-05-08 Thread Andy Pieters
XXX " . $i++ . ""; ob_flush();   sleep(1); } ?> Kind regards Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-)@ W+++&

Re: [PHP] text with $

2005-05-09 Thread Andy Pieters
es. $myvar='this is $$$ test'; Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++ L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(

<    1   2   3   4   5   6   7   8   >