[PHP] Specific PHP/JSP questions

2001-02-15 Thread Gerald Gutierrez
Hi all. I understand that a lot of JSP Vs. PHP questions have been asked on this list, but they've been philosophical and general in nature. I have some specific questions and was hoping that someone might be able to entertain them: 1) JSPs can persist variables at the page, request, session

php-general Digest 15 Feb 2001 09:01:00 -0000 Issue 513

2001-02-15 Thread php-general-digest-help
php-general Digest 15 Feb 2001 09:01:00 - Issue 513 Topics (messages 39740 through 39857): Re: gettimeofday() question 39740 by: James Moore 39791 by: CC Zona Re: Structuring large PHP programs 39741 by: Ben Peter 39743 by: Michael McGlothlin 39751 b

Re: [PHP] Undocumented Socket functions?

2001-02-15 Thread Rick Hodger
"Daniel Grace" <[EMAIL PROTECTED]> wrote in message 96g30n$jgi$[EMAIL PROTECTED]">news:96g30n$jgi$[EMAIL PROTECTED]... > "Rog" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Can anyone here decipher for me some of the undocumented Socket functions > > in

Re: [PHP] Undocumented Socket functions?

2001-02-15 Thread Rog
Rick Hodger wrote: >I'm not honestly sure if it'd be possible. Normally you would have a daemon >running that listens for incoming connections and then spawns another >process for each connection. Then the daemon goes back to listening. As far >as I know, PHP doesn't have any sort of fork() or

[PHP] FW: CSETI Announcement - Urgent Disclosure Project Update

2001-02-15 Thread James Moore
Please read and forward. -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 21:39 To: Young, Stuart; Raf; Nicky Gosney; Nick; [EMAIL PROTECTED]; John Boddy; Iain; Green, Karen; Darren S; Andy; [EMAIL PROTECTED] Subject: FW: CSETI Announcement - Urgent Disclos

[PHP] Concatenate a variable.

2001-02-15 Thread Fabian Fabela
Hello. I receive from a post T1, T2, T3, ... Tn I want to put then in an array with a for, how can I do that? How can I use $T$i ??? Thank you Fabian Fabela [EMAIL PROTECTED] www.vacagorda.com

Re: [PHP] Oracle Web & Php

2001-02-15 Thread kaab kaoutar
Hi! I mean running php in an oracle server! thanks >From: Adi Wibowo <[EMAIL PROTECTED]> >To: kaab kaoutar <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: [PHP] Oracle Web & Php >Date: Thu, 15 Feb 2001 02:22:03 +0700 (GMT+0700) > > >On Wed, 14 Feb 2001, kaab kaoutar w

Re: [PHP] Concatenate a variable.

2001-02-15 Thread Fabian Fabela
Sorry I know the answer now. Thank you Fabian Fabela From: "Fabian Fabela" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 3:30 AM Subject: [PHP] Concatenate a variable. Hello. I receive from a post T1, T2, T3, ... Tn I want to put then in an array with a for,

[PHP] Cookies

