[PHP] easy CMS

2003-02-06 Thread Ilya Nemihin
Hi! sorry for my impudence :) But may be you will be interesting in not cool CMS :) - elementalSiteMaker I have made it in Object-Oriented style, i.e. more interesting are code-inside :) http://www.elemental-sm.by.ru Thanks Ilya ps: I had some troubles with generalization (may needed new

[PHP] Re: Redirecting to PHP

2003-02-06 Thread Simon
Alberto Brea wrote: Dear list, My home page is index.html, that doesn't run PHP. I also have index.php which shows the same content with PHP. Can I do to automatically redirect a visitor from index.html to index.php? TIA Alberto maybe you should just delete index.html, and index.php will be

[PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
I realize this should be about the simplest thing in the world to do, but for this reason or that it's not working... I'm using PHP version 4.2.3 Whether I have a negative number in an array, for example: $myArray[ID] = -2 Or the number comes from the database, for example: $row[id] = -2 I

Re: [PHP] testing for negative numbers

2003-02-06 Thread Rasmus Lerdorf
Please provide a complete test script. Are you perhaps not realizing that array indices along with all variables in PHP are case sensitive? $row[ID] and $row[id] are not the same thing. The trivial test of your example: $myArray[id] = -2; if ($myArray[id] 0) echo Negative;

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Hi Rasmus: Yes, I'm totally aware of case sensitivity...and basically the script you wrote here is exactly what I'm trying to doing. This is a problem I've been having with several scripts...always when the number is negative. I've also echoed my variables just to make sure they are in fact

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Well, I just tried your test script and that works just as it should, so I must be having some other issue. But that still doesn't explain why I can print out the results of $row[dir_id] and it shows it being -2, yet my script (as printed in the last email) never makes it to the correct

Re: [PHP] testing for negative numbers

2003-02-06 Thread Leif K-Brooks
Is it possible that the value is actually -2 (with the space)? Robert Samuel White wrote: Well, I just tried your test script and that works just as it should, so I must be having some other issue. But that still doesn't explain why I can print out the results of $row[dir_id] and it shows

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Okay, I'm an idiot. It *was* making it to the statement, but the row_id in the table matrix_structure_routes are actually positive numbers, so when it gets to that point I need to use the absolute value. The reason for using the negative and postive counterparts are to determine which type

[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg and with-freetype. I have installed both png and jpg from a tar file but know mater what I do PHP configure stops with and error. here is the error I keep getting. checking for GD support... yes checking for the location of

Re: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 17:47, [EMAIL PROTECTED] wrote: I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg and with-freetype. I have installed both png and jpg from a tar file but know mater what I do PHP configure stops with and error. here is the error I keep getting.

Re: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Kevin Waterson
This one time, at band camp, [EMAIL PROTECTED] wrote: configure: error: libjpeg.(a|so) not found. Install libjpeg Kevin -- __ (_ \ _) ) | / / _ ) / _ | / ___) / _ ) | | ( (/ /

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason, I know that is what it means and I do know where libjpeg.so and libjpeg.a are on the server. I also have pointed the configuration to where they are with this --with-jpeg-dir=/usr/local/bin but no mater what I do it still can not find them.and keeps giving me the error configure:

[PHP] restricting acces to files

2003-02-06 Thread Shams
Hi, i've written a secure PHP login script which will allow users to login to a directory such as this: smezone.com/members/index.php however, how do I restrict people from accessing HTML files in that directory (which they can easily do so by typing the URL into their browser), such as:

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Kevin, It is installed from a tar file Thursday, February 6, 2003, 2:12:15 AM, you wrote: KW This one time, at band camp, KW [EMAIL PROTECTED] wrote: configure: error: libjpeg.(a|so) not found. KW Install libjpeg KW Kevin KW -- KW __ KW (_ \

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Rasmus Lerdorf
I know that is what it means and I do know where libjpeg.so and libjpeg.a are on the server. I also have pointed the configuration to where they are with this --with-jpeg-dir=/usr/local/bin but no mater what I do it still can not find them.and keeps giving me the error configure: error:

Re: Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 18:15, [EMAIL PROTECTED] wrote: I know that is what it means and I do know where libjpeg.so and libjpeg.a are on the server. I also have pointed the configuration to where they are with this --with-jpeg-dir=/usr/local/bin but no mater what I do it still can not

Re: [PHP] restricting acces to files

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 18:09, Shams wrote: i've written a secure PHP login script which will allow users to login to a directory such as this: smezone.com/members/index.php however, how do I restrict people from accessing HTML files in that directory (which they can easily do so by

Re[4]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason, /usr/lib/libjpeg.so Thursday, February 6, 2003, 2:19:36 AM, you wrote: JW On Thursday 06 February 2003 18:15, [EMAIL PROTECTED] wrote: I know that is what it means and I do know where libjpeg.so and libjpeg.a are on the server. I also have pointed the configuration to where

Re: Re[4]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 18:37, [EMAIL PROTECTED] wrote: /usr/lib/libjpeg.so Then use: --with-jpeg-dir=/usr -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re[6]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
Hello Jason, That worked an got me through the configuration but now after doing a make I get this error. What do I do to fix this. /gd_jpeg.c -o ext/gd/libgd/gd_jpeg.lo /home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:34: jpeglib.h: No such file or directory

[PHP] Re-passing array varibles

2003-02-06 Thread PHP
I have a quite complex search form where I have multi select drop down menu..the form can be seen at http://www.bangladeshimatch.com/advance_search.php. I can pass the array variables from the form to another page to process the form without any problem, but when I try to pass the same array

Re: Re[6]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 19:15, [EMAIL PROTECTED] wrote: That worked an got me through the configuration but now after doing a make I get this error. What do I do to fix this. /gd_jpeg.c -o ext/gd/libgd/gd_jpeg.lo /home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:34: jpeglib.h: No such file or

[PHP] Decoding Base64

2003-02-06 Thread Vish Vishvanath
Hello all, I'm trying to convert some images held as base64-encoded text files back into images, using a form to paste the text into, but having no luck. I can't tell whether the decoding is failing or whether I'm unable to output the final image. I'm sending the correct headers through, that

Re: [PHP] Re-passing array varibles

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 19:26, PHP wrote: I have a quite complex search form where I have multi select drop down menu..the form can be seen at http://www.bangladeshimatch.com/advance_search.php. I can pass the array variables from the form to another page to process the form without any

[PHP] Call to undefined function: imagetypes()

2003-02-06 Thread Stefan Vogel
Dear Supportteam Im Runing a Apache Webserver under Debian sid (testing). I've installed PHP Version 4.1.2. Now I would like to create a Webalbum, but my Server doesn't know the funktion imagetypes. He gives me the Error-message: Call to undefined function: imagetypes(). I found the same Error

Re: [PHP] WYSIWYG Content Management system?

2003-02-06 Thread Sascha Braun
I am working on such a CMS right yet. I want to implement infinitly Language Support and an Wordpad like HTML Editor which allows you to chose basic design tem- plates and lets you upload some images. I want to build an extraordinary Usermanagement, where you can write parts of an Text while

[PHP] Client Side PHP

2003-02-06 Thread Pete
Has any one ever considered creating browser / client-side php to replace Javascript and vb?? One language across the whole web ;-) Posted this question in the evangelism so I'd be interested in more reaction: Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Scripting language in PHP?

2003-02-06 Thread Leif K-Brooks
Out of pure boredom, I'm considering writing a simple scripting language in PHP. Has anything like this been done before? Any open-source projects I should look at? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the

[PHP] Re: [PHP-DB] PHP Database Abstraction Layer

2003-02-06 Thread Maxim Maletsky
Luke Woollard [EMAIL PROTECTED] wrote... : I once read a great article in the first or second issue of http://www.phparch.com/ on database abstraction layers. At which point I used the tutorial as a starting point for creating a very similar structure I named dbWave. There are only minor

[PHP] Re: counter freezes whole site!

2003-02-06 Thread Pete
Pag wrote: Hi, I am having a serious problem on my site. It was working fine until a day ago, when it simply freezes. After i made a few checks i realized it loops on this code. I tried everything but i cant understand why and i am going crazy trying to figure it out! This code is

Re: [PHP] Client Side PHP

2003-02-06 Thread Maxim Maletsky
I am doing now ;) How would you guys like the idea, though? -- Maxim Maletsky [EMAIL PROTECTED] Pete [EMAIL PROTECTED] wrote... : Has any one ever considered creating browser / client-side php to replace Javascript and vb?? One language across the whole web ;-) Posted this

