Re: [PHP] Global storage of objects.

2001-11-29 Thread Andrey Hristov
Sorry but this feature is not available in PHP. Script data can be serialized and written do disk. Simple types (ints, arrays, floats) can reside in memory and every script can use them but this is available only under *nixes. This feature uses SysV semaphores and SysV shared memory. Read the do

Re: [PHP] Global storage of objects.

2001-11-29 Thread Stefan Bergstrand
Your suggestion is as far as I got on my own... ;-=) What I want is to keep the object in memory, and not have to read data from disk the next time I need the object. I cant use cookies, since the object should be avaliable to more than one user. (Global, as I said in my first post.) The object

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread Matthew Loff
Ha ha... Thanks... I realize it's off-topic to just post links, but here are the ones I find most useful... Generate Basic Excel Files from PHP http://px.sklar.com/code.html?code_id=488 Favicon Generator (for Internet Explorer - icon that accompanies a link when you add it to your favorites lis

[PHP] Verisign Payflow Pro? Freebsd... Any ideas?

2001-11-29 Thread Jason
Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign st

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
Jason Murray wrote: > > I stand by my original statement. After someone requires PHP to > output a multi-sheet Excel file, the code to do it will then > be "out there". :) Ah, this is a nice cryptic answer! I need it -more or less- ;-) Why? This is why: http://nijb.nl/planning.php (It will op

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
David Robley wrote: > > s/require it be done/want to do it Count me in. Starting somewhere in December. An RTF module will be first, though! I'll post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread jimmy elab
Matthew Loff wrote: > > http://www.wotsit.org/search.asp?page=49&s=ALLFILES > > http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html This guy really has loads of remarkable links, or have you?! Got any more? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
Hi Martin, I read somewhere else that this was required for binary files.. However it certainly doesn't seem to be.. As it turns out, when I took out the stripslashes($row[0]) from: // 1. Get Image from DB to String $sql = "SELECT Image FROM Images WHERE ID='$ID'"; $res = dbi_quer

[PHP] Closely held cookie-cutter system!

2001-11-29 Thread Linda
Dear Fellow Entrepreneur, Would you like to make enough money so you can fire your boss, stay home and work for yourself? What would a few extra hundred, or even thousands a month mean to you and your family??? You see, I was once like you, working for someone else, not sure how to get out of

[PHP] Problem connecting to mysql via odbc

2001-11-29 Thread mweb
Hello, I have a page whoch should connect to a mysql database via odbc, on a RH 7.2 PC with the relevant rpm listed below. I know what to do when the db is reachable, but can't start: the instruction: $conn=odbc_connect("db9,"",""); just yelds this result: Warning: SQL error: [unixODBC][Driver M

RE: [PHP] PHP and XML

2001-11-29 Thread Robert Samuel White
"XML By Example" Second Edition, published by Que, written by Benoit Marchal, is the best resource out there in my opinion. This book was used in one of my college courses. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 7:13 PM To: PHP L

RE: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Martin Towell
try changing this line fputs($fd,$Images,strlen($Images)); to fputs($fd,$Images); as you don't need to specify the length. If you don't specify the length, it'll write the entire string. see how that goes... -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Friday

[PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
Hello All, I'd really appreciate some help figuring out what's wrong with this code. I can't seem to successfully save a MySQL JPG Image to a physical jpg file (well atleast not a valid one) The critical pieces of the code look like this: // 1. Get Image from DB to String $sql = "SELECT

Re: [PHP] help php

2001-11-29 Thread Tyler Longren
Hi Hai, Make sure you make the correct entries in httpd.conf. You might be able to uncomment the following lines from httpd.conf: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Just search for those lines in httpd.conf. If they exist, remove the '#' at the be

[PHP] Re: my server froze and now my PHP is gone??? HELP

2001-11-29 Thread Tyler Longren
Hi Mike, If you installed from source (and didn't use the --prefix= option), PHP should have been installed in /usr/local/lib/php, not /usr/local/bin/php. If it truly is missing, just reinstall. Good luck, Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] my server froze and now my PHP is gone??? HELP

2001-11-29 Thread Mike Baird
My server froze up one night and when I restarted it, my PHP ceased to exist. I mean, my usr/local/bin/php directory is no longer there. I have FreeBSD with Apache 1.3.20 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] PHP Authentication

2001-11-29 Thread Martin Towell
use a standard form... and in your php code, use, $username and $password -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Authentication On Fri, 30 Nov 2001 11:02:45 +1030, [

Re: [PHP] PHP Authentication

2001-11-29 Thread Hippie
On Fri, 30 Nov 2001 11:02:45 +1030, [EMAIL PROTECTED] (David Robley) wrote: >On Fri, 30 Nov 2001 07:29, Hippie wrote: >> I'm attempting authorise users from a MySQL database. The idea being, >> that upon access to the page they input their username and password >> and this is checked against a ta

Re: [PHP] PHP and XML

2001-11-29 Thread Brian White
You could try "XML for Dummies" as a starting point - I have it on my desk and I have yet to read it in depth but it looks like it explains most things OK, and it has the advantage for PHP folk that it is aimed at people who already know alot about how HTML works. At 19:13 29/11/2001 -0500, Tom

Re: [PHP] Sending Form Result to File

2001-11-29 Thread Hank Marquardt
caveats ... it just assumes you'll figure out the output from the form data -- filenames will be random .txt files written to the /tmp directory (which avoids all kinds of permission problems I'd otherwise need to discuss). uses the "|" (pipe) character instead of commas so you can have comma

[PHP] Re: db connect

2001-11-29 Thread Fred
I'm not sure what that script is supposed to accomplish, it seems a bit obfuscated and useless to me, nevertheless it correctly used the supplied database rather than the default one when I tested it. You may want to make sure that your sample_db actually exists. Fred Ian <[EMAIL PROTECTED]> wr

Re: [PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread John Monfort
If Sendmail is configured propoerly, then you should be able to call it from the system prompt without having to worry about the path. That is, regardless if sendmail is in /usr/bin/sendmail or /usr/local/bin/sendmail, you should be able to run it as: %sendmail -argument $var $var Hence, yo

[PHP] Sending Form Result to File

2001-11-29 Thread Ben Clumeck
I am looking for a script to send my form results to a .txt file in CSV (to import into Excel) format. Does anyone have a simple code? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] help php

2001-11-29 Thread Hai Nguyen
I just installed PHP 4.0.6 and Apache using RPM from RedHat 7.2. Right now I am not getting any output from the browser at all. This is my test file: hello.php PHP Test Can anyone tell me why I am not getting this output at all. Or explain to me what I am missing. I looked at the http.conf

Re: [PHP] PHP Authentication

2001-11-29 Thread David Robley
On Fri, 30 Nov 2001 07:29, Hippie wrote: > I'm attempting authorise users from a MySQL database. The idea being, > that upon access to the page they input their username and password > and this is checked against a table from an SQL database. This page > needs to be completely server independant w

[PHP] zip.exe files

2001-11-29 Thread AAustin
Hi On the corp website we are wanting to make the zip files that clients download zip.exe self extract files. Our html click here links no longer work. Now we get server error messages rather than the dialog box when the link is clicked. I think the file is trying to decompress when clicked to

RE: [PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread Martin Towell
it's one of the options in the php.ini file, if i'm not mistaken -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:28 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I put a path to Sendmail in php script?? The server that I am using has Sendmail

[PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread Mike
The server that I am using has Sendmail in a different place than their path to php. Also, you have to run php scripts with a cgi magic line (#!/usr/bin/php). I am using the mail() function to send mail, but I don't know how to put the path to Sendmail into the script so that mail() finds it. C

[PHP] PHP and XML

2001-11-29 Thread Tom Malone
Can anyone recommend a good book on XML, maybe from a PHP perspective? Tom Malone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] MySql error

2001-11-29 Thread Carlos GutiƩrrez
Hi ! I made the upgrade of MySQL, since 3.21 to 3.23, and, inmediatly this change, all perl programs that uses MySQL write at the STDERR, this bug SV = RV(0x84ec388) at 0xb2f0 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0x8552d3c I've installed: DBD::mysql 2.0902 DBI 1.20 DBI::DBD 11.02

Re: [PHP] database question

2001-11-29 Thread Craig Vincent
> what does \S means? http://www.php.net/manual/en/pcre.pattern.syntax.php This page gives a good description of many of the regex metacharacters and their meanings. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] database question

2001-11-29 Thread Jim Musil
\S refers to a non whitespace character. >In the following: >select whatever from articles where textlines regexp "^\Sbingo\S$" > >what does \S means? > >py > > >- Original Message - >From: "Jon Farmer" <[EMAIL PROTECTED]> >To: "Warren Vail" <[EMAIL PROTECTED]>; "Michael Hall" ><[EMAIL P

Re: [PHP] Memory leaks with LDAP?

2001-11-29 Thread Stig Venaas
On Thu, Nov 29, 2001 at 09:38:19AM -0700, Darren Gamble wrote: > Hey all, > > Has anyone else had problems with memory leaks using PHP's LDAP functions? Yes > I'm running php-4.0.6-7 as a module for apache-1.3.20-16; all Redhat 7.2 > RPMs. > > I posted a message on the PHP bug page recently, b

Re: [PHP] database question

2001-11-29 Thread py
In the following: select whatever from articles where textlines regexp "^\Sbingo\S$" what does \S means? py - Original Message - From: "Jon Farmer" <[EMAIL PROTECTED]> To: "Warren Vail" <[EMAIL PROTECTED]>; "Michael Hall" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Thursd

Re: [PHP] Good host needed

2001-11-29 Thread Steve Werby
"Rudi Ahlers" <[EMAIL PROTECTED]> wrote: > I know this is OT, but I don't know where else to ask. I'm in South Africa, > and I'm looking for a GOOD webserver host in the States. I suggest visiting http://www.webhostingtalk.com/ and searching the archives in the dedicated hosting forum and then po

[PHP] php4 and ldap

2001-11-29 Thread Scott Augustus
Greetings! Having trouble with php 4.2.0. I've built it with ldap support as I'm trying to use it with horde/imp to pull email addresses from my openldap server. I get the following errors from my apache logs: /usr/libexec/ld.so: Undefined symbol "_ldap_open" called from httpd:/usr/lib/apach

Re: [PHP] Good host needed

2001-11-29 Thread Job Miller
take a look at modwest, unix based great speed and service so far for me. $10/month gets me 100MB and 2GB transfer/month. obviously they have a lot higher options as well as dedicated hosting. job --- "Richard S. Crawford" <[EMAIL PROTECTED]> wrote: > I've had good luck with www.pair.com > > >

[PHP] Validating mailing addresses

2001-11-29 Thread Joshua Hoover
Hi list, I've been looking at a variety of software packages which allow you to validate U.S. mailing addresses against the USPS's database. Unfortunately, all of the products I've been able to find so far are Windows based and only support interfacing via COM. I want to be able to validate

[PHP] Re: db connect

2001-11-29 Thread Ian
Fred, sample_db 'is' my database name, so this should work? Well it keeps choosing my $default_db value. Can you try my code and tell me if it works for you please? Thankyou. "Fred" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How are you passing the name

Re: [PHP] Image width??

2001-11-29 Thread Steve Edberg
http://php.he.net/manual/en/function.getimagesize.php At 9:46 PM + 11/29/01, cosmin laslau wrote: >Hi, > >Is there any function or command in PHP that will return the width >an image (GIF)? > >Thanks. > -- ++ | Stev

[PHP] PHP Authentication

2001-11-29 Thread Hippie
I'm attempting authorise users from a MySQL database. The idea being, that upon access to the page they input their username and password and this is checked against a table from an SQL database. This page needs to be completely server independant which means that I can't make use of the $PHP_AUTH

Re: [PHP] Image width??

2001-11-29 Thread Justin England
array getimagesize (string filename [, array imageinfo]) http://www.php.net/manual/en/function.getimagesize.php Justin England [EMAIL PROTECTED] Network Administrator E-Net Information Services http://www.enetis.net Tel: 605-341-3638

[PHP] Image width??

2001-11-29 Thread cosmin laslau
Hi, Is there any function or command in PHP that will return the width an image (GIF)? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Good host needed

2001-11-29 Thread Rudi Ahlers
No, no, no, what I meant was, I want to rent some servers, in order for me to start a webhosting company myself. Rudi Ahlers UNIX Specialist and Web Developer Bonzai Web Design - http://www.bonzai.org.za Cell: 082 926 1689 - Original Message - From: "Chris Bailey" <[EMAIL PROTECTED]> To:

RE: [PHP] PHP 4.1 out?

2001-11-29 Thread Mark Charette
> -Original Message- > From: ~~~i LeoNid~~ [mailto:[EMAIL PROTECTED]] > It could be stated on the site, or (and) tar could be re-moved. As far as > I am concerned, as soon as something is placed on the web, you have no > control over reference to it.. And access you can regulate of c0u

RE: [PHP] Good host needed

2001-11-29 Thread Chris Bailey
Check the mailing list archives. This topic comes up about once a month or so, and a lot of good hosts have been listed, all of which support PHP, MySQL, and typically have SSH or at least telnet access, FTP access, etc. -Original Message- From: Rudi Ahlers [mailto:[EMAIL PROTECTED]] Sen

Re: [PHP] Good host needed

2001-11-29 Thread Richard S. Crawford
I've had good luck with www.pair.com At 01:10 PM 11/29/2001, Rudi Ahlers wrote: >I know this is OT, but I don't know where else to ask. I'm in South Africa, >and I'm looking for a GOOD webserver host in the States. Bandwidth is a big >thing, as well as using UNIX, else Linux. I would like to be

[PHP] Good host needed

2001-11-29 Thread Rudi Ahlers
Hi guys. I know this is OT, but I don't know where else to ask. I'm in South Africa, and I'm looking for a GOOD webserver host in the States. Bandwidth is a big thing, as well as using UNIX, else Linux. I would like to be able to manage the server from home,and not phone in every I need to do som

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Ok i've found it ! I hould use "php_flag" instead of "php_value" and now it work fine !! Many thanks ... Alain DESEINE. Alain Deseine wrote: > > > Faeton wrote: > >> Hello Alain, >> >> In httpd.conf (or .htaccess) you can make: >> >> php_value magic_quotes_gpc On >> php_value magic_quotes

[PHP] Need help on current working directories

2001-11-29 Thread LeTortorec, Jean-Louis
Hi: I'm coding pages that need to include some general functions. File1 is an example of those pages. I also need to use the very same function file across several web sites. So, I created an additional file, where I have listed all the options for a particular site (which is then included into

[PHP] Question regarding mysql_connect/pconnect

2001-11-29 Thread Jeff Lewis
I was typically using pconnect but then read that for very busy sites you can reach the max threads for mySQL quickly. So on my new server I have a couple of scripts and they are using mysql_connect. I was under the impression that these disconnected after script execution but when checking, the

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Faeton wrote: > Hello Alain, > > In httpd.conf (or .htaccess) you can make: > > php_value magic_quotes_gpc On > php_value magic_quotes_sybase On > > Yeah, just like that :) > I just do that in the httpd.conf, restart apache and then invoke the php function phpinfo(); but it seem that the

Re: [PHP] Re: resizing images.

2001-11-29 Thread Henrik Hansen
[EMAIL PROTECTED] (Faeton) wrote: > Hello Henrik, > > That should be oK 4 my server, but how about my home apache+php on > win? Any solution? no problem just grab the php dist from php.net it has an gd extension with it. If you want gif support also look for a build at php4win.de -- Henrik

Re: [PHP] in_array error

2001-11-29 Thread Fred
You will not be able to use this and many other functions on a php3 only machine. For your convenience, all of the function references in the manual state which versions of php support them and which do not. Fred Steve Osborne <[EMAIL PROTECTED]> wrote in message 008401c17916$dd87f200$[EMAIL PR

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread faeton
Hello Alain, In httpd.conf (or .htaccess) you can make: php_value magic_quotes_gpc On php_value magic_quotes_sybase On Yeah, just like that :) AD> magic_quotes_gpc= On AD> magic_quotes_sybase = On AD> The problem is that if i modify the php.ini file the other applications AD> wil

[PHP] Re: CSV output displayed in Excel or similar.

2001-11-29 Thread Fred
I have had success using tab delimted files instead of comma delimited files. For some reason Excel does not behave as expected when opening csv files from the web. At least, it acts differently than it does when opening them from the local disk. At any rate, I use tabs to delimit fields and ne

[PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Hi, I got a linux server with many domain names using PHP and various Database. Theses applications exists and were developped with this settings in php.ini : magic_quotes_gpc= Off magic_quotes_runtime = Off magic_quotes_sybase = Off Now for a new application using a sybase serve

Re: [PHP] PHP 4.1 out?

2001-11-29 Thread ~~~i LeoNid ~~
On Wed, 28 Nov 2001 20:57:41 +0100 impersonator of [EMAIL PROTECTED] (Zeev Suraski) planted &I saw in php.general: >There were some last minute issues that required further testing... > It could be stated on the site, or (and) tar could be re-moved. As far as I am concerned, as soon as something

Re: [PHP] Re: resizing images.

2001-11-29 Thread faeton
Hello Henrik, That should be oK 4 my server, but how about my home apache+php on win? Any solution? HH> here are some examples: HH> http://www.zend.com/codex.php?CID=344 HH> you need GDlib installed or a command line tool such as imagemagick. Iv

Re: [PHP] in_array error

2001-11-29 Thread Steve Osborne
I'm using php 4 on my machine, however the server that I am testing on only supports php3 - Original Message - From: "Gerard Onorato" <[EMAIL PROTECTED]> To: "Steve Osborne" <[EMAIL PROTECTED]>; "PHP-General (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 11:29 AM Subj

[PHP] Re: resizing images.

2001-11-29 Thread Henrik Hansen
[EMAIL PROTECTED] (Faeton) wrote: > BTW, could anybody share its experience in writing scripts that can > resize images? And what extensions should be installed on server 4 > such operationz. here are some examples: http://www.zend.com/codex.php?CID=344 you need GDlib installed or a command

Re: [PHP] Help anyone

2001-11-29 Thread Mike Eheler
Maybe, but where I come from, printing HTML is illegal, and XHTML compliance must be 100%, so: > > Mike faeton wrote: >Hello Mike, > >And cleaner: >print ''; >print ''').'>'; >?> > >:) > >ME> >ME> ME> selected="selected"'; } ?>>On-Line >ME> ME> selected="selected"'; } ?>>Off-Line >ME> >ME>

Re: [PHP] getting a user's ip address

2001-11-29 Thread Mike Eheler
Your IP address is That is all case sensitive too, by the way. Mike Ken Savage wrote: >Super new to PHP but I'm putting in the effort to learn quickly. >How would I output the user's IP address in a php file. > >I want the webpage to say... > >Your IP address is xx.xx.xx.xx > >thanks >Ken Sav

Re: [PHP] getting a user's ip address

2001-11-29 Thread John S. Huggins
On Thu, 29 Nov 2001, Ken Savage wrote: >-Super new to PHP but I'm putting in the effort to learn quickly. >-How would I output the user's IP address in a php file. >- >-I want the webpage to say... >- >-Your IP address is xx.xx.xx.xx Try finding it in these variables: $HTTP_SERVER_VARS["REMOT

[PHP] resizing images.

2001-11-29 Thread faeton
BTW, could anybody share its experience in writing scripts that can resize images? And what extensions should be installed on server 4 such operationz. Thanx. --- Hit any user to continue. --- :) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [

[PHP] getting a user's ip address

2001-11-29 Thread Ken Savage
Super new to PHP but I'm putting in the effort to learn quickly. How would I output the user's IP address in a php file. I want the webpage to say... Your IP address is xx.xx.xx.xx thanks Ken Savage http://kensavage.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] RE: color problems when resizing image with GD

2001-11-29 Thread Andrew Chase
Are you using GD 2.0.1 and PHP 4.0.6? If yes then try $dst_img = ImageCreateTrueColor ($new_w,$new_h); (http://www.php.net/manual/en/function.imagecreatetruecolor.php) -Andy > -Original Message- > From: Michael Hall [mailto:[EMAIL PROTECTED]] > Subject: color problems when resizing

Re: [PHP] Server wont execute my PHP files!!

2001-11-29 Thread John S. Huggins
On Thu, 29 Nov 2001, Mike wrote: >-I am being hosted by South West Bell, and my php files are not even >-recognized. They are stored in the correct folder, but SWB ONLY allows >-read/write permissions, and NO chmod access. The tech support guy told me >-that I have to code the Execute permissio

RE: [PHP] in_array error

2001-11-29 Thread Gerard Onorato
Steve, What version of PHP are you running. in_array is >= 4.0. is_array was in 3.0 so this may be an issue for you. Gerard -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 3:08 PM To: PHP-General (E-mail) Subject: [PHP] in_array error

[PHP] Server wont execute my PHP files!!

2001-11-29 Thread Mike
I am being hosted by South West Bell, and my php files are not even recognized. They are stored in the correct folder, but SWB ONLY allows read/write permissions, and NO chmod access. The tech support guy told me that I have to code the Execute permission in my php file. Is that true? and if so

[PHP] in_array error

2001-11-29 Thread Steve Osborne
Can anyone explain why I am getting the following error? Fatal error: Call to unsupported or undefined function in_array() in includes/chinlib21stCentury.inc on line 3131 Code: if( (is_array($List)) AND (is_array($RemoveList)) ) { $ListItems = count($List); sort($List); for($ListItem=0;

Re[2]: [PHP] Help anyone

2001-11-29 Thread faeton
Hello Mike, And cleaner: '; print ''; ?> :) ME> ME> selected="selected"'; } ?>>On-Line ME> selected="selected"'; } ?>>Off-Line ME> ME> There's much better/general ways to do it, but the above is a nice, ME> clean, quick and dirty way of doing it. Yes, clean and dirty. ;)

Re: [PHP] Help anyone

2001-11-29 Thread Jani Mikkonen
> > > And if you want to make one of those selected use something like this: > > > -- 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 PROTE

[PHP] Would like to join list...

2001-11-29 Thread Steve Osborne
Can anyone email me directly and tell me how to subscribe to this list? Thanks, Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] Help anyone

2001-11-29 Thread Mike Eheler
ew How about: ?> >On-Line >Off-Line Here is what I did. >if ($edit[status]=="On-line") { >print "Status: \n"; >print "On-line\n"; >print "Off-line\n"; >print "\n"; >} else { >print "Status: \n"; >print "On-line\n"; >print "Off-line\n"; >print "\n"; >} >//and >if ($edit[single]=="1") { >p

[PHP] CSV output displayed in Excel or similar.

2001-11-29 Thread Matthew Clark
I have a PHP script that outputs several lines of comma separated values.. I would like to display this output in Excel without having to write the output to a file with a .csv extension and redirecting. I have tried setting the content-type: application/vnd.ms-excel and Excel isn't happy.. it co

Re: [PHP] Help anyone

2001-11-29 Thread Dan McCullough
Here is what I did. if ($edit[status]=="On-line") { print "Status: \n"; print "On-line\n"; print "Off-line\n"; print "\n"; } else { print "Status: \n"; print "On-line\n"; print "Off-line\n"; print "\n"; } //and if ($edit[single]=="1") { print "Single: Yes or No \n"; } else { print "Single:

Re: [PHP] Help anyone

2001-11-29 Thread faeton
Hello Dan, Thursday, November 29, 2001, 7:11:22 PM, you've written: DM> I need to edit a entry into the database via an admin script, how do I work in a radio selection DM> box, and populate it with the correct selection? Something like that, maybe :)

[PHP] Re: db connect

2001-11-29 Thread Fred
How are you passing the name of the database? Are you replacing 'sample_db' in the line: $link_id = db_connect('sample_db'); in show_more_db.php? If so, then I do not see where there would be a problem. Fred Ian <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] problem with urlencode

2001-11-29 Thread faeton
Hello Sjoerd, U can try using htmlentities(). OSv> I have a problem putting through a variable which contains an & in the OSv> string. OSv> When the variabele is something like: OSv> click here Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [

[PHP] Re: fsockopen() prob

2001-11-29 Thread Yura
Nop, doesn't work - the same result, supplied argument is not valid file handler... Youri > Global variables are not really global in php because they are not > available from within functions unless you specifically declare them > as global. This should work: > > 130 function get_line { >

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Michael Geier
I have previously done this by creating either a text or PDF document with PHP and then passing it off to HylaFAX. The only problems I was having was that I would create a legal size PDF. When I sent it through HylaFAX, the destination fax machine would not scale the PDF to various size paper, o

[PHP] Help anyone

2001-11-29 Thread Dan McCullough
I need to edit a entry into the database via an admin script, how do I work in a radio selection box, and populate it with the correct selection? = Dan McCullough --- "Theres no such thing as a problem unless the servers are on

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Raymond Lilleodegard
Thanks, that sounds great! I have to admit that i am pretty new with this php language. But to get this work, I have to use a "faxprogram"? and then send the forminput to this program? That redirect the data to a fax? I'll see what kind of program I can get. "Jani Mikkonen" <[EMAIL PROTECTED]>

[PHP] APC and memory troubles

2001-11-29 Thread Shane Wright
Hi List, I'm having some troubles with APC and was wondering if anyone else had seen this and perhaps knew of a solution... Basically, random pages at random times cause the script to run out of memory. This first happened with the default 8Mb limit, so I upped it to 20Mb but the problem rem

[PHP] Re: unbale to send mails using mail function

2001-11-29 Thread Ben Holt
Have a look at the path to sendmail in your php.ini file. To get mine to work I had to set it to '/usr/sbin/sendmail -t -i'. Your path may be different, but the -t and -i switches are important. - Ben Sanjay wrote: > Hi > > I have successfully installed PHP 4.0.6 with apache 1.3.22 on my m

[PHP] Memory leaks with LDAP?

2001-11-29 Thread Darren Gamble
Hey all, Has anyone else had problems with memory leaks using PHP's LDAP functions? I put together a LDAP server the other day, and wrote a PHP program to test it. I've stripped this program down to basically a ldap_connect, ldap_bind, ldap_search on objectclass=* , ldap_get_entries, ldap_free_

Re: [PHP] Global storage of objects.

2001-11-29 Thread Jani Mikkonen
> I would like to know if there is a way to store objects globally from a > php-page, so that the object can be used from another page. Keyword is Serialization. If you save object to flatfile or to db, i dont see any point why the result wouldnt be accessible from other places (providing that th

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Jani Mikkonen
> A customer wants a order made by a forminput sent to fax. Is it possible > with php? Or do I have to do it some other way? Hey, php is a programming language, it does what ever you want (up to certain restrictions ofcourse) But for pointers, try installing hylafax (if you run *nix that is) an

Re: [PHP] Ezmlm Hosts besides csoft.net?

2001-11-29 Thread Andrey Hristov
http://www.ispcheck.com HTH Andrey - Original Message - From: "Sondra Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 6:02 PM Subject: [PHP] Ezmlm Hosts besides csoft.net? > Hello everyone! > > I'm wondering if you guys could suggest a hosting co

Re: [PHP] database question

2001-11-29 Thread Jani Mikkonen
> select whatever from articles where textlines regexp "^\Sbingo\S$" Again, that would fail if the word 'bingo' is and the end of the sentence. Allthou i realized my own example doesnt work either in that case. Best way would be remove all characters like ,.!? and and split the string into words.

[PHP] Ezmlm Hosts besides csoft.net?

2001-11-29 Thread Sondra Russell
Hello everyone! I'm wondering if you guys could suggest a hosting company that provides: php4 mySql qmail ezmlm (or ezmlm-idx). I have been with csoft.net, which was wonderful and which provided all of these things, but last night they decided to pull down my web site for six hours without not

Re: [PHP] upload problem

2001-11-29 Thread Andrey Hristov
var_dump($HTTP_POST_FILES); HTH Andrey Hristov - Original Message - From: "Miguel Loureiro" <[EMAIL PROTECTED]> To: "php-gen" <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 6:04 PM Subject: [PHP] upload problem > Hello all, > when I want to do an upload ( form ENCTYPE="multipart

RE: [PHP] Global storage of objects.

2001-11-29 Thread Christoph Starkmann
Hi Stefan! > I would like to know if there is a way to store objects > globally from a > php-page, so that the object can be used from another page. Why not writing these objects to a *.php document which you can include wherever you need it? HTH, Kiko - It's not a bug, it's a feature. ch

Re: [PHP] Global storage of objects.

2001-11-29 Thread Andrey Hristov
Simultaneously? Or you want them preloaded and constructed in memory on every page request? Regards, Andrey - Original Message - From: "Stefan Bergstrand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 5:56 PM Subject: [PHP] Global storage of objects. >

[PHP] upload problem

2001-11-29 Thread Miguel Loureiro
Hello all, when I want to do an upload ( form ENCTYPE="multipart/form-data" action=" . $PHP_SELF . " method="post">), sometimes ( having in form, several input file types, ex.:), after submit , dont show me the values uploaded ( aa_name ; aa_type) ?? Any ideas why ? thanks for your time... -- Best

RE: [PHP] Global storage of objects.

2001-11-29 Thread Boget, Chris
> I would like to know if there is a way to store objects > globally from a php-page, so that the object can be used > from another page. Yes, using sessions or cookies. Chris

[PHP] Re: PDF print page creation...

2001-11-29 Thread bill
If the problem is just the web address, etc., in the bottom of the page, that can be turned off. In NN, File/Page Setup and uncheck the boxes in the header and footer In IE, File/Page Setup and remove the stuff in the header and footer fields. Lauri Vain wrote: > Hello, > > A client requeste

[PHP] Global storage of objects.

2001-11-29 Thread Stefan Bergstrand
I would like to know if there is a way to store objects globally from a php-page, so that the object can be used from another page. /Stefan B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

[PHP] color problems when resizing image with GD

2001-11-29 Thread Michael Hall
We run on a Windows platform. If a client uploads an image to my script that is too wide, I want to use GD to resize the image down to the proper dimensions. The problem I'm having is that the resized image drops huge chunks of the color pallette, creating what is basically a monochromatic image

  1   2   >