2001-02-15 Thread kaab kaoutar
Hi! I'm about to use cookies in my application, and i'm intersted in using baskets, i mean while the user surfing in my web site, he can select items and it will be added to the basket etc (like the classical shopping) ! can u point me to a url with details information about cookies(i've read th

[PHP] Get a variable from a variable.

2001-02-15 Thread Fabian Fabela
Hello, In $a I have the name of the array that I want to use. For example. $a="myarray"; I need to send myFunction($myarray); if I try myArray($a); the string "myarray" is sent, and I want to send $myarray that is the text in $a. Thank you. Fabian Fabela [EMAIL PROTECTED] www.vacagorda.

[PHP] Compiling with Sablotron and XML

2001-02-15 Thread Paulo Jan
Hi all: I am working now on a project where I want to use PHP's XML and XSLT capabilities. The problem is that, after searching the list archives, I have seen endless questions from people who have had problems compiling PHP4 with Sablotron and XML support, so before I start with it, I wo

Re: [PHP] Cookies

2001-02-15 Thread Netbrain di M.L.
Using PHP4 I think u should store your vars on session and pass the session_id() for all your web pages ... take a look at the sess-cap on the php man I hope this help max --- Please Help Puppies --- x On Thu, 15 Feb 2001, kaab kaoutar wrote: > Hi! > I'm a

Re: [PHP] Cookies

2001-02-15 Thread Ankur Verma
instead of using cookies to store the informatioon about the stuff selected by the user while browsing your site, I would suggest that you use sessions to manage the user basket. Go through the information available at http://www.devshed.com/Server_Side/PHP/ and http://www.phpbuilder.com/column

Re: [PHP-CVS] cvs: php4 / configure.in /ext/standard basic_functions.cdir.c php_dir.h

2001-02-15 Thread Derick Rethans
On Thu, 15 Feb 2001, Sascha Schumann wrote: > There might be more systems which do not support chroot, so we check > for the existence of it. > > Additionally, if chroot is not supported, the warn_not_available function > is invoked now. Thanx Sascha, I hope it's now really fixed :) Der

Re: [PHP] Cookies

2001-02-15 Thread kaab kaoutar
Ok ! So it has nothing to do with cookies ?! and i should focus on session part ? in the manual there is only one chapter called Session handling functions ! Thanks a lot ! >From: "Netbrain di M.L." <[EMAIL PROTECTED]> >To: kaab kaoutar <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [PH

[PHP] PHP Charts

2001-02-15 Thread Phil Lambert
Hi everyone, im making a statistics type program and was wondering if anyone knew of some PHP libraries to produce charts/graphs etc. Cheers Phil P.S. Can you please reply to this address as im not on the mailing list anymore -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] need better solution

2001-02-15 Thread Christian Reiniger
On Thursday 15 February 2001 02:49, Christian Dechery wrote: > > > that's kinda what I have here... but the line of code isn't being > > > shown... and that is the problem... I for one, think that in an > > > error message the line of code is crucial. > > > >Check the manual for set_error_handler

Re: [PHP] Cookies

2001-02-15 Thread Netbrain di M.L.
On Thu, 15 Feb 2001, kaab kaoutar wrote: > So it has nothing to do with cookies ?! No, I did not say this ... I think u need to associate a unique_id for each client/customer and store the basket's vars on it ... u know that the session_id is passed on all your pages: - via cookies - via get/

Re: [PHP] PHP Charts

2001-02-15 Thread Ankur Verma
http://www.phpbuilder.com/columns/allan2830.php3 http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=183 http://phpclasses.upperdesign.com/browse.html/class/11 This is a great class for printing HTML graphs http://www.advgraph.regiocom.net/ hope that helps best regards Ankur V

[PHP] problem with pack function

2001-02-15 Thread Olivier ZILLER
Hello, I need to generate the value '0A 00 00 00' with the pack function. How to do this? TIA -- 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 PROT

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-15 Thread Thies C. Arntzen
On Thu, Feb 15, 2001 at 04:17:06AM +0200, Zeev Suraski wrote: > This patch won't always work (it may cause the link not to be closed when > it's supposed to). I committed a different patch to the CVS - can you under what circumstances? > please check it? will do - tc > > At 18

[PHP] Array

2001-02-15 Thread David Tandberg-Johansen
How can I delete one record in a array? Example: $myarray = array ("a", "b", "c"); I want to delete/take away "b" so the array is: $myarray = array ("a", "c"); David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] stupid problem!

2001-02-15 Thread kaab kaoutar
when i try the phinfo test in a php file it works! however when i put it in an htm file it does not work : PHP Test It gives me a blank page _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -

Re: [PHP] Array question

2001-02-15 Thread Christian Reiniger
On Thursday 15 February 2001 01:40, Chris wrote: > How do I get the index,number of an array if reffering to an array via > string? Ex: > I have 100 arrays, and I want to know what # myarray["something"] is. That element doesn't have an index number such arrays are implemented as hashes or tre

Re: [PHP] A little code here? :)

2001-02-15 Thread Christian Reiniger
On Thursday 15 February 2001 04:31, Dallas Kropka wrote: > I have a few text input boxes that I am using to allow the client to > compose emails for a mailing list... does anyone have a little snippet > that will take the "\n's" and turn them into 's? I would attempt to > write one myself but

