Re: [PHP] exist?

2001-03-14 Thread Keith Vance
You must not have searched to hard on the site, http://www.php.net/file_exists Keith On Wed, 14 Mar 2001, Kenneth R Zink II wrote: How would I go about checking to see if a file exist from php? I didn't find anything on php.net when I did a search for exist. basically, I'm trying to

[PHP] Header Help!

2001-03-14 Thread Chris
Hi, I am trying to send Form information from a seperate program I have written: I used the header: Content-Type: multipart/form-data But php complains with this error: Warning: There should have been a "boundary=something" in the Content-Type string in test.asp on line 327(-- Line # allways

[PHP] Executing a string with both html and php inside it..

2001-03-14 Thread Aviv Revach
Hey! What should I do in order to execute the next string: $str = "html\n" $str .= "blabla\n"; $str .= " ?php echo \"hello!\"; ?\n"; $str .= "blabla\n"; $str .= "/html\n"; When I tried using 'echo' with the string, but the php code didn't work... Is there any way of doing this

Re: [PHP] Good Free PHP Editor?

2001-03-14 Thread Mark Maggelet
editplus can do this. On Wed, 14 Mar 2001 13:49:04 -0900 (AKST), chris ([EMAIL PROTECTED]) wrote: Do any of these editors support server mappings allowing one to auomatically preview files through a server? I find this invaluable in HomeSite (which is also VERY stable for me using Win2K) and I

[PHP] How upload files to protected directories?

2001-03-14 Thread Mig
Hello I post my question here because I can't understand what host support is trying to say to me: I use paid host with PHP and MySql facilities, all working fine for me (both PHP and MySql). I offer to customers ability for storing updating and retrieving MySql records using form POST ..

[PHP] Parse all .htm files?

2001-03-14 Thread Jorge Alvarez
Hi there, I'm using PHP and Personal Web Server in a Windows 98 PC. What should I do to make PHP parse all .htm files and not only those with the .php extension? Many thanks in advance, Jorge Alvarez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Sessions, no cookies, enable-trans-sids, no success

2001-03-14 Thread Eric Nielsen
I'm using 4.04pl1 with --enable-trans-sids configured. I did the make distclean that some people suggest in the annotated manual. The relative URLs in forms and anchor are not getting the session id appended (neither are the absolutes in header/Location, but I understand that a current

[PHP] XML compile with PHP

2001-03-14 Thread Herman Tolentino
dear list members, has anybody got a good reference in compiling XML (expat) with PHP? I've tried following the instructions in the annotated PHP manual and I still come across the xmltok problem. Any reference, compile script, URL, etc. would be appreciated. Thanks! - Herman -- PHP General

[PHP] Array help

2001-03-14 Thread Chris
Hi, Is there a way to do an array_pop with php3?

[PHP] Help please

2001-03-14 Thread Peter Houchin
Hi, when i try and access my database from a web page i get this error MySQL Connection Failed: Can't initialize character set 12 (path: default) can some one please help me out with the "Can't initialize character set 12 (path: defualt) cuz i don't understand what it means by the character set

[PHP] Anyone running their own Servers DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Andre Bajew
Hi all, I'm contemplating moving one of my larger sites off of a hosting company over to my own PIII 1 Gigahertz. Thoughts right now are to use IIS 5.0 and either SQL Server or MySQL. I can currently get a fixed IP address DSL connection at 1.5 meg download and 512 Upload for fairly cheap. The

Re: [PHP] How upload files to protected directories?

2001-03-14 Thread Keith Vance
You should be able to do something using PHP, try looking here, http://www.php.net/manual/cs/features.file-upload.php I think there is just a communication problem between you and your hosting company. They don't allow ftp uploads, but as long as you are doing it through http, it should work

[PHP] How do you keep your scripts secure?

2001-03-14 Thread Murph
Hi. So, I've written all this nifty code and I'd like to do what I can from having it pilfered. What do you do to keep your stuff safe? Murph www.murphatnight.com __ Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 -

RE: [PHP] Anyone running their own Servers DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Jason Murray
I'm contemplating moving one of my larger sites off of a hosting company over to my own PIII 1 Gigahertz. Thoughts right now are to use IIS 5.0 and either SQL Server or MySQL. I can currently get a fixed IP address DSL connection at 1.5 meg download and 512 Upload for fairly cheap. The reason

Re: [PHP] Help please

2001-03-14 Thread David Robley
On Wed, 14 Mar 2001 23:18, Peter Houchin wrote: Hi, when i try and access my database from a web page i get this error MySQL Connection Failed: Can't initialize character set 12 (path: default) can some one please help me out with the "Can't initialize character set 12 (path: defualt) cuz

[PHP] NEWBEE - How do I preload 25 gifs?

2001-03-14 Thread Lars Falsig
I need to preload lots of graphics for user-controlled animation, changing graphics fast. Include() and/or require() works to slow. Any suggestions? -- Regards Lars www.DHSaps.com www.BuyEasy.dk www.CasinoDK.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP-CVS] cvs: pear /PEAR pear.c

