[PHP] Re: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Jocelyn Fournier
Hi Steven, Some precisions : after taking a look at my mail, I noticed the very first time I saw this error was with PHP 4.2.1 and MySQL 4.0.2 (reported on this list on 27 june 2002). Regards, Jocelyn - Original Message - From: "Steven Roussey" <[EMAIL PROTECTED]> To: "'Jocelyn Fournie

[PHP] Re: Apache not parsing without .php on url?

2002-09-19 Thread Ivo
It seems to me that the answer is in your own posting > AddType application/x-httpd-php .php .php the only type that will be served by php if you add AddType application/x-httpd-php .txt then txt will be also served regards Ivo "Stefan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

[PHP] Re: custom user login

2002-09-19 Thread Ivo
You could use $_SESSION['myvar'] to register your session instead of session_register()/session_unregister()/session_is_registered() functions. Then you could use it as a normal variable. Do not use glodal $_SESSION declaration in your code. You could find more info at http://www.php.net/manual/

[PHP] Re: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Zak Greant
Hello Jocelyn and Steven, Could either or both of you submit a bug report at http://bugs.php.net/? If you follow the instructions there, it will greatly help us in tracking down the issue! Cheers! Zak Greant PHP QA Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Need some help please.

2002-09-19 Thread Simon Angell
With my limited knowledge (i.e none, lol) i was wondering if you are able to give me the code you use to do it. i will then play around with it t get Canberra, is that ok? doesn't matter if not. -- Cheers - Simon Angell Canberra ACT www.canb