Re: [PHP] php vs perl

2001-02-15 Thread Christian Reiniger
On Thursday 15 February 2001 08:03, Scott Mebberson wrote: > When Jason says 'especially when your note using the cgi' he means the > cgi version of PHP (I think) in preference to installing PHP as an > apache module. ...just as using mod_perl is better than perl as CGI -- Christian Reiniger LG

Re: [PHP] currency conversion

2001-02-15 Thread Robin Vickery
> "c" == christian <[EMAIL PROTECTED]> writes: > does anyone know of a way to currency conversions with php? i want > to grab the current currency from some kind of web site and then > convert money to different currency value I'm sure plenty of people have done this properly, but here's

[PHP] PWS & PHP

2001-02-15 Thread kaab kaoutar
Hi! How can i make my web server PWS parse html file into PHP? cause it shows nothing when i include php in an html file.However it works when i put it in a php file ! Thanks _ Get Your Private, Free E-mail from MSN Hotmai

Re: [PHP] Specific PHP/JSP questions

2001-02-15 Thread Ben Peter
Gerald, although I cannot give you extensive answers, I hope I can help you in some points: > > 1) JSPs can persist variables at the page, request, session and application > scopes. I believe PHP variables are implicitly page-scoped, and session > management can be used for session-scoping. Are

Re: [PHP] Array

2001-02-15 Thread Ankur Verma
use array_splice ($myarray, 1 ,1); hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "David Tandberg-Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 4:35 PM Subject: [PHP] Array

[PHP-I18N] weblog on i18n issues

2001-02-15 Thread Peter Van Dijck
http://liga1.com/ new weblog on localisation, internationalisation, globalisation and accessibility issues. Any feedback welcome, and feel free to participate, post articles, ... Peter -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Structuring large PHP programs

2001-02-15 Thread Ben Peter
Joe, I believe that the concept of the Zend Cache shows the contrary. It basically pre-parses scripts and stores them in memory. Zend.com give figures up to 603% performance increase (http://www.zend.com/cguidemo/benchmark_frame.html). Part of this certainly is due to less disk access, the other

php-i18n Digest 15 Feb 2001 11:20:21 -0000 Issue 52

2001-02-15 Thread php-i18n-digest-help
php-i18n Digest 15 Feb 2001 11:20:21 - Issue 52 Topics (messages 123 through 123): weblog on i18n issues 123 by: Peter Van Dijck Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-15 Thread Thies C. Arntzen
On Thu, Feb 15, 2001 at 12:01:35PM +0100, Thies C. Arntzen wrote: > On Thu, Feb 15, 2001 at 04:17:06AM +0200, Zeev Suraski wrote: > > This patch won't always work (it may cause the link not to be closed when > > it's supposed to). I committed a different patch to the CVS - can you > > unde

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-15 Thread Zeev Suraski
At 13:01 15/2/2001, Thies C. Arntzen wrote: >On Thu, Feb 15, 2001 at 04:17:06AM +0200, Zeev Suraski wrote: > > This patch won't always work (it may cause the link not to be closed when > > it's supposed to). I committed a different patch to the CVS - can you > > under what circumstances? Wel

Re: [PHP] php vs perl

2001-02-15 Thread Jason Brooke
> When Jason says 'especially when your note using the cgi' he means the > cgi version of PHP (I think) in preference to installing PHP as an > apache module. Almost, yes - I literally meant the 'common gateway interface', due to the fact that the webserver spawns the requested script/program ou

Re: [PHP] PWS & PHP