Re: [PHP] POP3 ... syntax error

2003-02-06 Thread Adam Voigt
I'm aware it's not a PHP problem, I was trying to be nice by helping figure out what the problem was in his raw communication. On Wed, 2003-02-05 at 15:24, Jason Wong wrote: On Wednesday 05 February 2003 23:32, Adam Voigt wrote: How about some code?

Re: [PHP] Client Side PHP

2003-02-06 Thread bbonkosk
One language across the whole web In a word: JAVA Has the cross-platform flexability of PHP with a little more versitility and power under the hood. Of course PHP still has its niche, but I'm still waiting to go to an ecommerce page that fires up and interactive store applet on the client

[PHP] session id

2003-02-06 Thread Edward Peloke
Ok, I am sure this has been discussed but I have not been keeping up with the listserv. I am using sessions so to test, I blocked all cookies and of course the sessionid is then in the url. How can I hide it from the url?...or is this even possible? Thanks, Eddie -- PHP General Mailing List

[PHP] Creating an Array from a Recordset

2003-02-06 Thread Vernon
I'm trying to create an array from a rocordset that will do somethingt like this: $datay=array(12,8,19,3,10,5,55,88,3); the following is the code I have attempted to create, which is not working: do { $dat = ($row_rsCOUNTRY['CountryCount'] , $row_rsCOUNTRY['CountryCount']); } while