Re: [PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
Ahah! That's what I was thinking, thatnks for helping me clear that up! John Holmes wrote: >>I have a chat script that I downloaded and according to the license I >>can modify it as much as I want, and I'm a little stuck on a simple >>modification I want to make. When you type in a message it st

RE: [PHP] Script Modificaton question

2002-09-19 Thread John Holmes
> I have a chat script that I downloaded and according to the license I > can modify it as much as I want, and I'm a little stuck on a simple > modification I want to make. When you type in a message it stores in in > a file called text.php and then the chat page does an include call for > the tex

[PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
I have a chat script that I downloaded and according to the license I can modify it as much as I want, and I'm a little stuck on a simple modification I want to make. When you type in a message it stores in in a file called text.php and then the chat page does an include call for the text.php

[PHP] Re: syntax question - eregi()

2002-09-19 Thread Philip Hallstrom
If memory serves, $match will contain an array whose 0th element is the entire string and whose 1st element contains whatever is matched in the first (), 2nd element matches the second () and so on. Check the manpage for more... and when testing things like this out try adding the following for

Re: [PHP] Stripping specific tags

2002-09-19 Thread Justin French
on 20/09/02 1:14 PM, John Holmes ([EMAIL PROTECTED]) wrote: > I hope not. That would be a worthless function to have. Did you read my > post? The basic idea is validation is to allow what you _know_ is good, > and kill the rest. You don't kill a couple things you know are bad, then > assume the r

RE: [PHP] Stripping specific tags

2002-09-19 Thread John Holmes
> That's what I thought the answer would be. I guess I will have to see if I > can create a function to add to the next release of PHP to do this, as > there > certainly seems to be quite a demand for it, according to the archives > anyway. I hope not. That would be a worthless function to have.

[PHP] syntax question - eregi()

2002-09-19 Thread Anthony Ritter
I'm having difficulty understanding what the array does or refers to in the eregi() function using php. Listing below are returned strings with [0] [1] [2] .. (.*) ... quick brown fox jumped over the lazy dog // output with $ma

RE: [PHP] Access > MySQL

2002-09-19 Thread Peter Houchin
yeah there is tis called Access-to-MySQL (http://www.convert-in.com/acc2sql.htm ) ...here's some specs on it Features All MS Access data types and attributes are supported Works with all versions of Unix and Windows MySQL servers Stores MS Access database into a dump file (see C

[PHP] Access > MySQL

2002-09-19 Thread Liam MacKenzie
Yeah, I know this doesn't have much to do with PHP... does anyone know of a tool that automatically converts an access database to MySQL readable data? Thanks a heap! Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session & cookies

2002-09-19 Thread Jeff Bluemel
> Jeff Bluemel wrote: > > >I want to force it to use a cookie that points to a transparent SID on > >my system. > > > > Can you elaborate on this? I have no idea what you mean. for some reason when I was reading the documentation on sessions on php.net I thought it stated that it was possible to

[PHP] Re: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Jocelyn Fournier
I've always used pconnect. - Original Message - From: "Steven Roussey" <[EMAIL PROTECTED]> To: "'Jocelyn Fournier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "'Mysql'" <[EMAIL PROTECTED]> Sent: Friday, September 20, 2002 2:38 AM Subject: RE: MySQL errors in newer PHP 4.2.3 > Hmm, do y

[PHP] RE: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Steven Roussey
Hmm, do you use pconnect or connect? I noticed someone changed our PHP script to use persistent connections (likely why the server is running slower). I am wondering if a cancelled connection is being reused or if it just is a more general bug in the mysql client code in PHP Sincerely, Stev

[PHP] MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Steven Roussey
Since updating to 4.2.3, we have been getting intermittent errors of "Commands out of sync". Anyone else see this? Sincerely, Steven Roussey http://Network54.com/?pp=e php,sql,query -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fopen()

2002-09-19 Thread Jason Morehouse
Yup! On Thu, 19 Sep 2002 16:43:48 -0700, Donahue Ben wrote: > I have a php script that tries to write files in a > particular directory. When the script writes files > the ownership is "apache". The problem I have is the > particular directory that the script is trying to > create files in, it

Re: [PHP] Good OO PHP resources? Open Source APIs?

2002-09-19 Thread Michael Sims
On Thu, 19 Sep 2002 00:50:56 -0400, you wrote: >By doing so I want more and more of my PHP to be purely OO. I'm fairly >aware of how to write my own classes for data but are their any frameworks >out there to do the foundation stuff already? Have you looked at PEAR? It comes with the PHP distr

Re: [PHP] adding unix account via system command

2002-09-19 Thread tim tom
Dear Marek, Where do find that? I am no C programmer. -- tim --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > It's a shell script, and your shell drops root privileges. Use a shell > that doesn't or use a C-wraper. > > tim tom wrote: > > >Dear Pete, > >Yes, apache runs as nobody. But I have s

[PHP] custom user login

2002-09-19 Thread Daniel Negron/KBE
Hi all, I used a script posted in here awhile ago from http://www.devshed.com/Server_Side/PHP/UserAuth/page1.html basic tutorial on how to make php session logins. How can I customize this script so that it is specific to each user. can I add $f_user.php from the header, or will that output t

[PHP] MUST READ: ALL MySQL Newbies!

2002-09-19 Thread Shane
If you are a MySQL newbie you need to read this! I just screwed up big time and lost about 1 hour of data in a time sensitive application by using TINYINT as my ID field. TINYINT will only allow up to 255 records in a MySQL DB. Please, if you don't know the EXACT differences between all the di

[PHP] java in php4 on debian testing distribution?

2002-09-19 Thread Monique Y. Herman
I'd like to play with using java classes from within php, as is described in http://www.php.net/manual/en/ref.java.php ... I'm using the apache and php4 packages from the debian testing distribution. All of the documentation I've found on the web about installing the java extension seems to be or

Re: [PHP] fopen()

2002-09-19 Thread Brad Bonkoski
I would say that is the best way, or if you have other information there, write to abother directory that is owned by "apache" -Brad Donahue Ben wrote: > I have a php script that tries to write files in a > particular directory. When the script writes files > the ownership is "apache". The pr

Re: [PHP] Encrypting/Decrypting Data

2002-09-19 Thread Evan Nemerson
If memory serves, $td is returned by mcrypt_module_open() http://www.php.net/mcrypt-module-open On Thursday 19 September 2002 00:54, [-^-!-%- wrote: > Hello. > > How do you decrypt a data that's encrypted with crypt($data). > > Now, the php documents says crypt() is a one-way crypting functio

[PHP] fopen()

2002-09-19 Thread Donahue Ben
I have a php script that tries to write files in a particular directory. When the script writes files the ownership is "apache". The problem I have is the particular directory that the script is trying to create files in, it cannot, because it does not own that directory and it is not part of th

[PHP] php_mcrypt library

2002-09-19 Thread [-^-!-%-
I've looking for pre-built php_mcrypt library. Does anyone know where I can get one. I'm basically looking for something that would not require me to reload or recompile php [shared hosting issues...]. The environment is : PHP 4.1.2/Linux /Apache 1.3.26. Any help would be greatly appreciated.

RE: [PHP] Loop through POST-result

2002-09-19 Thread John Holmes
> I would like to get all the data from a POST-result into an array. > > Is there a function like that adds all the vars from the post into an > array > where Key is the name of the form-field and Value is the value entered in > this field. > > Like this: > array('firstname' => 'fname', 'lastnam

RE: [PHP] Stripping specific tags

2002-09-19 Thread John Holmes
> I was wondering is there a way to strip ONLY the tags that you specify > from > a page, rather than having to include all the tags you do want (using > strip_tags() ) A regular expression or str_replace() would be best for this. Realize this isn't a good method, though. What if you're trying

RE: [PHP] PHP Execution Timer

2002-09-19 Thread Beau Hartshorne
This function: function getmicrotime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } is provided on this page: http://www.php.net/manual/en/function.microtime.php and is needed for the code below to work properly. Beau > $timerOn = 1; // s

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
I was wrong, it is passing $bname. I have got it down to a syntax error by using. $sql = "SELECT * FROM bugs WHERE bname = {$_GET['bname']}"; gary Gary wrote: > I don't think it is being passed. I think I am going to have to figure > out how to pass bname in the link using pear.With pear bn

Re: [PHP] session & cookies

2002-09-19 Thread Chris Shiflett
I also just noticed that you have session.use_only_cookies = 1, so unless you get the session ID back in a cookie, the session will restart. Chris Shiflett wrote: >> I've got the following options in my php.ini, but the system doesn't >> seem to >> ever use a cookie, and the sessions don't die

Re: [PHP] session & cookies

2002-09-19 Thread Chris Shiflett
Jeff Bluemel wrote: >I want to force it to use a cookie that points to a transparent SID on >my system. > Can you elaborate on this? I have no idea what you mean. >I've got the following options in my php.ini, but the system doesn't seem to >ever use a cookie, and the sessions don't die. (that

[PHP] session & cookies

2002-09-19 Thread Jeff Bluemel
OK guys... here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got sessions setup. however, it seems to be using an SID attached to the URL, and I want to force it to use a cookie that points to a transparent SID on my system. I've got the following options in my php.ini, but the s

Re: [PHP] Stop PHP from displaying Content-Type info

2002-09-19 Thread Chris Shiflett
php -q >I just installed a new PHP server, and forget how to stop it from >displaying the page Content-type info at the top of the page. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Chris Shiflett
Here is a function I sometimes use to log that will show you the time that has passed since the last log entry. I find it very useful, so that you can test a section of code's execution time simply by surrounding it with calls to this function. Maybe it will be useful to you. Chris function

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
I don't think it is being passed. I think I am going to have to figure out how to pass bname in the link using pear.With pear bnname=0 while ($row = $res->fetchRow()){ $bname = $row[0]; $owner = $row[1]; echo " $bname by $owner "; }

Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone
There's obviously something wrong with the way you're handeling the new variable. Do extract($_GET); and go back to the way you were handeling it before. echo $bname; -Kevin - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002

Re: [PHP] Calling on functions in a url

2002-09-19 Thread Peter J. Schoenster
On 19 Sep 2002 at 16:13, Tom Ray wrote: > I have a question that I have yet to figure out. Let's say I have a PHP > script with multiple fuctions, how do I call on the script to perfom > specific functions through a url? Ex: > http://www.sample.com/script.php?fucntion1 I wouldn't say this is a s

[PHP] Re: Calling on functions in a url

2002-09-19 Thread Stefan
http://www.sample.com/script.php?fucntion=1 http://www.sample.com/script.php?fucntion=2 Then do a 'case' or 'if' on $_GET['fucntion'] "Tom Ray" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a question that I have yet to figure out. Let's say I have

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
Tried that already and get an error using $_GET['bname'] T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING using $_GET[bname] without the quotes Undefined index: bname Gary Kevin Stone wrote: > Pass the vars the same way. Use $_GET['bname'] to retrieve the var. >

[PHP] Stop PHP from displaying Content-Type info

2002-09-19 Thread [-^-!-%-
I just installed a new PHP server, and forget how to stop it from displaying the page Content-type info at the top of the page. Please help. =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. --

[PHP] Calling on functions in a url

2002-09-19 Thread Tom Ray
I have a question that I have yet to figure out. Let's say I have a PHP script with multiple fuctions, how do I call on the script to perfom specific functions through a url? Ex: http://www.sample.com/script.php?fucntion1 TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Click....download and update

2002-09-19 Thread Christian Ista
> You'll need to prompt the download by sending the appropriate headers. > Something like.. > > http://www.mydomain.com/downloadmyfile.php>Download > > header("Content-Type: application/zip"); > header("Content-Disposition: attachment"); > readfile("file.zip"); > ?> It's not only .zip file but

Re: [PHP] Click....download and update

2002-09-19 Thread Kevin Stone
Christian, You'll need to prompt the download by sending the appropriate headers. Something like.. http://www.mydomain.com/downloadmyfile.php>Download This is untested but from my experience it should work. Good luck, Kevin - Original Message - From: "Christian Ista" <[EMAIL PROTECT

Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone
Pass the vars the same way. Use $_GET['bname'] to retrieve the var. -Kevin - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 1:54 PM Subject: [PHP] pass var through URL String > Hi All, > Using a link $bname I could pass

[PHP] pass var through URL String

2002-09-19 Thread Gary
Hi All, Using a link $bname I could pass $bname to another page and using "SELECT * FROM table WHERE bname = \"$bname\""; I could get all I need from the db on the new page. Now that globals have been turned off and superglobals are replacing them. How should I pass and catch the var? TIA Gar

[PHP] FPDF and MySQL

2002-09-19 Thread Chuck Payne
Hi, I found a free pdfclass called FPDF http://www.fpdf.org, that I can use with PHP to create pdf files with. Before someone tells me "Read The Manual", I have read their page and used Google to search for notes on how called mysql into a PDF and I am lost. Does anyone know where there is a tuto

[PHP] Click....download and update

2002-09-19 Thread Christian Ista
Hello, I'd like when I click on a link http://www.website.com/file.zip> update a table and start the download without change the page. Could you tell me how to do ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is php even right for this design?

2002-09-19 Thread David Buerer
1) Large Includes 200K of includes? Piece of cake! Remember, it is the server that is doing all of the work, not your clients. The issue is how many requests can your server simultaneously process and is there enough overhead to do it. With respect to speed, your server will cache the files aft

Re: [PHP] In a shared environment...

2002-09-19 Thread 1LT John W. Holmes
> Relative newbie here, and I am just coming to grips with something that I > think is a very bad thing... Please tell me I am wrong. > > When using PHP, it is the Apache user that actually performs things, and > therefore needs permissions. For example, if I want to write data to a file, > I have

Re: [PHP] about $_post

2002-09-19 Thread 1LT John W. Holmes
> $_POST[ID] > Since there are no quotes around the variable name ID and no dollar sign in > front of it, PHP will look for a constant named ID and if one is not found > it will blow chow. Depending on your error_reporting() level whether this "warning" is reported or not. Better to not use this

Fw: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Kevin Stone
You could concievably use the get_defined_vars(); function to impliment a forced-variable-case machine at the start of your script. http://www.php.net/manual/en/function.get-defined-vars.php -Kevin - Original Message - From: "Georgie Casey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: [PHP] Re: PHP source code

2002-09-19 Thread Support @ Fourthrealm.com
A solution that I use is to put important information in an include file, and store it in a User-Authentication protected folder, ie. /admin/ This adds one extra layer of protection to your files, and keeps the average joe-surfer from being able to get the files. Peter At 08:24 PM 9/19/2002

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: > > yea, i probably didnt make that clear > its the variables NAMES that he can't gurantee to be lowercase > eg > hell pass http://www.server.com/test.php?NAME=John&IDNumber=12 > when im expecting $name and $idnumber $lowerVars = array(); foreach( $_POST as $key => $value )

Re: [PHP] PHP source code

2002-09-19 Thread 1LT John W. Holmes
> Hi, > Is there any way to read php source code? I didn't think so until I > heard about people you have done that... > Kind regards, > Oliver I tend to read it left to right, but to each his own ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
yea, i probably didnt make that clear its the variables NAMES that he can't gurantee to be lowercase eg hell pass http://www.server.com/test.php?NAME=John&IDNumber=12 when im expecting $name and $idnumber sorry "Robert Cummings" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: > > is there any way to make variables NOT case sensitive?? > A partner is posting information to one of my PHP scripts and cant gurantee > that variables passed will be lowercase Sure, whatever you use make it lower case, whataever he send, cook to lower case. Cheers, Rob.

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
Then be sure that nobody is able to read it. Should be no problem ;) There is no possibility to read php source, the webserver will always count it as php file and the file will be parsed by php. Sure its possible to get the file over ftp, ssh, imap, etc, but this is the problem with all the secr

[PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP source code

2002-09-19 Thread Oliver Witt
Stephan Seidt schrieb: > On Thu, 19 Sep 2002 16:50:16 +0200 > [EMAIL PROTECTED] (Oliver Witt) wrote: > > > Hi, > > Is there any way to read php source code? I didn't think so until I > > heard about people you have done that... > > Kind regards, > > Oliver > > > > If you mean php's source, downlo

Re: [PHP] PHP Installation

2002-09-19 Thread Tony Earnshaw
ons, 2002-09-18 kl. 20:00 skrev Sascha Braun: > It told me at last something about the cgi installation and some things i dont >understand, > so i feel very insecure. > Please help me a little. A ... den stakkars, stakkars Sascha :-( In the directory in which you ran './configure', did you

Re: [PHP] pardon the previous mis-topic

2002-09-19 Thread Tony Earnshaw
tor, 2002-09-19 kl. 05:27 skrev Monique Y. Herman: > I'd started another question, realized the answer to it, and typed in another > question without checking the subject ... mea culpa! The only one in the whole wide world I've ever seen apologize for this. Straight out, the only one. Go straig

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Geoff Hankerson
> > >3)Reporting. >I think I can get by with HTML reports for the most part. however checks >and tax forms require precisely positioned reporting abilities. >I think that I will be better off using an external reporting >application (crystal,access,FoxPro etc) to generate these reports.

[PHP] PDF Library Download

2002-09-19 Thread César Aracena
Hi all, As I told yesterday, I'm setting my first home server with PHP and would like to start adding libraries at runtime (if possible). I would like to start with the PDF library but don't even have a clue where to get it or any of the rest. Can anyone help me please? It would also help to k

[PHP] Apache not parsing without .php on url?

2002-09-19 Thread Stefan
Hello, I have a new Apache 2.0.40 with PHP 4.2.3 installation on a Solaris x86 box. Configered in httpd.conf with: AddType application/x-httpd-php .php and LoadModule Parsing url´s with " .php" works fine, but i can´t figure out why it dosen´t work if i leave out the ".php"extension in

RE: [PHP] Best practice question

2002-09-19 Thread Jon Haworth
Hi Adam, > > What are peoples' thoughts on "one should always return > > a value from a function, even if it's always going to be > > true"? > > > I'd say skip it if you know your never returning anything > different. Yeah, that's what I was leaning towards :-) What prompted the question wa

Re: [PHP] Best practice question

2002-09-19 Thread Adam Voigt
One extra variable to be declared to catch the true (if you do try and catch it) and one extra line (the return line in the function), I'd say skip it if you know your never returning anything different. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-19 at 13:17, Jon Haworth wrote: > Hi list, > >

[PHP] Best practice question

2002-09-19 Thread Jon Haworth
Hi list, What are peoples' thoughts on "one should always return a value from a function, even if it's always going to be true"? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Adam Voigt
1. Never had any problems with big includes before. 2. Maybe add a console based prog which sits in the background and process's jobs if you don't want to leave the web page open while it works, etc. 3. Make them PDF's (pdflib), we use it, and once you get programming in it, it's fairly easy. 4. I

[PHP] Is php even right for this design?

2002-09-19 Thread William
I am interested in writing a large scale, cross platform payroll/hr/gl appl entirely in php + mysql Innodb (for transaction support). I have 2 php programmers 1 asp/foxpro/access programmer to help me. I see 4 big hurdles to overcome in my php design: Large Libraries, Long Processes, Reporting,

Re: [PHP] File Access...

2002-09-19 Thread Marek Kilimajer
put this to the begining of your some.php if (eregi("some.php",$PHP_SELF)) { Header("Location: index.php"); die(); } Brian McGarvie wrote: >How could you redirect somone from directly accessing a file... > >Meaning... if an engine spiders www.domain.com/some.php > >How could you make s

[PHP] Re: File Access...

2002-09-19 Thread Stephan Seidt
I guess it is sth. like : http://www.domain.com/index.php'); ?> If it doesnt work try www.php.net/header, there is an example. On Thu, 19 Sep 2002 17:21:15 +0100 [EMAIL PROTECTED] (Brian McGarvie) wrote: > How could you redirect somone from directly accessing a file... > > Meaning... if an en

Re: [PHP] editor php

2002-09-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've used Quantaits an opensource project. http://quanta.sourceforge.net/ ~Pauly On Thursday 19 September 2002 11:57 am, Gian Michele wrote: > Hi, > does any body knows a cool editor for php that run under redhat 7.x and > where i can find? > tan

[PHP] File Access...

2002-09-19 Thread Brian McGarvie
How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php redirect to index.php However... the site is framed, and the menu uses content.php to display the selected content. Any ideas? -- PHP General

[PHP] Re: redefining a function

2002-09-19 Thread David T-G
Tim, et al -- ...and then Tim Ward said... % % is using classes an option? I don't know. I suppose I need to learn about classes :-) Where do I start? % % Tim Ward % www.chessish.com TIA & HAND :-D -- David T-G * It's easier to fight for one's principle

[PHP] usort will not take variable

2002-09-19 Thread Robert Miller
Hello, Do you know the answer to this got'tcha? I want to call usort with a variable function name. Basically, I want usort to sort any field I specify. Currently, I'm stuck declaring a pile of functions and calling usort from if/elseif statements. :-( Current: function compname ($a, $b) {

[PHP] Re: Cannot Redeclare Function

2002-09-19 Thread Stephan Seidt
Looks like you may not redeclare functions generally. Because the function tbl2array can't be any kind of scope, the functions declared inside it will be globally declared. I think the solution is to take the functions like compname() out of tbl2array and declare them "really global". On Thu, 19

[PHP] Cannot Redeclare Function

2002-09-19 Thread Robert Miller
Hello, My function to read a comma separated text file and return a sorted multi-dimensional array will not work if used more than once per page. I know why I'm having this problem. But, I don't know how to solve it. :-( Calling it Twice: $services = tbl2array ("../locations/service.txt",

Re: [PHP] PHP source code

2002-09-19 Thread Joseph W. Goff
PHP is open source so anyone can get the source code to it. You can find it at http://www.php.net/downloads.php - Original Message - From: "Oliver Witt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 9:50 AM Subject: [PHP] PHP source code > Hi, > Is ther

Re: [PHP] editor php

2002-09-19 Thread Eric C. Pollitt
I haven't tried this, but it's a PHP Class named, "EditPHP." http://spunge.mirrors.phpclasses.org/goto/browse.html/package/43.html Eric C. Pollitt, Founder 401 E. Illinois Ave. Peoria, IL 61603 Global Hemp - Portal to the hemp community http://www.globalhemp.com/ "Hunt out places and soil suita

Re: [PHP] editor php

2002-09-19 Thread John Wards
Zend Studio if you can afford it... www.zend.com My work paid for it aint I lucky. John Wards SportNetwork.net - Original Message - From: "Gian Michele" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 4:57 PM Subject: [PHP] editor php > Hi,

RE: [PHP] editor php

2002-09-19 Thread Steve Bradwell
Lol. Here, Here! -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:06 AM To: Gian Michele Cc: [EMAIL PROTECTED] Subject: Re: [PHP] editor php /bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: > Hi,

Re: [PHP] editor php

2002-09-19 Thread Adam Williams
/bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: > Hi, > does any body knows a cool editor for php that run under redhat 7.x and > where i can find? > tanks -- Gian Michele > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] editor php

2002-09-19 Thread Gian Michele
Hi, does any body knows a cool editor for php that run under redhat 7.x and where i can find? tanks -- Gian Michele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
On Thu, 19 Sep 2002 16:50:16 +0200 [EMAIL PROTECTED] (Oliver Witt) wrote: > Hi, > Is there any way to read php source code? I didn't think so until I > heard about people you have done that... > Kind regards, > Oliver > Do you mean the source of php.net ? Try http://de.php.net/source.php?url=/i

[PHP] PHP source code

2002-09-19 Thread Oliver Witt
Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] New problem - preg_match?

2002-09-19 Thread Ford, Mike [LSS]
> -Original Message- > From: Chad Winger [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 06:25 > > Still using my text file example, which has lines such as: > > 0706010102|01.01.02|16:00|Serie C2|02|Forlì|Florentia Viola| > 0610010102|01.07.02|16:00|Serie C2|05|Florentia Viola|Gubb

[PHP] Reports with PHP

2002-09-19 Thread José León Serna
Hello: What is the best and easiest way to generate reports from PHP? I supose is to generate XML and transform later to HTML, PDF or TXT, but is there any PHP library to help me create reports with page headers, detail bands, subdetails, summaries and so on?. Regards. -- PHP General Mai

RE: [PHP] How to generate Excel files with PHP

2002-09-19 Thread Daniel Kushner
Found this on phpclasses: http://phpclasses.websapp.com/browse.html/package/86.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Matti Simperi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, Septembe

RE: [PHP] How to generate Excel files with PHP

2002-09-19 Thread Jay Blanchard
[snip] does anyone know a lib or a module which can generate Excel files with PHP? Also commercial is fine. [/snip] There are lists of articles, tutorials, and other stuff. http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=generate+Excel+files+ with+PHP An article I like ... http://www.evo

Re: [PHP] Unserialize stopped working after php & db upgrade

2002-09-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff, I looked at the string. s:1745:"s:1735:"s:1725:"s:1715:"s:1705:"s:1695:"s:1685:"s:1675:"s:1665:"s:1655:"s:1645:"s:1635:"s:1625:"s:1615:"a:2:{ see all of the s's? It means that unserializer will produce a string that looks like was not unse

[PHP] How to generate Excel files with PHP

2002-09-19 Thread Matti Simperi
Hi, does anyone know a lib or a module which can generate Excel files with PHP? Also commercial is fine. Matti Simperi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] include_path? programmatically

2002-09-19 Thread Ford, Mike [LSS]
> -Original Message- > From: Christian Calloway [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 01:56 > > I dont have access to the php.ini file, is there anyway to access the > "include_path" setting programatically from php? Thanks ini_get()http://www.php.net/manual/en/functio

Re: [PHP] Check which PHP-Version a project needs?

2002-09-19 Thread Justin French
Nice idea!!! I'd be interested in contributing to such a project, if one doesn't already exist. Justin on 19/09/02 11:47 PM, Thomas -Balu- Walter ([EMAIL PROTECTED]) wrote: > Hi all, > > is there any tool to check which PHP-Version a project needs at > minimum? > > I am looking for somethin

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Justin French
on 20/09/02 12:03 AM, WEB MASTER ([EMAIL PROTECTED]) wrote: > Easy, > Put a code to the beginning of the page that takes the unix time stamp, > and another one to the end. The difference is the execution time at the > server side... microtime workds better, because most pages execute in under a

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Justin French
on 19/09/02 11:37 PM, -=[ Julien Bonastre ]=- ([EMAIL PROTECTED]) wrote: > I just want to know what function or module covers this feature.. If it is at > all possible.. Top of your script: Bottom: Similar things could be done with MySQL quereies, but I haven't looked into it. Justin Fr

[PHP] Check which PHP-Version a project needs?

2002-09-19 Thread Thomas -Balu- Walter
Hi all, is there any tool to check which PHP-Version a project needs at minimum? I am looking for something that crawls through the project and notices all php-functions, variables and such and tells which PHP-version is needed to get it running, because it's hard to keep track of e.g. functions

Re: [PHP] New problem - preg_match?

2002-09-19 Thread Marek Kilimajer
if $datetest has a strict format, use $getdate[1]==$datetest, also put $datetest="$day.month.$year" out of the while loop, it doesn't need to be recreated over and over. Chad Winger wrote: >Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to >you all. I have a new questio

  1   2   >