2001-02-15 Thread Phil Driscoll
>How can i make my web server PWS parse html file into PHP? cause it shows >nothing when i include php in an html file.However it works when i put it in >a php file ! You need to edit your registry (using regedit or a .reg file based on the one shown here). [HKEY_LOCAL_MACHINE\SYSTEM\CurrentCont

RE: Re: [PHP] PDF Functions

2001-02-15 Thread Mathias Meyer
> -Original Message- > From: Chris Carbaugh [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 15, 2001 1:39 AM > To: Mike Tuller; Michael Stearne > Cc: php mailing list > Subject: Re: Re: [PHP] PDF Functions > > Redhat's *.0 releases are known to be problematic. They are usually > pr

[PHP] Generate XML files

2001-02-15 Thread Paulo Jan
Hi all: A question tangentially related to the former one. I have seen lots of tutorials about how to parse XML files using PHP and generate something else (usually HTML) from it, but I haven't seen anything so far about generating XML with some specific data. Basically, what I wa

[PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-15 Thread Sergey Kartashoff
gluke Thu Feb 15 03:50:49 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: Added thow new mnoGoSearch agent session parameters: UDM_PARAM_WEIGHT_FACTOR and UDM_PARAM_WORD_MATCH. Index: php4/ext/mnogosearch/php_mnogo.c diff -

RE: [PHP] stupid problem!

2001-02-15 Thread Jon Haworth
This is because your server is set up to parse .php files as php, and .html files as html. If you have access to your httpd.conf or whatever, you can set it to include .html files in the php parsing. If not, you'll have to stick with calling your php files .php. HTH Jon -Original Message--

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-15 Thread Thies C. Arntzen
On Thu, Feb 15, 2001 at 01:47:46PM +0200, Zeev Suraski wrote: > At 13:01 15/2/2001, Thies C. Arntzen wrote: > >On Thu, Feb 15, 2001 at 04:17:06AM +0200, Zeev Suraski wrote: > > > This patch won't always work (it may cause the link not to be closed when > > > it's supposed to). I committed a diffe

Re: [PHP] PWS & PHP

2001-02-15 Thread Ankur Verma
This has been extensively covered in a step by step process in the PHP Manual Installation Chapter http://www.php.net/manual/en/install.iis.php follow the steps and you will have php working just fine with PWS best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Orig

RE: [PHP] stupid problem!

2001-02-15 Thread kaab kaoutar
Oh yes u're right it's that once installing i just cares for php file ! but when i try now, i find that thaere are existent phpfile keys that are already filled with things related to, for instance in the shell->open->commnand default ihave the following : "C:\PROGRA~1\Plus!\MICROS~1\iexplore.e

[PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Ricardo D'Aguiar
Hi, Problem: I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution), I change my php.ini file to enable the debugger but when try to use in a simple script I get the following error: Fatal error: Call to undefined function: debugger_on() in /var/www/html/php/dbg.php on line 2

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Jørg V . Bryne
Well, why not store the item's in the session-var? When the session dies because of timeout or user-intervention, the items dissapear too. Or store a timestamp along with the items, and refresh the timestamps as needed. Then put in a cron-job to delete out-of-date items left in the DB at regul

[PHP] MVC Framework in PHP?

2001-02-15 Thread Alexander, Jason
Hello all, I've been searching for a framework for MVC in PHP and I've been unsuccessful thus far. Does anyone know of one out there? TIA, -Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] HTTP authentication

2001-02-15 Thread Jason Stechschulte
On Wed, Feb 14, 2001 at 11:07:46PM -0800, Thomas Edison Jr. wrote: > The code I'm entering is: > > if(!isset($PHP_AUTH_USER)) { > Header("WWW-Authenticate: Basic realm=\"My Realm\""); > Header("HTTP/1.0 401 Unauthorized"); > echo "Text to send if user hits Cancel button\n"; > exit; > } else { >

Re: [PHP] Get a variable from a variable.

2001-02-15 Thread Jason Stechschulte
On Thu, Feb 15, 2001 at 03:57:58AM -0600, Fabian Fabela wrote: > $a="myarray"; > myFunction($myarray); > if I try myArray($a); the string "myarray" is sent, and I > want to send $myarray that is the text in $a. You were pretty close. I think you want to try this: myFunction($$a); It is a vari

Re: [PHP] currency conversion

2001-02-15 Thread Adrian Murphy
How legal is this? can u use it on a website? free? - Original Message - From: Robin Vickery <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 10:46 AM Subject: Re: [PHP] currency conversion > > "c" == christian <[EMAIL PROTECTED]> writes: > > > does a

[PHP] file upload size limits

2001-02-15 Thread Scott
I am uploading files and want to limit the size of the file. I can do this as long as the file that I am uploading doesn't exceed the Server limit. We don't own the server so I can't change any configuration on the server. Is there a way to Catch the warning and display my own message in the brow

[PHP] Question about ImageCopy and colors

2001-02-15 Thread David Raufeisen
Hi, I have 4 images, and I copy three of them onto one main background, these images all have fairly different colors and as you can imagine the resulting image looks splotchy and missing colors. What do i need to do to make sure the resulting image looks proper? -- David Raufeisen <[EMAIL PRO

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-15 Thread Shaun Batterton
Wddx may also be an option. That would allow you to serialize the xml into php variables so that you could use them in your example. But if your provider won't compile xml in, I doubt you'll be able to get wddx. Shaun On Wed, 14 Feb 2001, Stefen Lars wrote: > Hello all > > I have recently be

[PHP-CVS] cvs: php4 /ext/xml xml.c

2001-02-15 Thread Thies C. Arntzen
thies Thu Feb 15 05:41:05 2001 EDT Modified files: /php4/ext/xml xml.c Log: fixed SEGFAULT when using xml_set_object. Zend does not yes support cyclic references! Index: php4/ext/xml/xml.c diff -u php4/ext/xml/xml.c:1.71 php4/ext/xml/xml.c:1.72 --

[PHP-CVS] cvs: php4 /ext/standard string.c

2001-02-15 Thread Thies C. Arntzen
thies Thu Feb 15 06:01:18 2001 EDT Modified files: /php4/ext/standard string.c Log: 0..255 Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.187 php4/ext/standard/string.c:1.188 --- php4/ext/standard/string.c:1.187Fri Feb 2 05:47

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Billy Harvey
> Just as an aside, there's no reason I can think of that you can't run both > the Apache module and standalone binary on the same system side by side - > I've been doing this for about 2 years without trouble. > > jason However, there's no necessity to have the cgi version if you already have th

Re: [PHP] HTTP authentication

2001-02-15 Thread John Vanderbeck
I'm sure this wont' help, but just in case you may have missed the obvious (it happens sometimes)..Make sure you PHP script has the extension .PHP .. The server won't recognize it as a PHP file otherwise, and it won't know what to do with it. Also this extension has to be registred properly on th

Re: [PHP] Specific PHP/JSP questions

2001-02-15 Thread Michael Kimsal
Gerald Gutierrez wrote: > Hi all. > > I understand that a lot of JSP Vs. PHP questions have been asked on this > list, but they've been philosophical and general in nature. I have some > specific questions and was hoping that someone might be able to entertain them: > > 1) JSPs can persist vari

[PHP] Compiling PHP for Apache.

2001-02-15 Thread Scott Fletcher
Hi! Right now, I'm trying to figure out which step in order is appropriate. I'm going to put it down now, if I got it wrong then help me out with the correct order. Whether it is from scratch or from existing softwares. 1) OpenSSL 2) libmcrypt (Add-on to PHP)

