[PHP] batteling with mod_fcgi in virtualmin virtual host

2010-05-26 Thread Gregory Machin
Hi I'm running php-cgi (PHP 5.3.2) and mod_fcgid (2.3.4-2.fc12) in SuExec Apache (2.2.13). I'm experiencing the following Typical errors [Wed May 26 03:59:57 2010] [warn] [client 60.234.169.177] mod_fcgid: stderr: PHP Deprecated: Function eregi_replace() is deprecated in /home/linuxpro/public_h

[PHP] php compile / configure options

2010-03-19 Thread Gregory Machin
Hi I'm setting up a development environment that runs multiple versions of php. I'm looking a list of the compile option options for each php release other than "./configure --help" with more detail on what each option does. Any suggestions welcome . Thank you. -- PHP General Mailing List (http:

[PHP] Re: Installing PEAR on machines without internet access.

2008-06-21 Thread Gregory Beaver
Lester Caine wrote: > I've been going through the hoops documenting installation and recovery > notes for my customer sites. The majority of these run local web > services with no internet access from the servers, so with the > increasing reliance on PEAR extensions, I'm looking to the correct way

[PHP] Re: http://go-pear.org?

2007-10-04 Thread Gregory Beaver
Steve Brown wrote: > I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't > seem to be resolving. Pear manual states I should: > > curl http://go-pear.org/ | php > > but this fails and > > dig go-pear.org > > reveals that the name does not resolve. Is there a package somewehre >

[PHP] Re: Questions about overloading and visibility in PHP5

2007-09-18 Thread Gregory Beaver
Steve Brown wrote: > I've been doing a bunch of reading about objects and overloading in > PHP5, but I've got a couple of questions that I can't seem to find the > answer to online. Suppose the following code in PHP5.2.4: > > class foo { > public $x; > private $z = 'z'; > >

[PHP] zlib.inflate vs. gzopen/fread

2007-09-08 Thread Gregory Beaver
Hi all, I've run into a peculiar situation where the inflate implementation in the zlib.inflate filter fails to successfully inflate a gzipped file created using gzopen/gzwrite. The file is really quite simple. To replicate, download http://pear.php.net/get/PEAR-1.6.1.tgz and run this script:

[PHP] Re: Database includes

2007-08-26 Thread Gregory Beaver
Bruce Cowin wrote: > I'm curious as to how everyone organises and includes their classes in > PHP5. Let's take a simple example that has 3 classes: customer, order, > and database. The database class has a base sql db class (I know there > is PDO and other things but this class is already written

Re: [PHP] php 5 and ms sql server express won't play nice !

2007-08-17 Thread Gregory Machin
t a lot of time > working with SQL Server and ASP in a previous life, so I'd like to > think that I have half a clue when it comes to connecting to it. :-) > > Hope this helps. > > Kirk > > On 8/16/07, Gregory Machin <[EMAIL PROTECTED]> wrote: > > Hi > >

[PHP] Re: pecl in php5?

2007-08-16 Thread Gregory Beaver
Per Jessen wrote: > I'm trying to install the pecl mailparse extension, but I'm not getting > very far: > > pecl install mailparse > pecl/mailparse requires PHP extension "mbstring" > No valid packages found > install failed > > "mbstring" does not seem to be a php extension, and in any case I b

[PHP] php 5 and ms sql server express won't play nice !

2007-08-16 Thread Gregory Machin
ns enabled, both are installed on the same machine (xp pro)... this it the error I keep getting Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: SQLEXPRESS in C:\wamp\www\test\test.php on line 8 Couldn't connect to SQL Server on SQLEXPRESS Many Thanks in adva

[PHP] cant get if logic correct..

2007-08-15 Thread Gregory Machin
$stnr>"") and ($subj>"") and ($mark>"")){ //do alot of something lol } } -- Gregory Machin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: possible to "move_uploaded_file" to a variable instead a file?

2007-06-17 Thread Gregory Beaver
Mark wrote: > hey, > > i`m wondering if it`s possible to move a uploaded file inside a variable. > i would like to know this because i`m currently writing a database backup > script and in there the user uploads a sql file that gets executed. now i > _don`t_ want the file to be stored on the serve

Re: [PHP] [ANNOUNCE] TODO parser

2007-04-28 Thread Gregory Beaver
Edward Vermillion wrote: > > On Apr 27, 2007, at 8:24 PM, Daevid Vincent wrote: > >> For a long time I've wanted a tool that would traverse my source code to >> find all those little forgotten "TODO" entries. >> > > [snip] > > Doesn't phpDocumentor (http://phpdocu.sourceforge.net/) do that alre

[PHP] Opening file

2007-04-26 Thread ed gregory
Hi list, I have been trying to make "printer friendly version" feature for a web site and have encountered a problem. Each page of the web site is composed of a header.php, footer.php and the content of the page which uses "include_once" to include the above mentioned pages. I have tried all know

Re: [PHP] retrieve POST body?

2007-04-19 Thread Gregory Beaver
Myron Turner wrote: > That's not been my experience. I've tested it with > enctype="multipart/form-data", since that's what you asked for, though > the enctype wasn't included in my sample code. I've run it on PHP > Version => 5.1.6 (Fedora core 4) and PHP 4.3.11 Fedora core 2. > Here it is on Fe

Re: [PHP] retrieve POST body?

2007-04-19 Thread Gregory Beaver
Justin Frim wrote: > Sorry burst your bubble, but your solution isn't a viable one in my case. > php://input only works if the form is submitted using > application/x-www-form-urlencoded. > > Take your sample HTML code there and add enctype="multipart/form-data" > to the tag, and I'm pretty sure

[PHP] Re: is pecl.php.net down?

2007-03-24 Thread Gregory Beaver
martin wrote: > Since about 7 hours now i can't get on the pecl.php.net pages. The site > doesn't seem to be available. > > Does somebody know why? Hi Martin, The entire machine that runs pear.php.net and pecl.php.net was down for a very long time. It has recently come back up online, you shou

[PHP] Re: _Construct question

2007-03-20 Thread Gregory Beaver
John Comerford wrote: > Hi Folks, > > I am still pretty new to PHP and I have a question regarding classes and > using _construct. Up until now I have been creating my classes as follows: > > class test1 { > var $name; > function test1($pName) { > $this->name = $pName; > } > } > > So I when I

[PHP] Re: working with class inheritance

2007-03-20 Thread Gregory Beaver
Jeff Taylor wrote: > Hey all, got a slight problem, where for some reasons my variables dont seem > to be getting stored in the child class: > > e.g > > class Parent > { > $private type; > > public function __construct() > { > } > >public function GetType() >{ > return $th

[PHP] advise on data encryption security.

2007-03-05 Thread Gregory Machin
Hi Can anyone point me in the direction of some good docs / howto's on building php apps that have fully encrypted databases etc .. Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: FW: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Gregory Beaver
Beauford wrote: > I pasted this right from my PHP file, so it is correct. Just to elaborate. I > have tested this until my eyes are bleeding. > > Sometimes this works sometimes it doesn't. > > One minute !!!##$$ This is a test &&%% will work the way it is supposed to, > the next minute it does no

[PHP] Re: LOL, preg_match still not working.

2007-02-17 Thread Gregory Beaver
Beauford wrote: > Hi, > > I previously had some issues with preg_match and many of you tried to help, > but the same problem still exists. Here it is again, if anyone can explain > to me how to get this to work it would be great - otherwise I'll just remove > it as I just spent way to much time o

[PHP] Re: PHP/PEAR

2007-02-14 Thread Gregory Beaver
Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these extensions (HTML_Table) which is > pr

[PHP] Re: Find midpoint between two points

2007-02-07 Thread Gregory Beaver
M5 wrote: > I found a nice javascript function that takes two points of latitude and > longitude and returns a midpoint. I'm now trying to rewrite in PHP, but > having some problems. Here's the original javascript function, taken > from http://www.movable-type.co.uk/scripts/LatLong.html : > > LatL

[PHP] Re: How to parse PHP tags in a string?

2007-02-07 Thread Gregory Beaver
Zak Mc Kracken wrote: > Hi all, > > Is there a PHP function that parses a string as it was the content of a > PHP file? > > I have a CMS application and editors write the news items text into a > text area. Since they have some knowledge of PHP, I'd like to allow them > to insert or and have th

[PHP] Re: REST, SOAP or XML-RPC?

2007-02-04 Thread Gregory Beaver
Paul Scott wrote: > I am developing a webservice like module for our framework that will > enable downloads of module code into the framework modules from a remote > server. > > Basically what this should do is: > > 1. User requests a list of available stable modules from server > 2. User clicks

[PHP] Re: __construct __destruct in PHP 4

2007-01-29 Thread Gregory Beaver
Peter Lauri wrote: > Hi, > > > > I have been trying going thru the PHP manual to find if there are any > equivalent to the __contruct and __destruct in PHP 4, but I cannot find any > solution for this part. I know it was introduced in PHP 5, but as __sleep > and __wakeup exist in PHP 4 already

[PHP] Re: What search algorithm does in_array() use?

2007-01-29 Thread Gregory Beaver
Ken Dozier wrote: > Does in_array() use a search algorithm (i.e., binary search), or does it > check sequentially each element in the array? > > I am using in_array() within a while{} loop to check query results against > an access-list array to produce a third array containing items that > succes

[PHP] connect.c+php

2007-01-26 Thread ed gregory
Can anyone give me an example on using connect.c with php? Thank you. Ed -- http://www.freenet.am/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Package php code

2007-01-24 Thread Gregory Beaver
Peter Lauri wrote: > Hi, > > > > Is there any similar way to package PHP software as Java with a jar file or > similar? I have never seen it, because then would probably Smarty for > example be packaged already :-) This question came out of the blue when I > was thinking about how to deliver so

[PHP] Re: using return in include files

2007-01-22 Thread Gregory Beaver
Aaron Axelsen wrote: > I'm trying to figure out what the desired behavior is of using the > return function to bail out of an include page. > > I did some testing, and this is what I concluded. > > First, I created the following file: > > if (defined('TEST_LOADED')) { > return; > } > de

[PHP] Re: most powerful php editor

2007-01-20 Thread Gregory Beaver
Vinicius C Silva wrote: > hi everyone! > > i'd like to ask something maybe commonly asked here. what is the most > powerful php editor? I am Yours, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Gregory Beaver
Robert Cummings wrote: > On Thu, 2007-01-04 at 10:54 +, Roman Neuhauser wrote: > >> echo $blah . "\n" is *not* equivalent to printf("%s\n", $blah) >> > > H, could you explain to me how it is different? I would always use > the former unless I specifically needed formatting provided

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Gregory Beaver
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: >> David CHANIAL wrote: >>> We are preparing the upgrade of PHP for our customers, but, after some >>> tests, >>> we have a migration "problem" caused by the news E_RECOVERABLE_ERROR. >>> >>> So, even if the upgrade guide (

[PHP] Re: PEAR installation error

2007-01-02 Thread Gregory Beaver
Hi Alistair, There was a snafu in the PHP release process, PHP 5.2.0 shipped with an outdated go-pear.phar for some reason, you can fix this by downloading http://pear.php.net/go-pear.phar and saving it as PEAR/go-pear.phar in the unzipped windows distribution. Then, when you run go-pear.bat it w

Re: [PHP] Comment management

2006-10-23 Thread Leif Gregory
Hello tedd, Monday, October 23, 2006, 1:53:41 PM, you wrote: > Well... I was afraid that someone would say that (paint me into a > corner). I just wanted to check before launching my own home-grown > solution and then having everyone say "Why didn't you use > so-and-so's 'comment manager' "? Sorr

[PHP] looking for the developer of webcbq

2006-10-17 Thread Gregory Machin
hildren.php* on line *51* *Notice*: Undefined variable: modificarRegla in * /var/www/html/webcbq/children.php* on line *63* *Notice*: Undefined variable: cambiarNombre in * /var/www/html/webcbq/children.php* on line *72* Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za

Re: [PHP] Send process to background

2006-10-13 Thread Leif Gregory
Hello André, Friday, October 13, 2006, 10:42:58 AM, you wrote: > Evidently, this will take a while. My first requirement was that it > should _NOT_ deppend on external libraries (ie. pecl, modules and > such). It has to be self-sustained. As such, it will take a bit > longer to execute. Not knowi

Re: [PHP] Displaying MySQL results on runtime

2006-09-27 Thread Leif Gregory
Hello Mário, Wednesday, September 27, 2006, 10:25:31 AM, you wrote: > Is there a way to display the MySQL actions at runtime, i. e., > display the MySQL commands while they are being executed ? Echo the sql statements... -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread Gregory Machin
Problem found ... IE doesn't understand comments '//' in style sheets .. so the line I had commented out refering to the background image in the style sheet was over riding my code later in the page.. On 3/29/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Gregory Machin

Re: [PHP] test security of code

2006-03-08 Thread Gregory Machin
Thanks looks good will read on further . On 3/9/06, Chris <[EMAIL PROTECTED]> wrote: > > Gregory Machin wrote: > > Hi > > Is there an application that can pass source code and report potential > > security problem and or the live site ? > > Many thanks

[PHP] test security of code

2006-03-07 Thread Gregory Machin
Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and

Re: [PHP] Mailto members..?

2006-03-06 Thread Leif Gregory
Hello John, Wednesday, March 1, 2006, 11:38:15 AM, you wrote: > Outside of being a major spam flag, and possibly reaching the limits > of your smtp server. Agreed... Sending mass mail via BCC is going to be nothing but headaches. I've been down that road a number of times. --

Re: [PHP] need a php multiple/mysql choice quiz

2006-02-20 Thread Leif Gregory
Hello Ross, Monday, February 20, 2006, 8:49:55 AM, you wrote: > I am looking for a php/mysql multiple choice quiz. One that saves > the answers to a database. A basic example I can expand on is all > that is required. http://www.hotscripts.com/PHP/Scripts_and_Programs/Tests_and_Quizzes/index.html

Re: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Gregory Machin
Thanks for you input. I will lookinto alt the sugetions. Many thanks/. Have a grate day . On 1/30/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Gregory Machin wrote: > > Hi > > I'm looking for a good example of writing multidimensional arrays, and > > read

[PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Gregory Machin
Hi I'm looking for a good example of writing multidimensional arrays, and reading them back . Thanks for you time . -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin)

[PHP] php and consol interface

2006-01-29 Thread Gregory Machin
time -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096

[PHP] hiding the index.php page.

2006-01-23 Thread Gregory Machin
Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-12 Thread Gregory Machin
Grant wrote: > > Gregory, > > > > David Grant wrote: > > > >>Gregory Machin wrote: > >> > >>>I have a table with a timestamp column and would like to use his to > >>>calculate the age of the record . how would i go about this... > >&g

Re[2]: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Leif Gregory
Hello Miles, Wednesday, December 7, 2005, 8:56:23 AM, you wrote: > Why these clumsy interfaces? > Just plug the Firewire in your ear! So that's where it's supposed to go!?!?!? I've been doing it wrong all this time, not to mention it made sitting so very uncomfortable. --

Re: [PHP] understanding session vars ?

2005-11-24 Thread Gregory Machin
My test code is for test.php which is intended to call it's self, and starts with sesstion_start(). buy does not disply x after link2 is clicked on, but only y.. what am I missing ? Thanks On 11/24/05, David Grant <[EMAIL PROTECTED]> wrote: > > Gregory, > > Values in th

Re: [PHP] understanding session vars ?

2005-11-24 Thread Gregory Machin
ROTECTED]> wrote: > > Gregory, > > Are you always setting $_SESSION['menu'] to the contents of > $_GET['menu']? If so, the second link will set $_SESSION['menu'] to > null. You need to check the contents of $_GET['menu'] first before > set

Re: [PHP] cms type session - how to ?

2005-11-23 Thread Gregory Machin
ote: > > On Tue, November 22, 2005 3:24 am, Gregory Machin wrote: > > I'm looking for a how to , on creating sessions similar to those used > > my > > cms's > > that ref only a single page.. > > http://php.net/session_start > > ??? > >

Re[2]: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Leif Gregory
Hello Leonard, Tuesday, November 15, 2005, 8:39:19 PM, you wrote: > Here are how they look > W1W > W1AW > WA1W > AD4HZ > N9URK > WB6NOA > 4N1UBG Let's do it this way... What are the rules for a valid callsign? i.e. - If it's only three characters, it must start with a letter. - All callsigns mus

Re: [PHP] Type of form element

2005-10-28 Thread Leif Gregory
Hello Shaun, Friday, October 28, 2005, 9:00:05 AM, you wrote: > Is it possible to loop through all $_POST values to see if it is a > checkbox? If so then for that element if it is equal to 'on' then > change it to 1 otherwise change it to 0? Yes and no. 1. You can't determine by the POST variabl

Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-22 Thread Leif Gregory
Hello Richard, Saturday, October 22, 2005, 6:37:14 PM, you wrote: > Otherwise, it's compiled into the DLL and you are stuck. > A Windoze "shortcut" WILL NOT WORK One of the easiest ways to ensure you're using the php.ini file you want is to create the following registry key: HKEY_LOCAL_MACHINE\

Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Leif Gregory
Hello Bruno, Wednesday, October 19, 2005, 10:08:24 AM, you wrote: > Look the main page and try to read any message... I dont know what > can i do to fix it... nl2br() (see php manual) -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B __ Ge

Re: [PHP] Any good free easy converting tool?

2005-10-13 Thread Leif Gregory
Hello Gustav, Wednesday, October 12, 2005, 12:55:11 PM, you wrote: > Someone know of any good free tool for converting from Access to > Mysql. I just need to import certain tables into an already > existance database. DBTools (freeware) http://www.dbtools.com.br/ I use it quite a bit. --

Re: [PHP] regular expression for time

2005-08-29 Thread Leif Gregory
Hello babu, Monday, August 29, 2005, 6:50:32 AM, you wrote: > how can i write regular expression for time in 24-hour format i:e, > HH:MM:SS. using preg_match. --TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B __ Geocaching:

[PHP] I fixed the logic :-) --- Recursive Array on outputing correctly

2005-08-16 Thread Gregory Machin
names; echo "{$namez}\n"; } else { $namez = $value->names; echo "{$namez}"; display_menu($value->arrChildren); echo ''; } // end of else } // end

Re: [PHP] Trying to figure out contents stored in db field

2005-08-14 Thread Gregory Machin
thanks will try it .. On 8/14/05, Scott Noyes <[EMAIL PROTECTED]> wrote: > Unserialize it, and then use var_dump() to see what the object contains: > var_dump(unserialize($location_data)); > > On 8/14/05, Gregory Machin <[EMAIL PROTECTED]> wrote: > > Hi > > T

[PHP] Trying to figure out contents stored in db field

2005-08-14 Thread Gregory Machin
} i fugure there is an object stored in this serialized array. how do i figure out the properties of the object, I cant find the file that holds classe that it uese .. Any ideas ? Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalabl

Re: [PHP] need to convert field names into array for form submission

2005-08-12 Thread Leif Gregory
Hello Bruce, Friday, August 12, 2005, 1:39:54 PM, you wrote: > I believe this can be done with an array. > any assistance is greatly appreciated! I've been working on a validation function for quite a while now that does what you're asking. I keep adding to it as I run across stuff I didn't need

[PHP] Creaing a foldout menu from an array.

2005-08-07 Thread Gregory Machin
is attached to.. My problem is I cant figure out the correct loop / logic to put the tags in the rite places etc.. Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin

Re: [PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
Let the flaw wares begin .. sorry guys who have limited bandwith and limited email boxes .. Bla Bla BLA.. On 8/5/05, John Nichel <[EMAIL PROTECTED]> wrote: > Gregory Machin wrote: > > For anyone who would like a clear answer to the question i politely > > asked, here is a g

Re: [PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
For anyone who would like a clear answer to the question i politely asked, here is a good artical .. http://www.sitepoint.com/article/highlight-source-code-php Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info

[PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
HI Please advise. I'm using exponent cms and I creating a technical site, I want to display code examples , how do I do this and with syntax highlighting, -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry

[PHP] logging in using ssl

2005-07-29 Thread Gregory Machin
Hi Please advise . I have a site that needs to move over to ssl only when the user login authenticates the log in .. How would i go about this, the cms is exponent writen in php.. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable

[PHP] php array and java fold out menu

2005-07-29 Thread Gregory Machin
Hi . Please could you advise. I'm insearch of a java fold out menu that looks good, and can acept an array containg the links and link names etc from a php array ... i havent worked in java script yet so please help :-)... Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROT

[PHP] php mysql field update not looping properly ..

2005-07-29 Thread Gregory Machin
3 = "UPDATE ".$table." SET " . $column . " = 'hello' WHERE ".$index." = '". $index_Array[$i]."';"; echo "query 3 " .$query3.""; //$result3 = mysql_query($query3) or die( mysql_error

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 3:34:30 PM, you wrote: M> Yeah I do understand this. That is primarily what I was trying to M> find a workaround for. It doesn't seem like CSS will save me on M> this one. I can't seem to get table borders to look identical in M> ff/ie using CSS they render diff

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 2:47:51 PM, you wrote: M> Ok all - I've been playing with this print styl sheet thing. I can M> get the media="print" to behave correctly, but I cannot get table M> background colors set. I want to print the table bg colors and M> background images. I was hoping

Re: [PHP] What Works Works Validator

2005-06-02 Thread Leif Gregory
Hello Richard, Wednesday, June 1, 2005, 3:16:50 PM, you wrote: R> Does anybody know of a "What Works Works Validator" which checks R> for maxiumum browser compatibility rather than the W3C standard? E. Got it listed on my XHTML test page at: http://www.devtek.org/test (In the resources secti

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

2005-05-31 Thread Leif Gregory
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 that file in a b

Re: [PHP] php forum and (almost certainly 0T) client editor

2005-05-31 Thread Leif Gregory
Hello Ryan, Tuesday, May 31, 2005, 7:59:10 AM, you wrote: R> Can anybody recommend a real bare bones forum that i can modify or R> a tutorial for creating a forum or URLs/Classes etc to help me R> create a simple forum? ??? That's a hard question to answer. You could make it real bare bones and j

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-20 Thread Leif Gregory
Hello Graham, Friday, May 20, 2005, 12:46:28 PM, you wrote: G> Can the server variable 'user agent' be modified/spoofed by the G> user? Oh yeah Firefox and Opera are easy to change. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.5 Return RC9 under Windows XP 5.1 Build

Re: [PHP] Bar codes

2005-05-20 Thread Leif Gregory
Hello Emil, Friday, May 20, 2005, 4:45:49 AM, you wrote: E> I've never done anything like this before, do you know of any good E> starting points? I don't know anything about bar codes. http://www.phpclasses.org and search for barcode -- Leif (TB lists moderator and fellow end user). Using Th

Re: [PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Leif Gregory
Hello Ryan, Thursday, May 19, 2005, 10:57:55 AM, you wrote: R> Any suggestions on how to do this? Normal upload form with PHP and R> increase timeout on server? or some P2P method? I dont think they R> know much about FTP or i would have given them a directory on the R> server to upload to. Have

Re: [PHP] using require

2005-05-14 Thread Leif Gregory
the session variable you only force an auth for people who already haven't authenticated. If you're not familiar with sessions, the key thing to remember is you need to do a session_start(); somewhere in the page prior to reading or writing session variables. Cheers, Leif Gregory -

Re: [PHP] Re-initiating an autostarted session

2005-05-11 Thread Leif Gregory
Hello Ville, Wednesday, May 11, 2005, 12:32:07 PM, you wrote: V> session_destroy(); V> session_regenerate_id(); V> session_write_close(); V> Header("Location: ..."); V> exit; I honestly don't know if it's the right way, but I ran into a similar issue a while back. I did it this way: session_des

Re: [PHP] number format?

2005-05-10 Thread Leif Gregory
Hello Dustin, Tuesday, May 10, 2005, 9:34:10 AM, you wrote: D> I have a number like -56.98 D> I need to convert it to -5698. I tried Add50 = " . $add50; $sub50 = $newNum -50; echo "Sub50 = " . $sub50; ?> If you still need to do math on it, just remember you don't have a decimal anymore. See ex

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Leif Gregory
Hello balwant, Tuesday, May 10, 2005, 5:59:15 AM, you wrote: b> is there any method to know whether the other webserver is running b> or not. http://us2.php.net/fsockopen You'll be doing what's termed an HTTP Ping. You make a socket connection to the other server, perform a GET request on a page

Re: [PHP] Accessible HTML - OT

2005-05-10 Thread Leif Gregory
helpful examples (maybe I didn't look hard enough). Recently I decided to write a tutorial on Web Accessibility and XHTML 1.0 Strict so that I could learn them. If you're interested, it's at: http://www.devtek.org/test Cheers, Leif Gregory -- TB Lists Moderator (and fellow reg

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Chris, Tuesday, April 19, 2005, 1:23:53 PM, you wrote: C> Firstly, what DB are you using? MySQL. C> SELECT C> course.name, C> location.name, C> instructor.name C> FROM C> course C> INNER JOIN location ON location.id = course.locationID C> INNER JOIN instructor ON instructor.id = co

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Richard, Tuesday, April 19, 2005, 9:12:14 PM, you wrote: R> Just build a JOIN query and do one query. Doing a join on four tables is ok? (serious question, not being facetious). R> No, it is *NOT* sorting on the ID number. I can definitely say it is sorting on locationID, categoryID, or i

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Kim, Tuesday, April 19, 2005, 6:44:58 PM, you wrote: K> If you are still looking for "tips" and want to get K> complicated/fancy, I have seen columns used called sort_order more K> than a few times. This should not be too hard to maintain for K> things like a few buildings, etc., where the l

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Leif Gregory
#x27;; echo ''; ******** Basically what happens is that the lookup builder creates an array like this: Array ( [1] => Array (

[PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Leif Gregory
in the Course table for Location. At any rate, just looking for some ideas. Thanks. Tagline of the day: Small town sign: "Speed Limit 15 MPH: Our kids can't run any faster." -- Leif Gregory Development Supervisor Licensing, Regulation and Small Projects Section Applic

Re: [PHP] Anybody getting these also?

2005-04-07 Thread Leif Gregory
Hello Kim, Thursday, April 7, 2005, 3:22:19 AM, you wrote: K> Nevertheless the _f*ker_ who are using this should be thrown OFF K> the list! It must be possible to see, who was added to the list K> just before the first activewireinc mail came... I hate those challenge/response systems. We get the

[PHP] OT - Re: [PHP] Anybody getting these also?

2005-04-06 Thread Leif Gregory
Hello John, Wednesday, April 6, 2005, 10:29:48 AM, you wrote: J> First requirement is to still have in your possession, a computer from J> the Atari/Commodore/Timex days. Root on your mail server helps too. Heheh... I've still got (and most still working): Commodore 64 Commodore 128 Atari 2600

Re: [PHP] Set session variable if link is clicked, do not want to use GET

2005-04-04 Thread Leif Gregory
in the GET request and then match it on the following page. If they don't match then you know they bookmarked it or fudged the GET request. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site <h

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Leif Gregory
you're still on the same page. This opens you up a bit more to scope creep, but making a relatively small change in the beginning is a whole lot better than nearly starting over at the end. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ

Re: [PHP] Retrieve URL of website

2005-04-01 Thread Leif Gregory
n on your own site, use $_SERVER['PHP_SELF'] Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site <http://www.PCWize.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread Leif Gregory
Hello Georg, Wednesday, March 30, 2005, 8:05:30 AM, you wrote: G> I wish to format the output of a database select. The result is G> presented in a table, in which i'd like to present everey secound G> row with a different background color. My idea was to test if the G> remaining number of rows wh

Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Leif Gregory
Hello marc, Wednesday, March 30, 2005, 8:31:48 AM, you wrote: m> I got a problem with mail function. I want to know if it's possible m> to send a email in php and to get back an acknowledgement of m> delivery. My problem is that i want to know if my emails are m> delivered successfully to recipien

Re: [PHP] include literal

2005-03-28 Thread Leif Gregory
Hello Jeremy, Monday, March 28, 2005, 1:36:10 PM, you wrote: J> -- J> I would like the output of Document B to be: J> J> instead of something here. J> -- highlight_file('Document A'); -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.9.9 Return

Re: [PHP] PHP CODE TO DISPLAY ISP

2005-03-28 Thread Leif Gregory
Hello jenny, Monday, March 28, 2005, 9:36:07 AM, you wrote: j> i am making a website in php and i will appreciate if anybody can j> tell me the php code to : j> - (1)display isp name, One problem you're going to run into is that by using $_SERVER['REMOTE_ADDR'] oftentimes, you'll end up with just

Re: [PHP] redirection, same host, two domains

2005-03-25 Thread Leif Gregory
ode } http://www.devtek.org/snippets/index.php#domainRedirection The only difference in your case is you don't need the second check, and you'll just place your mysite.com HTML below the PHP. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / I

Re: [PHP] html image

2005-03-24 Thread Leif Gregory
Hello delos, Thursday, March 24, 2005, 11:48:50 AM, you wrote: d> i would like to produce a script that can make an image d> ("screenshot") based only on the site url. so that i enter an URL d> and php makes the picture. Hmmm. It can be done. See http://www.whois.sc/www.php.net But I'm just not

Re: [PHP] access violation

2005-03-23 Thread Leif Gregory
Hello Rob, Tuesday, March 22, 2005, 4:14:55 PM, you wrote: R> That's interesting - it also started happening for me after R> installing PHP 5.0.3. But I have reverted to 4.3.10 for now, and I R> can't see how installing 5.0.3 into an entirely separate directory R> can break my old php install. Hmm

  1   2   3   >