RE: [PHP] session id

2003-02-06 Thread Rich Gray
-Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 13:56 To: Php-General@Lists. Php. Net Subject: [PHP] session id Ok, I am sure this has been discussed but I have not been keeping up with the listserv. I am using sessions so to test, I

[PHP] Config problems

2003-02-06 Thread Brian V Bonini
Been using PHP for some time but never have actually compiled my own, the version my provider compiled always sufficed, anyway, I I'm having some issues. config fails here: checking for GD support... yes checking for the location of libjpeg... yes checking for the location of libpng... yes

Re: [PHP] Client Side PHP

2003-02-06 Thread Mike Morton
That is a real nice thought - but Java is NOT platform independent - ever tried running your java applets on a Mac, or how about BSDI? Guess what - bad interpreter for Mac and expensive non-available one for BSDI. Java is no different than PHP except that it is a tough language to learn for the

[PHP] Question on PHP

2003-02-06 Thread karthikeyan.balasubramanian
Hi, I would like put this question directly to Rasmus creator of this wonderful server side scripting language. Is there a possibility with the future release of PHP to add extension in a easier manner. For every feature client wants there is a recompile involved. Wouldn't this be much

Re: [PHP] Client Side PHP

2003-02-06 Thread PHP
PHP codes gets executed at the server (server side), so I wonder how you can make it to work at the client side? But good thinking :) huzz - Original Message - From: Pete [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 12:55 PM Subject: [PHP] Client Side PHP

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 22:04, Vernon wrote: I'm trying to create an array from a rocordset that will do somethingt like this: $datay=array(12,8,19,3,10,5,55,88,3); the following is the code I have attempted to create, which is not working: do { $dat = ($row_rsCOUNTRY['CountryCount']

Re: [PHP] Client Side PHP

2003-02-06 Thread bbonkosk
Like a previous poster said, you would have to develop some type of plug-in to work with the browsers that would incorporate PHP on the client side. Or talk Microsoft into including it in Internet Exploder by default :-) This strategy depends on user experience studies..I know many people who

[PHP] Re: Question on PHP

2003-02-06 Thread Goetz Lohmann
Karthikeyan.Balasubramanian schrieb: Hi, I would like put this question directly to Rasmus creator of this wonderful server side scripting language. Is there a possibility with the future release of PHP to add extension in a easier manner. For every feature client wants there is a

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Vernon
That gives me something that looks like this: Array ( [0] = 34 [1] = 31 [2] = 16 [3] = 16 [4] = 6 [5] = 4 [6] = 4 [7] = 3 [8] = 2 [9] = 2 [10] = 2 [11] = 2 [12] = 2 [13] = 2 [14] = 2 [15] = 2 [16] = 1 [17] = 1 [18] = 1 [19] = 1 [20] = 1 [21] = 1 [22] = 1 [23] = 1 [24] = 1 [25] = 1 [26] = 1 [27] =

[PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user to press enter which is not what i intended to do. When i write Please press a key

Re: [PHP] Client Side PHP

2003-02-06 Thread Goetz Lohmann
Php schrieb: PHP codes gets executed at the server (server side), so I wonder how you can make it to work at the client side? But good thinking :) huzz Client Side PHP ? ... maybe you could ;-) ... you only have to install PHP on your box. PHP is too mighty and huge to implement in the