[PHP] Charts

2001-02-15 Thread Phil Lambert
Hi everyone, im doing a statistics type system with PHP4 and I was wondering if anyone had any experience of creating charts/graphs with PHP. Cheers Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Can't access a mail archive

2001-02-15 Thread dphillips
Can someone please help? I'm seeing lots of interesting message headings go by in the digest, but I can't get to the current archive. I get the error message: "Forbidden. You don't have permission to access /mail/php-general/2001012/ on this server." But I can get to all the other archives. A

Re: [PHP] PWS & PHP

2001-02-15 Thread kaab kaoutar
Hi! please help me ! i have tried to do what is that url concerning html file but i've found that there is already a key called htmlfile where the default is filled with Microsoft HTML Document 5.0 and the shell->open-From: "Ankur Verma" <[EMAIL PROTECTED]> >Reply-To: "Ankur Verma" <[EMAIL PROT

[PHP] RE: [PHP-WIN] Bug in mktime-function ?

2001-02-15 Thread Boget, Chris
> Therefore any date on or before 1 Jan 1970 ain't going to > work using mktime or any PHP function which returns a > UNIX timestamp. I'm sorry, but this is wrong. The following works with no problems whatsoever. $month = 3; $day = 9; $year = 1935; echo "Using $month/$day/$yea

