Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Chris Lee
try it. everyone will get a differnet answer, the only way we could tell would be to write three scripts and time them, you write three scripts and time it and you will get different results then us. -- Chris Lee [EMAIL PROTECTED] ""Marian Vasile"" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] FAQ

2001-03-15 Thread Chris Lee
people wouldnt use an FAQ, when you see three people ask the exact same question on one single day, you know they dont read the other post, or care. if they wont read the posts on the same day they wont read an FAQ, they keep posting. -- Chris Lee [EMAIL PROTECTED] ""Mal McKay"" <[EMAI

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

2001-03-15 Thread Dennis Gearon
I also have thought about improving that function to make the default first,or a switch anyway. >function mysql_fetch_enums( $link, $table_name, $field_name ){ > $mysql_datatype_field = 1; > if (!$result = mysql_query ("SHOW COLUMNS FROM $table_name LIKE >'$field_name'", $link ) ){ >$outpu

Re: [PHP] FAQ

2001-03-15 Thread Rick St Jean
The problem is that people are lazy or just to stupid to look for stuff. Sometimes yes, we just miss something small or it is under another section. I have done it as recently as tuesday with implode. But this is getting nuts. I guess I am frustrated because all the lists I am on are filled with

[PHP] Windows 2000, PHP, mySQL: multiple users and security

2001-03-15 Thread Alain Fontaine
Hello, My former school has invited me to teach a small course (32 hours) about web development, and I will of course teach PHP and mySQL. The question I now have is the following: How shall I best go about installing PHP and mySQL on a Windows 2000 computer (no Linux, sorry) so that each of the

Re: [PHP] FAQ

2001-03-15 Thread Christopher Allen
This is _and_ was _and_ ever shall be the state of mailing lists that help people. In the years that I have been on mailing lists, I have never seen a high volume list that wasnt filled with request after request for common knowledge. The problem is not stopping people from asking the same manual

[PHP] Paging a Recordset

2001-03-15 Thread James Crowley
Hi, I want to spread the results of a recordset over a number of pages. In ASP, I would have opened a connection with a client-side cursor... but with PHP (using it's ODBC functions), it only seems to be able to execute an SQL statement, and return all the results... which isn't very effic

Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Pierre-Yves Lemaire
You know I personnaly speak 3 language, French, English and Spanish. If you ask me to write a 3 page document, I would do it in french because I am more comfortable with it. I believe you should base your solutions on the language you and your team is comfortable with. You will end up with better

[PHP] Newbie question: Basic knowledge

2001-03-15 Thread Virtual Evil
Hi there! I'm really newbie and I have a major problem. I think i've installed the PHP stuff correctly, but I don't know how to insert a PHP feature into a ordinary HTML page. Actually i've tried to find it in the faq, but i didn't. so could please somebody tell me how it works, just combining a

[PHP-CVS] cvs: php4 /pear/XML Parser.php

2001-03-15 Thread Ulf Wendel
uw Thu Mar 15 09:34:07 2001 EDT Modified files: /php4/pear/XML Parser.php Log: If the creation of the parser fails, the constructor "throws" an error by returning a XML_Parser_Error object. That means the user will get an object of the type XML_Parser_

[PHP-CVS] cvs: php4 /pear/XML Parser.php

2001-03-15 Thread Ulf Wendel
uw Thu Mar 15 10:39:17 2001 EDT Modified files: /php4/pear/XML Parser.php Log: Cleanup on parse (fclose()). Index: php4/pear/XML/Parser.php diff -u php4/pear/XML/Parser.php:1.7 php4/pear/XML/Parser.php:1.8 --- php4/pear/XML/Parser.php:1.7Th

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Rick St Jean
Ha... you email is Virtual Evil" <[EMAIL PROTECTED] and you name is Christian, how is that for backwards. 1. make sure you are using the correct extention on the file name. .php or .php3 ... whatever you compiled. 2. use the around your php code. try in a file called test.php Rick

Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Mark Maggelet
On Thu, 15 Mar 2001 19:59:50 +0200, Marian Vasile ([EMAIL PROTECTED]) wrote: >I have 3 situations and I need an answer about what is faster... > >1. A PHP script that it's executed 10 times in a second, and have to >update >a a MySQL table. >1. A PERL script that it's executed 10 times in a second

[PHP] Perl Libraries and PHP

2001-03-15 Thread Matthew Hanna
Howdy All! I noticed in a FAQ somewhere that it is possible to call Java classes from PHP using the dl function. Is there anyway to make this work with Perl libraries? I work for a company that is moving to PHP. All their previous stuff are Perl scripts. We are bringing a lot of the Perl code

RE: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Marian Vasile
I don't think that JSP is slower than PHP... really... In fact I think JSP is a lot more faster just because JSP is compiled than executed... Marian Vasile IT Manager Schnecker van Wyk & Pearson www.investments.ro -Original Message- From: Mark Maggelet [mailto:[EMAIL PROTECTED]] Sent: Th

[PHP] Help needed - search problem

2001-03-15 Thread Fang Li
Hi, all: Table News __ NewsID | Keywords | News ---|---|-- 1 |word1,word2| News1 ---|-- |-- 2 | word2| News2 __ I want to search this table based on the Keywords. the code is: $split = explode(" ",$k

[PHP] Variable problems and strings PHP3

2001-03-15 Thread rm
I have problem maybe someone has a solutionsomething like variables within variables. I have a very long string composed of a number of variables. for examples $a= "do" $b= "do" $sting= $a." find the info then $b this and that then".$a." the report"; The problem is the value of $a may chang

RE: [PHP] Help needed - search problem

2001-03-15 Thread Boget, Chris
> If the keywords inputted from user are: "word2, word1", it > will reture News1 twice: That's because you are selecting all the records that match each single key word individually. > I want to search this table based on the Keywords. the code is: > $split = explode(" ",$keywords); > $Num = 0;

[PHP] Passing Multilayered Objects, by Reference, to Independent Sub-Objects

2001-03-15 Thread Andrew Immerman
Hello, The example that follows this little description should, as far as my understanding of PHP goes, demonstrate proper passing of multilayered objects, by reference, to independent sub-objects. The more understandable description, there exists a super-class that has two sub-classes. The fir

[PHP] mail() implementation problem

2001-03-15 Thread Mathieu Arnold
Hi The actual implementation of the mail function use sendmail -t and relies on sendmail to parse the headers to get the recipients. It would be great if it was possible to switch from this way of using sendmail to a more classic sendmail -f sender rcpt it should be quite easy, but I lack time t

AW: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Virtual Evil
thanks a lot for the feedback, but I must confess it didn't work. I tried to create a file, named it phpinfo.php, content: but W2k doesn't know how to open the file. Nevertheless i installed PHP the way it is described in the install.txt file. What am I doing wrong? Please help again!!! Chris

Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Michael Kimsal
Agreed. I think that JSP in some cases would be faster because the JVM is always running. Really depends on the structure of the code and what's it's doing. The first time a JSP is run it'll compile, so it's slow, but after compilation exists its fine. If you're doing database stuff, that'll pr

[PHP-CVS] cvs: php4 /pear/XML Parser.php

2001-03-15 Thread Ulf Wendel
uw Thu Mar 15 11:34:13 2001 EDT Modified files: /php4/pear/XML Parser.php Log: - made it work without warnings - handler methods are now configurable - added startHandler() and endHandler() "event" is the default handling mode and calls these met

RE: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Mark Maggelet
On Thu, 15 Mar 2001 21:36:52 +0200, Marian Vasile ([EMAIL PROTECTED]) wrote: >I don't think that JSP is slower than PHP... really... >In fact I think JSP is a lot more faster just because JSP is >compiled than >executed... So is php. Java has some strengths, but speed is definitely not one of the

RE: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Michael Conley
So how do I get the PHP script that stores the information in the My SQL database to not store "0"? a "0" value is a valid value for this variable. I don't want 0 to be the value of the variable if nothing is entered. Right now, the database is populated with 0's for the fields that are not fill

[PHP] Stripping Single Quotes

2001-03-15 Thread Elan
Hi, I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I strip the embedded single quotes) with a minimum of overhead? (In case you'r wondering: I created the quoted string to store it in MySQL, now I want to display the same string in a Webpage. Usually the strings I display do

Re: [PHP] Paging a Recordset

2001-03-15 Thread Web master
you can use 'limit x,y' in MySql. James Crowley wrote: > Hi, > I want to spread the results of a recordset over a number of pages. In ASP, > I would have opened a connection with a client-side cursor... but with PHP > (using it's ODBC functions), it only seems to be able to execute an SQL

Re: [PHP] Passing Multilayered Objects, by Reference, to Independent Sub-Objects

2001-03-15 Thread Andrew Immerman
Thursday, March 15, 2001 Hello, It seems, from further experimentation, that for such a reference to be properly established, some functionality/memory, specific to that referenced object, must be accessed in the same code space that defines the reference. Additionally, the referenced object mus

RE: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Johnson, Kirk
You may want to check the field definitions in the database table. If I recall correctly, some MySQL numeric field types default to "0" when an empty string gets written to them. The problem (and solution) may not be in the PHP script at all. Kirk > -Original Message- > From: Michael Con

[PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Jack Sasportas
I just finished coding everything on a project it was working (all nighter), and now something I just changed is causing this error "Can't redeclare already declared function in " There is no duplication of functions declarations. The thing is it is basically saying that no matter what function

Re: [PHP] FAQ

2001-03-15 Thread eschmid+sic
On Thu, Mar 15, 2001 at 01:40:43PM -0500, Rick St Jean wrote: > READ THE MANUAL BEFORE POSTING!! > READ THE MANUAL BEFORE POSTING!! > READ THE MANUAL BEFORE POSTING!! > if you are confused about this... READ THE MANUAL BEFORE POSTING!! Which manual? BTW your posting looks like yo

RE: [PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Johnson, Kirk
Are the functions declared in an include()'d file? Is this file being include()'d more than once? That's how I usually provoke this error :) Kirk > -Original Message- > From: Jack Sasportas [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 1:25 PM > To: php > Subject: [PHP] Hel

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Phillip Bow
Sounds like your mappings in you Web Server aren't setup correctly. Which webserver are you using? -- phill ""Virtual Evil"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > thanks a lot for the feedback, but I must confess it didn't work. > I tried to create a

RE: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Michael Conley
The default value is null in the database. -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 12:20 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable value doesn't stay "Null" You may want to check the field definitions in the database ta

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Elan) wrote: > I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I > strip the embedded single quotes) with a minimum of overhead? If there's no chance that the string could also contain legit single-quotes (such as as an apo

[PHP] Error working

2001-03-15 Thread Celestino Roberto Alejandro
Hello..i'm veri tired, and i am going to require your help. I need to make some operations with a cuadratic curve. But with the current php code... ... i get this error: Warning: java.lang.ClassNotFoundException: java.awt.geom.QuadCurve2D.Double Can anybody help me? , please if you c

Re: [PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Web master
I thought it will say, which function it can not redeclare. How many functions you have in the file? If it is small number, you could comment out each function and see which one is casuing the problem. Jack Sasportas wrote: > I just finished coding everything on a project it was working (all >

Re: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Web master
If you declare the fields as NOT NULL in mysql table, during insert, if you are nor insertint the field, it will default to 0 (for numbers) and 'blank' (for text fields). If you already have a table update column to 0 or blank and do 'alter table' to make the field not null Johnson, Kirk wrote

[PHP] Reminders

2001-03-15 Thread Dale Frohman
I have a web interface that will submit entries into a mysql db. These entries are things to do at certain times, an organizer. Is there a way for php to intelligently keep track of time and when the certain time of the event hits, to trigger an event - such as an email. Any help will be apprec

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread Web master
use the following code $vals=explode("'", "'abc'"); $your_value=$vals[0]; //I am little confused, if it is not working try index1 Elan wrote: > Hi, > > I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I > strip the embedded single quotes) with a minimum of overhead? > > (In

AW: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Virtual Evil
sorry, i've just configured that in the Windows 2000 "Internet Services Manager" the point: Standard website (i don't know if it is called like that in the English version, because i'm using the German one) if you can tell me what's missing, i would be very thankful! I've downloaded an apache serv

[PHP-CVS] cvs: php4 /pear/XML Render.php

2001-03-15 Thread Ulf Wendel
uw Thu Mar 15 11:44:47 2001 EDT Modified files: /php4/pear/XML Render.php Log: - removed all methods that did the same like the (parent) methods in XML/Parse.php - added todo to the inline docs After this there's only one method left at all which

AW: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Virtual Evil
ok, me again... (sorry for that guys) i added as the file supposed me to, the lines of this install.txt file to my httpd.conf file, and modified them to my directories. I've even started my apache server, but it doesn't work. hell! -Ursprüngliche Nachricht- Von: Virtual Evil [mailto:[EMA

Re: [PHP] Reminders

2001-03-15 Thread Mark Maggelet
Hi, I'm working on something like this too. I was hoping to be able to put something like this into an icapd server because my app might have been able to use mcal. It was too much effort though, so I'm looking at doing it with cron. Let me know if you find a more creative way of doing it. - Mar

[PHP-CVS] cvs: php4 /pear/XML Parser.php

2001-03-15 Thread Ulf Wendel
uw Thu Mar 15 12:39:14 2001 EDT Modified files: /php4/pear/XML Parser.php Log: - put the todo list into the inline docs Index: php4/pear/XML/Parser.php diff -u php4/pear/XML/Parser.php:1.9 php4/pear/XML/Parser.php:1.10 --- php4/pear/XML/Parser.php:

[PHP] error_log creates duplicate entries

2001-03-15 Thread Marcel Levy
I get this in my error log: [Thu Mar 15 12:48:03 2001] [error] Strange [Thu Mar 15 12:48:03 2001] [error] Strange [Thu Mar 15 12:48:03 2001] [error] Strange when I make a single call to error_log(): I'm running 4.0.3pl1, Apache 1.3.14 on 2.2.16-22smp. Any ideas? -Marcel Marcel Levy [EMAIL P

Re: [PHP] FAQ Ignor if you are tired of this.

2001-03-15 Thread Rick St Jean
This was sent off-list. I respect that. And it voices some opinions. I am not flaming newbie questions. I am a newbie myself. I do have a problem with the same questions coming up 3 times in a row. With developers asking people to do simple logic. And people not looking for answers before they

[PHP] passing variables from one form to another

2001-03-15 Thread Don
Hi, I have a PHP script (script_one.php) that creates a small form containing a table of links. In my script I declare an array, $myarray[$total_links], of the same size as the number of links. Each link is coded as such: This way, I pass the both the value of my array at elemnt "i" and whic

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread eschmid+sic
On Thu, Mar 15, 2001 at 09:40:19PM +0100, Virtual Evil wrote: > I know i'm very idiotic, but if you don't help me, who then??? Ask Erwin Teufel (engl. devil) or radio Eriwan. -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.de/ -- PH

AW: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Virtual Evil
how funny! Erwin Teufel... deutsche Politiker werden mir da wohl kaum helfen konnen. Ich verstehe nicht, wieso du hier permanent versuchst Fragen von neuen Menschen total nieder zu machen. Ich mochte gar nicht wissen, was du zu einer Zeit als du Anfanger warst fur Fragen gestellt hast, und bestimm

Re: [PHP] FAQ Ignor if you are tired of this.

2001-03-15 Thread Lars Falsig
The "flaming" answer was just "getting air". I've spend the last 2 hours reading ALL 499 postings in these forums. And learned a LOT more than spending 20 hours in the manual. Also some basic technics where quite usefull. Your'e right about simple HTML, but if You want to use input from Your site

[PHP] MSSQL 2000 in PHP4... Is this possible?

2001-03-15 Thread Brandon Orther
Hello, I just finished Installing Win2k Advanced Server and And MsSql 2000. I have apache as my web server and wanted to know the correct procedures to get PHP4 connected to a MsSql database. if anyone has gone through this before please hook me up with the info. Thank you, --

[PHP] fopen to validate a URL

2001-03-15 Thread Kenneth R Zink II
How would I use FOPEN to validate a URL? here is what I already have and it's not working properly. $url=$row[url]; echo "Old URL = ".$url.""; $fp = @fopen($url,"r"); if ($fp){ echo "Valid URL"; }else{ echo "URL IS NOT VALID"; $url="http://"; } echo "New URL = ".$url.""; Kenneth R Zink I

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread eschmid+sic
On Thu, Mar 15, 2001 at 10:15:49PM +0100, Virtual Evil wrote: > how funny! Erwin Teufel... deutsche Politiker werden mir da wohl kaum helfen > konnen. Ich verstehe nicht, wieso du hier permanent versuchst Fragen von > neuen Menschen total nieder zu machen. Ich mochte gar nicht wissen, was du > zu

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

2001-03-15 Thread Mig
Kathleen Ballard wrote: > Mig, > This is some code I was sent when I needed to display images that were > located outside of the web dir. > > ~~ > If you want the images outside the web-tree, your image tag would be more > like this: > > > > Then display.php3 would look not unlike: > >

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

2001-03-15 Thread Daniel Beulshausen
dbeuThu Mar 15 12:45:50 2001 EDT Modified files: /php4/ext/iconv iconv.c Log: fix win32 build Index: php4/ext/iconv/iconv.c diff -u php4/ext/iconv/iconv.c:1.8 php4/ext/iconv/iconv.c:1.9 --- php4/ext/iconv/iconv.c:1.8 Fri Mar 9 18:03:25 2001 +++ php4/e

[PHP] RE: [PHP-DB] validating checkboxes

2001-03-15 Thread Stewart Taylor
The javascript syntax is document.form_name.elements['preq[]'][indx] -Stewart -Original Message- From: Adv. Systems Design [mailto:[EMAIL PROTECTED]] Sent: 15 March 2001 15:39 To: PHP List Subject: [PHP-DB] validating checkboxes Hello all: I have to validate that AT LEAST ONE check

Re: [PHP] fopen to validate a URL

2001-03-15 Thread Kenneth R Zink II
Well I changed the code to this expecting a true or false response (1 or 0) $url=$row[url]; echo "Old URL = ".$url.""; $fp = fopen("$url","r"); echo "fp = ".$fp.""; //Debug line to see what $fp is returning switch ($fp){ case 1: echo "Valid URL"; break; case 0: echo "URL IS NOT VALID"; $url="

RE: [PHP] fopen to validate a URL

2001-03-15 Thread ..s.c.o.t.t.. [gts]
try @fopen(...) prepending a '@' to the mysql funcs will suppress error messages by those functions... maybe it'll work for fopen also. never tried it, though. > -Original Message- > From: Kenneth R Zink II [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 4:58 PM > To: PHP >

RE: [PHP] need some help..

2001-03-15 Thread Andreas D. Landmark
At 14.03.2001 00:44, you wrote: >Why, Don't you use the ftp functions to ftp everything over, instead of >reading in all the files. If you can get telnet access you could ftp them >straight from your telnet connection. > > >At 06:31 PM 3/13/01 -0500, [EMAIL PROTECTED] wrote: > >Im moving servers

Re: [PHP] Newbie question: Basic knowledge

2001-03-15 Thread Lars Falsig
As one of the authors of the official PHP-manual, eschmid could be a bit more understanding to newbees, instead of scaring people from PHP to ASP !!! Lars <[EMAIL PROTECTED]> skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, Mar 15, 2001 at 10:15:49PM +0100, Virtual Evi

Re: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread NHans
Assuming that column MY_TABLE.MY_NUMERIC_FIELD allows NULLs: INSERT INTO MY_TABLE (MY_NUMERIC_FIELD, MY_OTHER_FIELD) VALUES ('', 'some_other_value') will insert a 0 into the column MY_NUMERIC_FIELD in MySQL and many other databases. To insert NULL, the SQL must read INSERT INTO MY_TABLE (MY_NUME

RE: [PHP] need some help..

2001-03-15 Thread ..s.c.o.t.t.. [gts]
you could just tar/gzip up the entire tree, open a regular FTP session and FTP it all over in one shot. trying to write the whole thing in PHP is a waste of time if the sole purpose is to move files as easily and quickly as possible. > -Original Message- > From: Andreas D. Landmark [ma

[PHP] PostToHost

2001-03-15 Thread Boget, Chris
After hours of searching :/ I was able to find Rasmus' PostToHost() function. It's working fine, for the most part. It's posting to the page and printing what it gets back as part of the page/code that calls the function. This is most likely expected behavior, just not what I expected. However,

RE: [PHP] passing variables from one form to another

2001-03-15 Thread ..s.c.o.t.t.. [gts]
the same way that you passed information over to the second page. > -Original Message- > From: Don [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 4:09 PM > To: php list > Subject: [PHP] passing variables from one form to another > > > Hi, > > I have a PHP script (script_

RE: [PHP] Error working

2001-03-15 Thread ..s.c.o.t.t.. [gts]
this is a PHP list. your problem is with java, not PHP > -Original Message- > From: Celestino Roberto Alejandro [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 3:34 PM > To: Lista PHPGral > Subject: [PHP] Error working > > > Hello..i'm veri tired, and i am going to require

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

2001-03-15 Thread Richard Lynch
> 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? You could buy the Zend Encoder: http://www.zend.com/store/products/zend-encoder.php Either stand-alone or as part of the Developer Suite package deal. You

RE: [PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread ..s.c.o.t.t.. [gts]
try using include_once() and require_once() in place of include() and require() also, make sure you havent defined any functions that match PHP internal funcs. > -Original Message- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 3:29 PM > To: php > Subj

[PHP] Interactive Shells

2001-03-15 Thread Clayton Dukes
Can PHP work with interactive shells such as telnet like Expect does?   ie: waitfor "ogin:" put $login waitfor "assword:" put $password     etc.     TIA! :-)       Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork Solutions EngineerInternetwork Management EngineerThrupoint, Inc.Tampa, FL(c) 904

[PHP] Has anyone got MSSQL2000 to connect and work properlly?

2001-03-15 Thread Brandon Orther
Hello, I am trying to get PHP4 to connect to Microsoft SQL2000. All I want to know is if it is possible on a Win Box and a Linux box for server. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.we

RE: [PHP] Help! Can't redeclare already declared function in

2001-03-15 Thread Keith Vance
how about if (!$included[filename]) On Thu, 15 Mar 2001, ..s.c.o.t.t.. [gts] wrote: > try using include_once() and require_once() > in place of include() and require() > > also, make sure you havent defined any functions > that match PHP internal funcs. > > > > -Original Message- > > F

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

2001-03-15 Thread ..s.c.o.t.t.. [gts]
since PHP is executed before any otuput is shown to the browser, all you have to do is keep a server between your code and the other person. unless i am horribly mistaken, you can turn off options to allow people to view PHP source code via their browser. > -Original Message- > From: R

RE: [PHP] Interactive Shells

2001-03-15 Thread ..s.c.o.t.t.. [gts]
of course. if it supports sockets then i dont see why it wouldnt work with a back-n-forth exchange of information over those sockets. php.net/sockets look how much smaller that URL is than all the text you typed out in the message :) always check the online manual first. -Original Message

RE: [PHP] Has anyone got MSSQL2000 to connect and work properlly?

2001-03-15 Thread ..s.c.o.t.t.. [gts]
of course it's possible... :) > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 5:33 PM > To: PHP User Group > Subject: [PHP] Has anyone got MSSQL2000 to connect and work properlly? > > > Hello, > > I am trying to get PHP4 to conn

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

2001-03-15 Thread Emiliano Heyns
emile Thu Mar 15 13:57:49 2001 EDT Modified files: /php4/ext/midgard attachment.c Log: closing file after serving it. Index: php4/ext/midgard/attachment.c diff -u php4/ext/midgard/attachment.c:1.10 php4/ext/midgard/attachment.c:1.11 --- php4/ext/midgard/

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

2001-03-15 Thread Keith Vance
The Zend encoder seems cool, but for $2400? What happened to the Zend Compiler, is that what the Zend Encoder is? The Zend Encoder would definetly be worth it if you were selling your code, but I haven't tried it out. Keith On Thu, 15 Mar 2001, ..s.c.o.t.t.. [gts] wrote: > since PHP is executed

[PHP] I can't install PHP4

2001-03-15 Thread Norberto Rojas
Hi: I've trying to install PHP4 without good results: The steps i follow were: 1: gzip -d < php-4.0.4pl1.tar.gz | tar xvf - 2: cd php-4.0.4pl1 3: ./configure --with-nsapi=/usr/netscape/server4/ --enable-tracks-vars --enable-libgcc (because i want to uset with iplanet web server) 4: ma

Re: [PHP] I can't install PHP4

2001-03-15 Thread Keith Vance
make a file called, test.php with these lines in it: stick it into your web server directory and point a browser at it, if it doesn't work send error messages. Keith On Thu, 15 Mar 2001, Norberto Rojas wrote: > Hi: > >I've trying to install PHP4 without good results: > The steps i follo

[PHP] Executing a CGI script.

2001-03-15 Thread Brandon Orther
Hello, Is there a way to execute a CGI script while in php? Brandon Orther -- 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] How do you keep your scripts secure?

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

Re: [PHP] Executing a CGI script.

2001-03-15 Thread Jack Dempsey
Brandon Orther wrote: > > Hello, > > Is there a way to execute a CGI script while in php? > > Brandon Orther > > -- > 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 administra

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

2001-03-15 Thread Jack Dempsey
> that will protect against people typing the url in their broswer to get the > code. i'm not sure what you're talking about here...php code is parsed on the server then the html is sent to the browseronly way to get code is if there's a .phps copy of the file accessible on the web > Let's

Re: [PHP] Executing a CGI script.

2001-03-15 Thread Jack Dempsey
should probably clarify"call to anything" is kinda vague ;-) system lets you perform a command like you are on the command line... http://php.net/manual/en/function.system.php http://php.net/manual/en/function.virtual.php check out these pages for more info jack Jack Dempsey wrote: > > Bran

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

2001-03-15 Thread Johnson, Kirk
If the include file has an extension that is not recognized by the server as being a "PHP" file, the server will simply serve it up as text. So, your file index.php is recognized as being a PHP file, it gets passed to PHP which parses and compiles it and returns it to the server, which passes the

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

2001-03-15 Thread Murph
> if someone knew the name of your include file, and it was under the > webserver root (for instance, the same folder) then yes, its like any > other file..you can get around this by changing your php.ini > include_path variables and putting the files there, outside the > webserver directory

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

2001-03-15 Thread Murph
> If the include file has an extension that is not recognized by the server as > being a "PHP" file, the server will simply serve it up as text. So, your > file index.php is recognized as being a PHP file, it gets passed to PHP > which parses and compiles it and returns it to the server, which pas

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

2001-03-15 Thread Keith Vance
"... hate to think that someone could come along and just use it all for free" So you don't really care to contribute to the Open Source community? We would love to have your passwords. I would highly recommend setting an include path outside the web server document root and store you files with p

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

2001-03-15 Thread Jack Dempsey
yes your code should be safe, at least from people trying to look at it over the web...people on the server, well, that's another story...anyone who can get into your www directory, and depending on the perms of your files (if they have world readable) can view them... i originally made some files

[PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
Hey everyone,   I just upgraded from php v4.03pl1 to php 4.04pl. Everything seems to work okay except my IMP/Webmail.   When I load the url, I get: Fatal error: Call to undefined function: page_open() in /home/www/websites/horde/imp/index.php3 on line 15   Is this something that is no longer

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
Nevermind. The php.ini was replaced which changed my include path. Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (h) 904.292.1881 - Original Message - From: Clayton Dukes To: [

Re: [PHP] Call to undefined function

2001-03-15 Thread Jack Dempsey
clayton, checking php.net for 'page_open()' gives me nothingalso, why is it .php3 if you're on php 4.04? jack > Clayton Dukes wrote: > > Hey everyone, > > I just upgraded from php v4.03pl1 to php 4.04pl. > Everything seems to work okay except my IMP/Webmail. > > When I load the url, I g

[PHP] Search Engines?

2001-03-15 Thread Wee Chua
Hi everyone, Could any one tell me what is the search engine you always use? Thank. Calvin -- 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]

RE: [PHP] creating array on variable variable (bug?)

2001-03-15 Thread Mahmoud Abu-Wardeh
try this: (you need to escape the variable part of the variable variable with {}) -Original Message- From: Tobias Talltorp [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 00:15 To: [EMAIL PROTECTED] Subject: [PHP] creating array on variable variable (bug?) Hello all. Howcome I can cre

[PHP] creating array on variable variable (bug?)

2001-03-15 Thread Tobias Talltorp
Hello all. Howcome I can create an array on a variable variable using array(), but not in a for-loop (See code below)? In the for-loop I get this error message: Fatal error: Cannot use [] for reading in E:\Inetpub\wwwroot\testscript\sessions\test4.php on line 6 Is this a bug or do I have the

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
it's an older app. But I got it. Thanks :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (h) 904.292.1881 - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Clayton Duk

Re: [PHP] php editors

2001-03-15 Thread David Robley
On Fri, 16 Mar 2001 03:24, McShen wrote: > I am looking for good php editors. Currently, i am using PHP coder. It > highlights syntax and checks my syntax. It's also executes my PHP > codes. Are there any editors like that? I just want a editor that > highlights my code and check my syntax. > > re

Re: [PHP] FAQ

2001-03-15 Thread David Robley
On Fri, 16 Mar 2001 03:34, Rick St Jean wrote: > It is there a list of most frequently asked questions? > It seems that people ask the same questions, again and again, > they do not READ THE MANUAL. Yes I have asked 2 stupid > questions, but I really did search and I am reading my manuals, > the

Re: [PHP] FAQ

2001-03-15 Thread Keith Vance
How many times are people going to complain about no-brainer questions being posted to the list. The fact of the matter is people are going to post things on the list without reading the manual or the FAQ. It goes with the territory. It annoys me too, but there is no good solution for the problem.

Re: [PHP] FAQ

2001-03-15 Thread Tobias Talltorp
Just something I notices... At the bottom of the page there is a link to the mailing list (well, not directly to the list, but anywho): PHP General Mailing List (http://www.php.net/) Why not add this aswell: Before posting, check the PHP Generall Mailing List Archive (http://marc.theaimsgroup.com

Re: [PHP] creating array on variable variable (bug?)

2001-03-15 Thread Tobias Talltorp
Thanks a million man! This did the trick... Best Regards, // Tobias Talltorp ""Mahmoud Abu-Wardeh"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try this: (you need to escape the variable part of the variable variable > with {}) > > $name = "talltorp"; >

<    1   2   3   >