[PHP] Re: Scripting language in PHP?

2003-02-06 Thread l0t3k
Leif, i think Ariadne does this. IIRC they have a mini template language called PinP Leif K-Brooks [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Out of pure boredom, I'm considering writing a simple scripting language in PHP. Has anything like this been

Re: [PHP] empty and isset

2003-02-06 Thread Mike . Kent
Actually, I believe it's not a matter of the input being set, but the fact that isset() returns true on an empty variable. Jason Wong

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Marek Kilimajer
use implode(',',$datay) Vernon wrote: That gives me something that looks like this: Array ( [0] = 34 [1] = 31 [2] = 16 [3] = 16 [4] = 6 [5] = 4 [6] = 4 [7] = 3 [8] = 2 [9] = 2 [10] = 2 [11] = 2 [12] = 2 [13] = 2 [14] = 2 [15] = 2 [16] = 1 [17] = 1 [18] = 1 [19] = 1 [20] = 1 [21] = 1 [22] = 1

Re: [PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
Nope, it returns 1 character from the input buffer after the user presses enter sadly, i did try that already! =P - Adam Voigt [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] $f = fopen(php://stdin,r); $command = fread($f,1); fclose($f); Would that

[PHP] Forward mail via PHP

2003-02-06 Thread Robert Covell
Looking for a better solution to forward mail from an IMAP account via PHP to another account. Right now I am utilizing the built in imap functions (i.e. imap_fetchstructure, imap_fetchbody, imap_header among others) to get the individual parts and a MimeMessage class to rebuild the message.

[PHP] Searching MySQL 'text' field

2003-02-06 Thread Vernon
I've setup a search page using PHP which when searching a MySQL 'varchar' field it works just fine, but I'm trying to extend the search to include a field that is a 'text' field and it keeps coming back with no results. Is searching text fields allowed? It would seem that it only be logical that

Re: [PHP] read input in console mode

2003-02-06 Thread Marek Kilimajer
ncurses is the answer Mathieu Dumoulin wrote: Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user to press enter which is not what i

[PHP] Re: Config problems

2003-02-06 Thread Goetz Lohmann
Brian V Bonini schrieb: Been using PHP for some time but never have actually compiled my own, the version my provider compiled always sufficed, anyway, I I'm having some issues. NOTE: once compiled, this PHP package runs without the include files, cause they are included to the package. So you

[PHP] upgrade issues

2003-02-06 Thread Brian V Bonini
What's wrong with this snippet of code that would make it stop working after upgrading from 4.0.6 to 4.3.0 ?php if (!$id) { include pagetop.inc.php; } if ($id == 1) { $title = xxx; include pagetop.inc.php; ? pStuff/p ?php } ? './configure' '--with-apxs=/usr/local/www/bin/apxs'

[PHP] AYUDA..Actualizar txt

2003-02-06 Thread Rot Alvarez
Necesito saber como limpiar o actualizar txt . Resulta q he creado un chat en flash y php, pero almacena los user y los comentarios en txt, lo malo es que tengo q limpiarlos desde el server.q hago. _ Registra gratis tu cuenta email

[PHP] Date Difference Errors

2003-02-06 Thread Rob Quenzer
I have a function that I use to return the number of days between two dates. It worked fine on my Mandrake 7.0 server running PHP 4. I am trying to run it on a RedHat 8.0 box with the same version of PHP. On Mandrake, strtotime() and mktime() returned a negative number for dates prior to

Re: [PHP] AYUDA..Actualizar txt

2003-02-06 Thread Adam Voigt
Si estoy entendiendo correctamente, usted desea guardar el archivo cierta longitud quitando la entrada pasada cada vez que se agrega un nuevo. Si esto est+AOE correcto, usted debe hacer esto: (Esto est+AOE asumiendo sus comentarios es seperated por una rotura de la l+AO0-nea.) +ADw?php +ACQ-f

Re: [PHP] Re: Config problems

2003-02-06 Thread Brian V Bonini
On Thu, 2003-02-06 at 10:03, Goetz Lohmann wrote: Brian V Bonini schrieb: Been using PHP for some time but never have actually compiled my own, the version my provider compiled always sufficed, anyway, I I'm having some issues. NOTE: once compiled, this PHP package runs without the

Re: [PHP] Client Side PHP

2003-02-06 Thread Maxim Maletsky
Goetz Lohmann [EMAIL PROTECTED] wrote... : Php schrieb: PHP codes gets executed at the server (server side), so I wonder how you can make it to work at the client side? But good thinking :) huzz Client Side PHP ? ... maybe you could ;-) ... you only have to install PHP on

[PHP] Re: upgrade issues

2003-02-06 Thread Goetz Lohmann
Brian V Bonini schrieb: What's wrong with this snippet of code that would make it stop working after upgrading from 4.0.6 to 4.3.0 ?php if (!$id) { include pagetop.inc.php; } if ($id == 1) { $title = xxx; include pagetop.inc.php; ? pStuff/p ?php } ? look at

[PHP] Re: AYUDA..Actualizar txt

2003-02-06 Thread Goetz Lohmann
Rot Alvarez schrieb: Necesito saber como limpiar o actualizar txt . Resulta q he creado un chat en flash y php, pero almacena los user y los comentarios en txt, lo malo es que tengo q limpiarlos desde el server.q hago. _

[PHP] Stupid question, sorry...

2003-02-06 Thread Chris Boget
Why is it that \n gets translated to a _new line_ when in double quotes whereas it's displayed as the literal when in single quotes? I checked out the docs but couldn't come up with a definitive answer. If someone could point me to the right page in the docs that explains this, I'd be ever so

Re: [PHP] Re: Config problems

2003-02-06 Thread Goetz Lohmann
Brian V Bonini schrieb: On Thu, 2003-02-06 at 10:03, Goetz Lohmann wrote: Brian V Bonini schrieb: Been using PHP for some time but never have actually compiled my own, the version my provider compiled always sufficed, anyway, I I'm having some issues. NOTE: once compiled, this PHP package

[PHP] Re: Stupid question, sorry...

2003-02-06 Thread Mathieu Dumoulin
All single quotes around variables or escape characters are written out man! it's as simple as that. example you have a variable named $hey and you want to output $hey, you can't it's gonna replace the content of that string with the value of $hey. When you put stuff inside ' ' they are not

[PHP] Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Geckodeep
Hi there I have this problem wondering how to define the size of my images. I have this page that has 9 images coming from the database. These images are uploaded into a folder and the names are referenced in the DB. I pull the image through these tags ?php print img alt='$title' border=0 width=

Re: [PHP] Client Side PHP

2003-02-06 Thread Pete
Think thje user base will be quite big if we got it together. How many oho programmers are there who struggle with Javascript - me included ;-) Anyway the opensourcness of php would make the plugins more efficient for each browser. pete Maxim Maletsky wrote: Goetz Lohmann [EMAIL PROTECTED]

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 22:34, Vernon wrote: That gives me something that looks like this: Array ( [0] = 34 [1] = 31 [2] = 16 [3] = 16 [4] = 6 [5] = 4 [6] = 4 [7] = 3 [8] = 2 [9] = 2 [10] = 2 [11] = 2 [12] = 2 [13] = 2 [14] = 2 [15] = 2 [16] = 1 [17] = 1 [18] = 1 [19] = 1 [20] = 1 [21] =

[PHP] Re: Stupid question, sorry...

2003-02-06 Thread Goetz Lohmann
Chris Boget schrieb: Why is it that \n gets translated to a _new line_ when in double quotes whereas it's displayed as the literal when in single quotes? I checked out the docs but couldn't come up with a definitive answer. If someone could point me to the right page in the docs that

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread chip . wiegand
Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 09:38:48 PM: On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote: 1) Read the changelog/history/release notes of all versions of php between the 4.0.3 and up to 4.2.3 2) Check the php log (turn on full error reporting).

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
Geckodeep schrieb: Hi there I have this problem wondering how to define the size of my images. I have this page that has 9 images coming from the database. These images are uploaded into a folder and the names are referenced in the DB. I pull the image through these tags ?php print img