Re: [PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Chris Lee
You must be viewing old documentation. http://php.net/manual/en/debugger.php clearly states that debugger, ie debugger_on() support is in php3 only, not in php4. Your not out of luck though, you could still use the Zend Debugger, the Zend boys seem to be quite eager to improve its current quall

[PHP-CVS] cvs: php4 /ext/cpdf cpdf.c /ext/gd gd.c gd_ctx.c /ext/hyperwave hw.c /ext/interbase interbase.c /ext/oci8 oci8.c /ext/pdf pdf.c /ext/standard file.c iptc.c

2001-02-15 Thread Thies C. Arntzen
thies Thu Feb 15 06:48:59 2001 EDT Modified files: /php4/ext/cpdf cpdf.c /php4/ext/gdgd.c gd_ctx.c /php4/ext/hyperwave hw.c /php4/ext/interbase interbase.c /php4/ext/oci8 oci8.c /php4/ext/pdf pdf.c /php4/ext/stand

[PHP] Session Questions...

2001-02-15 Thread John Vanderbeck
I was reading through the documentation on sessions at http://www.php.net/manual/en/html/ref.session.html I have a few questions.. 1) How do I explicitly close a session, so that any subsequent attempts to use pages would require a new session started? Will session_destroy() do this? 2) I don't

[PHP] parse error driving me nuts ...

2001-02-15 Thread Andrew
hi, can anyone help me spot the parse error? It's throwing up on the first "if" line, and for the life of me I cannot find it! :) tia, andrew "; } else { if (!isset($ii)) $ii = 1; $i = 1; while($row=mysql_fetch_array($result)) { extract($r

[PHP] File_exists function question.

2001-02-15 Thread Gerry
Hello everyone: I'm trying to build a table with the last row being a check function for an image, where it checks if the item image exists in the image directory and either echos "no image" or places a small icon of something (I guess you could say Ebay style). The problem is that the fuction

[PHP] PHP Socket working (sorta)

2001-02-15 Thread Rog
After hours of pulling my hair out and staring a C code I don't understand, I almost have a generic PHP multiplexing TCP server running. Basically right now multiple clients can connect and be recognized by the server and the server is aware of incoming input from the clients. This is mostly u

Re: [PHP] Compiling PHP for Apache.

2001-02-15 Thread Martin A. Marques
El Jue 15 Feb 2001 11:47, escribiste: > Hi! > > Right now, I'm trying to figure out which step in order is > appropriate. I'm going to put it down now, if I got it wrong then help me > out with the correct order. Whether it is from scratch or from existing > softwares. > > > 1) O

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Jon Haworth
Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15:34 To: [EMAIL PROTECTED] Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot th

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread Ifrim Sorin
Try to use == instead of = Sorin Ifrim - Original Message - From: Andrew <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 5:33 PM Subject: [PHP] parse error driving me nuts ... > hi, can anyone help me spot the parse error? > It's throwing up on the fir

Re: [PHP] file upload size limits

2001-02-15 Thread Nick Winfield
On Thu, 15 Feb 2001, Scott wrote: > I am uploading files and want to limit the size of the file. I can do this > as long as the file that I am uploading doesn't exceed the Server limit. We > don't own the server so I can't change any configuration on the server. > > Is there a way to Catch the w

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
> hi, can anyone help me spot the parse error? > It's throwing up on the first "if" line, and for the life of me I cannot > find it! :) > > tia, > andrew > > > include("db_connect_params.inc"); > $sql="select path from PHOTO where pid =1"; > $link_id = mysql_connect($host, $usr, $pass); > $result

Re: [PHP] PWS & PHP