2001-03-14 Thread Stig Bakken
ssb Wed Mar 14 16:53:07 2001 EDT Modified files: /pear/PEAR pear.c Log: * implemented setErrorHandling Index: pear/PEAR/pear.c diff -u pear/PEAR/pear.c:1.2 pear/PEAR/pear.c:1.3 --- pear/PEAR/pear.c:1.2Tue Mar 13 17:04:45 2001 +++

RE: [PHP] Sessions, no cookies, enable-trans-sids, no success

2001-03-14 Thread Johnson, Kirk
Eric, I gotta ask the obvious question: did you have cookies disabled in your browser when you were checking this out? PHPSESSID only gets appended when cookies are disabled. If that is not the problem, I have no suggestions. Works for me as advertised. Kirk -Original Message- From:

Re: [PHP] How do you keep your scripts secure?

2001-03-14 Thread Jack Dempsey
Murph wrote: Hi. So, I've written all this nifty code and I'd like to do what I can from having it pilfered. What do you do to keep your stuff safe? Murph www.murphatnight.com __ Brian Murphy - 193A Lowell St., Apt.

RE: [PHP] Anyone running their own Servers DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Andre Bajew
Thanks so much for your honest comments and input. So far I have seen zero problems in the last 29 days with our DSL but you are absolutely correct in that I could easily be hit with a disruption. I actually do back up our current server with 4mm Dat and we are on a UPS but your points are very

Re: [PHP] Array help

2001-03-14 Thread David Robley
On Thu, 15 Mar 2001 10:56, Chris wrote: Hi, Is there a way to do an array_pop with php3? Off the top of my head: use count to get the number of elements in the array grab element(count - 1) as the popped value Then (maybe) unset(element[count-1]) may work; if not you might have to play

RE: [PHP] Array help

2001-03-14 Thread James Atkinson
Hi, Is there a way to do an array_pop with php3? Here's some PHP 3 compatable code that works the same as array_pop: function _array_pop($stack) { $arrSize = count($stack); $x = 1; while(list($key, $val) = each($stack)) { if($x count($stack)) { $tmpArr[] = $val;

Re: [PHP-CVS] cvs: pear /PEAR pear.c