RE: [PHP] Powerpoint presentations?!?

2003-02-06 Thread Jerry Artman
Do a search for other applications that write PPT files. I have used a number of others in the past. Perhaps they are scriptable and run in your environment. Perhaps openOffice? Example: Apple's new presentation product. I does write PPT. Their products are normally very scriptable. Also OFFICEx

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Goetz Lohmann
Chip Wiegand schrieb: Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 09:38:48 PM: On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote: 1) Read the changelog/history/release notes of all versions of php between the 4.0.3 and up to 4.2.3 2) Check the php log (turn on full error

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
Goetz Lohmann schrieb: Geckodeep schrieb: Hi there I have this problem wondering how to define the size of my images. I have this page that has 9 images coming from the database. These images are uploaded into a folder and the names are referenced in the DB. I pull the image through these tags

[PHP] Adding mhash function without recompile?

2003-02-06 Thread MIKE YRABEDRA
I am currently using a php build by Marc Liyanage for Mac OS X and had a question. I need to use the mhash function, but it was not included in the build. Is there a way to add that extension to PHP without recompiling? I already have mhash installed and running, I just need php able to use

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Geckodeep
Thanks Goetz But how can I apply this having: Path to the folder is $folder='images/repor_images'; // path to the image. My 9image variables are $image1, $image2, $image3,. and the code to call the image ?php print img alt='$title' border=0 width= '103' heigth = '70'

Re: [PHP] empty and isset

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 22:50, [EMAIL PROTECTED] wrote: input of type text are set regardless of whether you have entered anything. Thus isset() returns true. Actually, I believe it's not a matter of the input being set, but the fact that isset() returns true on an empty variable.

Re: [PHP] Date Difference Errors

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 23:13, Rob Quenzer wrote: I have a function that I use to return the number of days between two dates. It worked fine on my Mandrake 7.0 server running PHP 4. I am trying to run it on a RedHat 8.0 box with the same version of PHP. On Mandrake, strtotime() and

Re: [PHP] empty and isset

2003-02-06 Thread John Nichel
It's fairly easy. isset returns true if the VARIABLE itself exists, like if it's been declared, or set by a form. isset isn't checking the VALUE of the VARIABLE, just if it exists. In Jason's example below, isset returns false because the VARIABLE was never declared in some way, shape or

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread chip . wiegand
Goetz Lohmann [EMAIL PROTECTED] wrote on 02/06/2003 08:09:19 AM: Chip Wiegand schrieb: Okay, so I have turned on all the error handling options in /usr/local/etc/php.ini-dist. I have purposely put an error in my phpinfo.php page, it errors out in the browser, but no error log is

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 23:56, [EMAIL PROTECTED] wrote: Okay, so I have turned on all the error handling options in /usr/local/etc/php.ini-dist. As someone has already pointed out, that file should be 'php.ini', not 'php.ini-dist'. I have purposely put an error in my phpinfo.php

[PHP] instantiating objects

2003-02-06 Thread Beau Hartshorne
I'm just starting to use PEAR, and have seen several ways of instantiating the PEAR objects: $form = new HTML_QuickForm(); $form = new HTML_QuickForm(); $dbh = DB:connect(dsn); $dbh = new DB(); $mail_object = Mail::factory('sendmail', $params); Can anyone explain (or point to dome docs that

[PHP] subscribe swalker@caspercollege.edu

2003-02-06 Thread Stewart Walker
subscribe [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: instantiating objects

2003-02-06 Thread Justin Garrett
http://www.php.net/manual/en/language.references.php http://www.php.net/manual/en/language.oop.php Examples 1 and 4 are equivalent Example 2 assigns a reference of the new object to $form Example 3 assigns the value from the DB class method connect() to $dbh (could be an object or some other

[PHP] Forking PHP

2003-02-06 Thread Adam Voigt
Anyone know a way to make PHP on windows fork itself into the background? Doesn't matter if it's a windows trick or whatever, aslong as it's possible so that it doens't appear in the start bar, thats fine. Preferably it would work under both Win98 and Win2000 but I'm not gonna be picky. Thanks

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
Geckodeep schrieb: Thanks Goetz But how can I apply this having: Path to the folder is $folder='images/repor_images'; // path to the image. My 9image variables are $image1, $image2, $image3,. and the code to call the image ?php print img alt='$title' border=0 width= '103'

Re: [PHP] empty and isset

2003-02-06 Thread Mike . Kent
Thanks for clearing that up. So input of type text does a set, which makes isset() true, but isset() does not return true if $var is merely empty.

Re: [PHP] Searching MySQL 'text' field

2003-02-06 Thread Hardik Doshi
Hi there, You have to use full text search capabilities of MySQL. Please take a look mysql documentation for full text search. thanks Hardik --- Vernon [EMAIL PROTECTED] wrote: I've setup a search page using PHP which when searching a MySQL 'varchar' field it works just fine, but I'm trying

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Geckodeep
Thanks goetz for your time, that's very kind of you to write the code. if i have any more questions i shall post it under new thread. Goetz Lohmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Geckodeep schrieb: Thanks Goetz But how can I apply this

[PHP] Including images with mail() or pear mail

2003-02-06 Thread Mark McCulligh
I have a little app that sends email, All images I link back to the site Example: img src=http://www.site.com/images/pic1.gif; I know that with the normal mail() and pear mail function you can attach the image with the email. My question is what is better. Linking the image back to the site is

[PHP] processing files

2003-02-06 Thread Edward Peloke
Is there a setting in the config file where I can tell php what extensions to process? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: best oop book

2003-02-06 Thread David Eisenhart
I got a lot out of Web Application Development with PHP4, by Tobias Ratshiller and Till Gerken, New Riders. Its not just about oop but covers this aspect well and is generally a very well written intermediate to advanced treatment of php. Also to keep ahead of the game this is an interesting

Re: [PHP] empty and isset

2003-02-06 Thread Jason Wong
On Friday 07 February 2003 01:35, [EMAIL PROTECTED] wrote: Thanks for clearing that up. Hmm, it seems like you still haven't grasped it yet :) So input of type text does a set, which makes isset() true, Correct. but isset() does not return true if $var is merely empty. Incorrect.

[PHP] Read file and get what i want

2003-02-06 Thread Miguel Brás
Hello gents, I made a script to open a file on a server and write his content to a temp file on my server. A part of the temp file is below: ***temp file** !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20030206181916 CONNECTED CLIENTS = 178 CONNECTED SERVERS = 12 !CLIENTS

Re: [PHP] empty and isset

2003-02-06 Thread Sunfire
you need to test for empty strings such as which variables have when you submit an empty form .. if(!empty(varname) !empty(varname2) !empty(varname 3)..){ //do whatever if they have something usefull in them //this block of code will be ran if var_dumb() on all the //vars tested is than

Re: Re: RE: [PHP] Variable Problem

2003-02-06 Thread Sunfire
no that doesnt work either what you get when you do that one in the edit box is: using: input type=text name=sent value=?php echo \$sent\;? or any different with echo in the value field gives me in the box: ?php \\;?} ...rest of the script outside the box - Original Message - From: Jason

Re: [PHP] Including images with mail() or pear mail

2003-02-06 Thread Johannes Schlueter
On Thursday 06 February 2003 19:12, Mark McCulligh wrote: I have a little app that sends email, All images I link back to the site Example: img src=http://www.site.com/images/pic1.gif; I know that with the normal mail() and pear mail function you can attach the image with the email. My

Fw: [PHP] Read file and get what i want

2003-02-06 Thread Kevin Stone
You basically have two options. 1) You can use readfile() to open the file into an array then $line = explode(':', $file) in a for loop to split the values from each line. search for 'readfile' and 'explode' on php.net 2) You can fopen() the file and use $data = fgetcsv($fp, 1000, ':') then your

Re: [PHP] processing files

2003-02-06 Thread Johannes Schlueter
On Thursday 06 February 2003 19:18, Edward Peloke wrote: Is there a setting in the config file where I can tell php what extensions to process? Not in the PHP configuration but in the Server configuration. For Apache add something like AddType application/x-httpd-php .xyz to your httpd.conf,

Re: [PHP] Including images with mail() or pear mail

2003-02-06 Thread Mark McCulligh
I don't like using images in emails too, but what the customer wants they get. Mark. Johannes Schlueter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 06 February 2003 19:12, Mark McCulligh wrote: I have a little app that sends email, All images I

  1   2   >