2001-02-15 Thread Phil Driscoll
I think that the registry key you are playing with here just sets what happens when a file is opened (e.g. by double clicking on it). It should have no effect on how PWS deals with the file. You should restore that to it's original setting. When you have had .php files working, I assume that you

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Andrew
Jon, John, Ifrim, the == worked ... thank you!! gotta read up on it now :) Cameron, dropping the extra () did not work :( thanks for the suggestions folks! andrew > -Original Message- > From: Jon Haworth [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 15, 2001 10:38 AM > To: '[EM

RE: [PHP] ereg_replace

2001-02-15 Thread Brian V Bonini
why does this \n"; $string = preg_replace( array( '/is/', '/string/'), array( 'is not', 'bit of text' ), $string ); print $string . "\n"; ?> return this: this is my string. this not is not

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
> Jon, John, Ifrim, the == worked ... thank you!! > gotta read up on it now :) > > Cameron, dropping the extra () did not work :( > > thanks for the suggestions folks! > andrew > Remember that '=' means assign what is on the right to what is on the left, whereby '==' means is what is on the left

Re: [PHP] ereg_replace

2001-02-15 Thread John Vanderbeck
> why does this > > $string = "this is my string."; > > print $string . "\n"; > > $string = preg_replace( > array( '/is/', '/string/'), > array( 'is not', 'bit of text' ), > $string > ); > > print $s

Re: [PHP] Array

2001-02-15 Thread Philip Olson
Try this : a [2] => c $bar = array('a','b','c'); $piece = array_splice ($bar, 1 ,1); print_r($piece); // [0] => b print_r($bar);// [0] => a [1] => c ?> http://www.php.net/manual/en/function.array-slice.php http://www.php.net/manual/en/function.unset.ph

[PHP] Magazine Subscription Script

2001-02-15 Thread Andy
Does anyone know of any sites that have any scripts for managing magazine subscriptions! Cheeky I know but may save a lot of time! Thanks Andy Kent Managing Director Angel Solutions Ltd t: 0151 737 1048 f: 0870 126 9837 e: [EMAIL PROTECTED] w: http://www.angelsolutions.co.uk

[PHP] Job offer in central London (repost)

2001-02-15 Thread Simon Gornall
Hi all, Unique ID Software are looking for a new permanent PHP and MySQL programmer. The company is based in central London and works in the video/film industry. The main product is called Cakes (don't ask!) which transparently manages video footage in a professional environment. I think we ca

[PHP] Re: [phplib] ct_sql bug - PHPLIB & page_close()

2001-02-15 Thread Bogdan Morar
I have the same problem but i don't study the record which is the subject of the update query. I tested just the object "db" from ac_store, which has the props Host, Database, user. The values of the db are correct in a debug mode (print the values :o) ) but in the command query($q) is the error.

Re: [PHP] PWS & PHP

2001-02-15 Thread Phil Driscoll
>First Thanks ! >well yes when i call http://localhost/myfile.html >it skips the php syntaxes it shows wht is only in the html tags! Can you check that a view source shows all your php code. What OS are you running - 9x or NT WS? Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http:

Re: [PHP] PWS & PHP Thanks

2001-02-15 Thread kaab kaoutar
Thanks a lot guys for ur help! _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: [PHP] ereg_replace

2001-02-15 Thread Brian V Bonini
Ah right, strings not words, I feel like a dummy now... ;-) > -Original Message- > From: John Vanderbeck [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 15, 2001 10:57 AM > To: [EMAIL PROTECTED]; Robin Vickery; [EMAIL PROTECTED] > Subject: Re: [PHP] ereg_replace > > > > why does t

[PHP] Extra whitespace when decrypting data with mcrypt

2001-02-15 Thread Iain Donaldson
Folks: I have some code that encrypts data using a relatively long (164 characters) alphanumeric key. The code for encrypt is: $encrypted = mcrypt_cbc( MCRYPT_TripleDES, $secret_key, trim($data), MCRYPT_ENCRYPT); and the decrypt code is: $decrypted = mcrypt_cbc( MCRYPT_TripleDES, $secret_key

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c php_bz2.h /ext/curl curl.c php_curl.h /ext/sablot php_sablot.h sablot.c /ext/swf php_swf.h swf.c

2001-02-15 Thread Sterling Hughes
sterlingThu Feb 15 08:20:14 2001 EDT Modified files: /php4/ext/bz2 bz2.c php_bz2.h /php4/ext/curl curl.c php_curl.h /php4/ext/sablotphp_sablot.h sablot.c /php4/ext/swf php_swf.h swf.c Log: Change e-mail address # Ca

[PHP] unstable execution of mysql_db_query($db, $myQuery)

2001-02-15 Thread Zhu George-CZZ010
I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that mysql_db_query($db, $myQuery) is not quite stable, actually, in my code, it is like mysql_db_query($db, $myQuery) or die "Something wrong during query"); 1 out of 15 (the same query), it will "die". Does anyone have any suggestion? T

[PHP] SMTP

2001-02-15 Thread Sebastien Le Floc'h
Hi, on PHP.ini, it's said [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i') Well, my question is : does anyone knows abasic solution to use another smtp

Re: [PHP] ereg_replace

2001-02-15 Thread Robin Vickery
> "VB" == "Brian V Bonini" <[EMAIL PROTECTED]> writes: > Ah right, strings not words, I feel like a dummy now... ;-) >> -Original Message- From: John Vanderbeck >> [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 >> 10:57 AM To: [EMAIL PROTECTED]; Robin Vickery; >> [

Re: [PHP] PDF Functions

2001-02-15 Thread Mike Tuller
I will as soon as the final release comes out. I don't want to rely on the beta now. Even though it is very stable. It will be nice to have standard hardware for a change. Mike > From: Michael Stearne <[EMAIL PROTECTED]> > Date: Thu, 15 Feb 2001 00:53:22 -0500 > To: [EMAIL PROTECTED] > Cc: Mike

[PHP] Question about PDF functions and PDFLib 3.03

2001-02-15 Thread Vladimir Novakovic
I'm running PHP4.0.4pl1-Win32, Zend Engine v1.0.4, Zend Optimizer v1.0.0, I tryed to run sample script for creating PDF document. It's PHP manual script, but I get message like this: Fatal error: Call to undefined function: pdf_new() in c:/web/pdf/pdf.php on line 2 phpinfo.php said: PDF

Re: [PHP] PDF Functions

2001-02-15 Thread Mike Tuller
I did that yesterday, but didn't help. I've reinstalled RedHat 6.2 now, so it is moot for me. > From: Mathias Meyer <[EMAIL PROTECTED]> > Date: Thu, 15 Feb 2001 12:52:53 +0100 > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: RE: Re: [PHP] PDF Functions > >> -Original Message-

Re: [PHP] unstable execution of mysql_db_query($db, $myQuery)

2001-02-15 Thread Joe Sheble (Wizaerd)
try using mysql_query( $qQuery, $dbConnection ); At 10:32 AM 2/15/01 -0600, Zhu George-CZZ010 wrote: >I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that >mysql_db_query($db, $myQuery) is not quite stable, actually, in my code, >it is like > >mysql_db_query($db, $myQuery) or die "Someth

[PHP] Is there a MOD function in PHP

2001-02-15 Thread Randall Perry
Couldn't find one in the manual under arithmetic functions. -- Randy Perry sysTame Mac Consulting/Sales -- 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:

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Egon Schmid (@vacation)
Randall Perry wrote: > > Couldn't find one in the manual under arithmetic functions. % -Egon -- SIX Offene Systeme GmbH ·Stuttgart - Berlin Sielminger Straße 63 ·D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de Besuchen Sie uns

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Alexander Wagner
Randall Perry wrote: > Couldn't find one in the manual under arithmetic functions. You would've found it under operators, I think. It's % regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] Reindexing Arrays

2001-02-15 Thread Nathan Cassano
I have an array of search results which I am searching through and unset()ing unwanted search results. My question is once I have unset a result there is then a break in the numeric index and how do I stop this from happening or reindex the results. Like this.. $results = array(0 => array(more el

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Mukul Sabharwal
$remainder = 10 % 5; --- Randall Perry <[EMAIL PROTECTED]> wrote: > Couldn't find one in the manual under arithmetic > functions. > > > -- > Randy Perry > sysTame > > Mac Consulting/Sales > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTE

  1   2   3   >