2001-03-14 Thread Andrei Zmievski
At 12:53 AM 3/15/01 +, Stig Bakken wrote: +if (options != NULL) { +zval **el0, **el1; +if (((*options)-type != IS_STRING (*options)-type != IS_ARRAY) || +((*options)-type == IS_ARRAY +

[PHP] JavaDoc?

2001-03-14 Thread Jonathan Sharp
So i've heard bits and pieces that JavaDoc can parse out comments about php... does anyone have an example of a command line call to javadoc passing a PHP file? Thanks, -Jonathan [EMAIL PROTECTED] (Remove spam. if you want to contact me directly) -- PHP General Mailing List

php-general Digest 15 Mar 2001 01:57:16 -0000 Issue 567

2001-03-14 Thread php-general-digest-help
php-general Digest 15 Mar 2001 01:57:16 - Issue 567 Topics (messages 43830 through 43945): Tutorial for RegExpressions 43830 by: Martin Thoma 43833 by: Fredrik Wahlberg 43860 by: Nathan Cassano Re: Day of Week?? 43831 by: Tim McGuire 43832 by: Tim

Re: [PHP] Anyone running their own Servers DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Paul Warner
Why not lease a dedicated machine in your favourite flavour. That way you have the reliability of a hosting company that monitors 24-hrs, provides generators, UPS, etc. but will have full control over site, configuration, etc. There are many dedicated servers available in NT/2000/Linux/Cobalt

Re: [PHP] JavaDoc?

2001-03-14 Thread Yasuo Ohgaki
So i've heard bits and pieces that JavaDoc can parse out comments about php... does anyone have an example of a command line call to javadoc passing a PHP file? PHPDoc or PHP Documentator, I guess. http://www.phpdoc.org/ Regards, Yasuo Ohgaki -- PHP General Mailing List

[PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jeff Oien
Could anyone help me out with how to print the entire contents of a database as an Excel file? I'm familiar with the header: header("Content-Type: application/vnd.ms-excel"); just not sure how to go about it beyond that. I have this code and am not sure what do do after it. Thanks. Jeff Oien

Re: [PHP] How upload files to protected directories?

2001-03-14 Thread Mig
Keith Vance wrote: You should be able to do something using PHP, try looking here, http://www.php.net/manual/cs/features.file-upload.php I think there is just a communication problem between you and your hosting company. They don't allow ftp uploads, but as long as you are doing it through

Re: [PHP] How do you keep your scripts secure?

2001-03-14 Thread Chris Lee
the much easier method is to change all your code extensions to be either parsed or forbidden in httpd.conf Files *.egn AllowOverride AuthConfig FileInfo Indexes Limit Options Order allow,deny Deny from all /Files or AddType application/x-httpd-php .inc

RE: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jason Murray
Could anyone help me out with how to print the entire contents of a database as an Excel file? I'm familiar with the header: header("Content-Type: application/vnd.ms-excel"); just not sure how to go about it beyond that. I have this code and am not sure what do do after it. Thanks.

[PHP] RE: [?] How to make many one line forms in a loop?

2001-03-14 Thread Brinkman, Theodore
Try it this way instead (my apologies for any typos, I'm getting ready to leave work and didn't bother to test it, but it should get the concept across). - - - - - ?php error_reporting(E_ALL); include("/home/httpd/php/open_db.inc"); // default setting for $sort_term if ($sort_term == null) {

Re: [PHP] my page is in the error log

2001-03-14 Thread seth
I was checking my error log and the entire post-PHP contents of a page was in my error log. I checked the access log and the page was requested but the client got back 0 bytes. very strange. It looks like it happened a few times. I'm using Apache 1.3.14 on RH 7.0 with PHP 4.0.4pl1.

Re: [PHP] How do you keep your scripts secure?

2001-03-14 Thread Jerry Artman
Actually, I think the best thing is to offer good service and value to your customer . Then why would anyone want to invest the time to decompile your work to change it? On 3/14/01 8:30 PM, "Jack Dempsey" [EMAIL PROTECTED] wrote: Murph wrote: Hi. So, I've written all this nifty code

RE: [PHP] Anyone running their own Servers DNS versus renting space/services from an ISP or Hosting??

2001-03-14 Thread Andre Bajew
My thanks to all for the input. I will be taking a closer look at leasing a dedicated machine which will still give me what I am after, ie. ability to compile, install, upgrade, software when/where I need but without some of the sysadmin headaches. Thanks again to everyone !! Andre

RE: [PHP] Help please

2001-03-14 Thread Peter Houchin
Ok, thanks David for your help, now to change a character set in mysql do you have to recomplie it even though the char set i want to use is in the /usr/local/share/mysql/charsets directory? -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001

RE: [PHP] tutorials on good database design

2001-03-14 Thread Nold, Mark
- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are

Re: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Andrew Hill
While not directly involving PHP, you certainly open up a database table in Excel, just create it as a pivot table or data import from a DSN. You can create spreadsheets based on specific SQL queries and table joins, that Excel will work happily with. Hope this helps! Best regards, Andrew

Re: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Pierre-Yves Lemaire
Hello, The header will make netscape offer you a download of the file, and IE will open it in a excell format. For the display, just put your result in a nice html table and excell will convert it, it's quite simple. print "table"; print "thEvent/th"; ... print all your header here while

Re: [PHP] my page is in the error log

2001-03-14 Thread Yasuo Ohgaki
I was checking my error log and the entire post-PHP contents of a page was in my error log. I checked the access log and the page was requested but the client got back 0 bytes. very strange. It looks like it happened a few times. I'm using Apache 1.3.14 on RH 7.0 with PHP

Re: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Reinke Bonte
I know very little about php, but since you have already received a bunch of useless answers, I thought I add my guesswork. In php 4 you can access MS documents through Microsofts OLE interface. That means you can manipulate an .xls file as you would be able to in VisualBasic. You should look

RE: [PHP] Print MySQL DB as Exel File?

2001-03-14 Thread Jeff Oien
I didn't think they were useless. Jason said he would post some code if I wanted. Yes, I would like to see it. Pierre's post was very helpful and is the solution I will use for now. ren's posts were a little over my head. :) I'm sure you're really smart but not very helpful for someone new like

[PHP] URGENT: Can't see picture

2001-03-14 Thread Mike Yuen
I'm having a ton of trouble trying to get pictures to display. At first, I thought I had the problem fixed - but that's because the pictures reside on my machine. So instead of providing a path to the pictures like: c:/phpweb/userpics/ I tried absolute paths like ../userpics and that doesn't

RE: [PHP] URGENT: Can't see picture

2001-03-14 Thread Jason Lotito
It might not be it, but this stood out... ?PHP $filedir = "../userpics"; //check for jpg format if($fupload_type == "image/pjpeg") { //copy picture to new directory if(copy($fupload, "$filedir/$CUserName.jpg")) { //show picture // You forgot the closing '' tag...and you

[PHP] SVG Scripting

2001-03-14 Thread Ted Goranson
Friends-- I know (at least the claim) that PHP can do marvelous thing to Flash files (with libswf), presumably including "streaming" realtime feedback of a script's action. But I find the Flash user interface just buttugly and like LiveMotion instead. LM can readily create SVG. So two

[PHP-CVS] cvs: php4 /ext/standard credits.h

2001-03-14 Thread Jon Parise
jon Wed Mar 14 21:07:32 2001 EDT Modified files: /php4/ext/standard credits.h Log: Whitespace (spaces to four-column tabs) Index: php4/ext/standard/credits.h diff -u php4/ext/standard/credits.h:1.3 php4/ext/standard/credits.h:1.4 ---

[PHP] normal for Apache to hang?

2001-03-14 Thread Derek Sivers
Does your Apache hang? Is that normal? To have commands sitting for 1-2 minutes? Using Apache 1.3.17 + PHP 4.0.4pl1 + newest MySQL on a Debian Linux box. I use PHP for pretty much everything. So I have Apache set to parse all files as PHP. But that's never been a problem before. (This is a new

[PHP] Statistics function

2001-03-14 Thread Lauri Vain
Hello everybody, How does the behind the scenes work by PHP exactly go? Does the PHP thread remain active so long as the information is sent to the visitor? Or will PHP parse the code and send it to Apache which will send the data to the user itself? The reason that I'm asking this is I'm

[PHP] that whole system() thing again

2001-03-14 Thread Daniel Lynn
ok, figured my problem out.. apparently system() and exec() and all tha can't be called from php if it is runnig as an apache mod.. anyone know a way around this? -Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] that whole system() thing again

2001-03-14 Thread Jack Dempsey
Daniel Lynn wrote: ok, figured my problem out.. apparently system() and exec() and all tha can't be called from php if it is runnig as an apache mod.. anyone know a way around this? -Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] that whole system() thing again

2001-03-14 Thread Daniel Lynn
Well, no, I'm not sure... I, personally, am a graphic designer that used to program and somehow got suckered into programming again.. however, the person in charge of teh server came to this conclusion for us and wether he is righ or wrong, we have to face the fact that the exact same code to

Re: [PHP] that whole system() thing again

2001-03-14 Thread Jack Dempsey
ok, i gotcha...what's the call? perhaps there's an error with the actual call...do you have any code you can show? jack Daniel Lynn wrote: Well, no, I'm not sure... I, personally, am a graphic designer that used to program and somehow got suckered into programming again.. however, the

Re: [PHP] IMAP sort help.

2001-03-14 Thread Terrence Wong
Hi chris. The codes works on my linux box too. But retaining the codes, I proceed to connect to a imap server on a APPLE machine. Everything works except it stops at imap_sort. Is there a conflict between mac and linux?? terrence Chris Lee wrote: imap functions are notorious for not

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c php_bz2.h

2001-03-14 Thread Sterling Hughes
sterlingWed Mar 14 22:24:38 2001 EDT Modified files: /php4/ext/bz2 bz2.c php_bz2.h Log: Bit of a cleanup, added some inline docs, decreased the amount of memory used. Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.8

[PHP] Mail

2001-03-14 Thread Wade Halsey
Hi im having a slight problem with this mail class, it works fine up until the loop runs more than 13 times, is this a looping problem or a mail problem? Ive attatched the mail class and the code is below: include "./include/mime_mail.inc";$fp=fopen(TestFile.txt, "w"); /*loop certain

Re: [PHP] Creating Files Windows vs Unix

2001-03-14 Thread David Robley
On Thu, 15 Mar 2001 17:20, Andrew V. Romero wrote: Today I was uploading my completed script to my school's server at http://www.u.arizona.edu/~avr/school/questionanswer.phtml?questionFileN ame=testQA and noticed when I fill in the form and hit submit, I get a lot of errors such as unable to

Re: [PHP] SVG Scripting

2001-03-14 Thread Chris Adams
In php.general, you wrote: I know (at least the claim) that PHP can do marvelous thing to Flash files (with libswf), presumably including "streaming" realtime feedback of a script's action. It can't. PHP can generate Flash files directly (and using Ming - it beats libswf handily -

RE: [PHP] software localization with PHP

2001-03-14 Thread Don Read
On 14-Mar-01 Tao wrote: Kevin, Thanks for the reply. This will not solve my problem. The problem is, for some languages the sentence structure may be different. For example, the sentence may need to be, $greeting = "$first_name, welcome!" as opposed to, $greeting =

[PHP] php or Mysql for DATE?

2001-03-14 Thread Dhaval Desai
I want to have a posting column wherein people can post their messages and when a new message is posted the Curent date has to be added in the mysql database. Do u think I should use Php to generate the date or should I have mysql to generate the date. I am also going to allow people to search

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

2001-03-14 Thread Sterling Hughes
sterlingWed Mar 14 23:03:28 2001 EDT Modified files: /php4/ext/bz2 bz2.c Log: remove a little insanity. Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.9 php4/ext/bz2/bz2.c:1.10 --- php4/ext/bz2/bz2.c:1.9 Wed Mar 14 22:24:38

[PHP] Not Looping...

2001-03-14 Thread WreckRman2
I am having problems figuring out how to loop to show more then one record... Any help would be great... All I can get is the first record... Thanks... Code: ?php $db = mysql_connect("localhost", "root", "*"); mysql_select_db("indywebdesign",$db);

RE: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Smith
Try using ? $date = date ("Y-m-d H:i:s"); ? which formats the same as MySQL... -Original Message- From: Dhaval Desai [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 2:19 AM To: [EMAIL PROTECTED] Subject: [PHP] php or Mysql for DATE? I want to have a posting column wherein

Re: [PHP] Creating Files Windows vs Unix

2001-03-14 Thread David Robley
On Thu, 15 Mar 2001 17:41, Andrew V. Romero wrote: I believe it is a *nix server. I haven't looked into directory permissions before but that is an area I will definately look into. If this was a problem with the directory permissions, would the problem still disappear if a file with the

Re: [PHP] Not Looping...

2001-03-14 Thread David Robley
On Thu, 15 Mar 2001 17:48, WreckRman2 wrote: I am having problems figuring out how to loop to show more then one record... Any help would be great... All I can get is the first record... Thanks... Code: ?php $db = mysql_connect("localhost", "root", "*");

Re: [PHP] Statistics function

2001-03-14 Thread Chris Adams
On 14 Mar 2001 22:11:10 -0800, Rick St Jean [EMAIL PROTECTED] wrote: All through this process there is a live thread between your browser and the server. unless you send a cancel. One minor addition - the connection will close when you hit cancel but the PHP code can continue running if you

RE: [PHP] Array help

2001-03-14 Thread Don Read
On 15-Mar-01 Chris wrote: Hi, Is there a way to do an array_pop with php3? unset($dirs[sizeof($dirs)-1]); // php4 array_pop(); Regards, -- Don Read [EMAIL PROTECTED] -- If you are going to sin, sin against God, not the bureaucracy.

Re: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Robley
On Thu, 15 Mar 2001 17:49, Dhaval Desai wrote: I want to have a posting column wherein people can post their messages and when a new message is posted the Curent date has to be added in the mysql database. Do u think I should use Php to generate the date or should I have mysql to generate

[PHP] function() for mysql-enum-field-values-to-array

2001-03-14 Thread Dennis Gearon
Someone gave me the idea, and I coded it tonight use for making option lists of legal values from a mysql field that is enum'd. You don't have to know the values ahead of time. function-- function mysql_fetch_enums( $link,

Re: [PHP] Statistics function

2001-03-14 Thread Chris Adams
On 14 Mar 2001 21:39:05 -0800, Lauri Vain [EMAIL PROTECTED] wrote: How does the behind the scenes work by PHP exactly go? Does the PHP thread remain active so long as the information is sent to the visitor? Or will PHP parse the code and send it to Apache which will send the data to the user

[PHP] mail() problem

2001-03-14 Thread Vegard
I have php4 and Apache running on Windows 2000, and Im not able to get the mail-function to work. The mailsystem is on an other PC, and so I added SMTP=mailservers IP-address in the php.ini file. But still I get "Failed to connect" when I run mail(). I have heard that there can be a problem if

<    1   2