Re: [PHP] login library

2002-03-27 Thread Andrey Hristov
For example use session_ids. This does not mean that use MUST use PHP session module. Store a unique string in the DB and set it as cookie for the user. When someone logs generate a string, write it in the members table and old session is removed, so the user with old session will be not able to

[PHP] login library

2002-03-27 Thread Michal Dvoracek
Hello, i want to write some application that requires users login. So i have question how i can check duplicity login (eg. browser crash, login from one computer using two browsers, ...). I need some idea (the best will be some example code :) ). Thank you. Michal Dvoracek

[PHP] Break up query into pages using PHP from MsSQL

2002-03-27 Thread Dean Householder
I'm trying to split results into different pages and number the pages accordingly. I'm using PHP and accessing a MsSQL database. I've been able to build a fairly intelligent page numbering system which knows which rows it should pull (at least by numbering each row numerically) but I don't know ho

[PHP] Re: PHP-CGI and script files not found

2002-03-27 Thread Donald
Hey, I tried to open a php file on my server that dosn't exist and php gave me a 404 error. I am running w2k, apache, php 4.1.2 as a module. Try having them run the php as a mod. with apache (if possible). -Donald www.magentica.com -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] does this newsserver work with office x entourage?

2002-03-27 Thread andy
Hi there, I am trying to get the php news on my apple machine. The newsgroups are listed and I can connect to the newsserver. Signing up for a newsgroup works, too. But the trouble starts, when I try to read the news. I am getting the message: can't find server did anybody experiance the same pr

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 28 Mar 2002, Miguel Cruz wrote: > > Right. I think the "No such file or directory" message is because it's > > failing to find an interpreter called "/bin/bash\r". > > Sorry, I mean "/bin/sh\r

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Thu, 28 Mar 2002, Miguel Cruz wrote: > Right. I think the "No such file or directory" message is because it's > failing to find an interpreter called "/bin/bash\r". Sorry, I mean "/bin/sh\r". Habit. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Jason Wong
On Thursday 28 March 2002 15:03, Dalton Hunter wrote: > them in Textpad afterward. For example the script contains ... > > > // BEGIN PHP SCRIPT THAT GENERATES SHELL SCRIPT > > $sbackup = "#!/bin/sh Do you actually terminate each line of your shell script with \n? ie shouldn't that be: $sback

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, Dalton Hunter wrote: > "Miguel Cruz" <[EMAIL PROTECTED]> wrote: >> Make sure you use unix-style line endings (just \n and no \r). > > Hi, thanks for your reply. I should have been a little clearer. The file is > created as a result of a PHP script not in TextPad. I am only co

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 27 Mar 2002, Dalton Hunter wrote: > > Hi, I am trying to write a file that contains a shell script. The file > > writes to the server but when I try to execute it it fails with a > > command n

[PHP]:Remote mail access

2002-03-27 Thread Vimala
Hi, Does anyone have php scripts/program that can be used to access PINE mails (LINUX) from Netscape browser? Please help Thank you in advance vim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, Dalton Hunter wrote: > Hi, I am trying to write a file that contains a shell script. The file > writes to the server but when I try to execute it it fails with a > command not found error. But if I copy and paste the files contents into > a new text file using Textpad on my PC

Re: [PHP] Get a specified amount of text?

2002-03-27 Thread Miguel Cruz
On Sat, 23 Mar 2002, Donald wrote: > In Visual Basic there is a function called left. > usage: left(string, len) > It allows you to get the first 'len' characters of 'string'. > > Is there a similar function in PHP? > > I have a value: > "3.405" > That I just want to crop to "3.40" > If I pass "

[PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
Hi, I am trying to write a file that contains a shell script. The file writes to the server but when I try to execute it it fails with a command not found error. But if I copy and paste the files contents into a new text file using Textpad on my PC and upload it to the same directory it works?! It

[PHP] Get a specified amount of text?

2002-03-27 Thread Donald
In Visual Basic there is a function called left. usage: left(string, len) It allows you to get the first 'len' characters of 'string'. Is there a similar function in PHP? I have a value: "3.405" That I just want to crop to "3.40" If I pass "3.405" to MySQL it adds it like this: "3.41" Thanks -D

Re: [PHP] while loop: detect next loop?

2002-03-27 Thread Jason Wong
On Thursday 28 March 2002 05:20, Erik Price wrote: > On Wednesday, March 27, 2002, at 04:11 PM, Matt Friedman wrote: > > When you have all your items in an array use implode to add a character > > in between every item. > > > > $str = implode($yourArray, $separator); > > > > This will add the sep

Re: [PHP] Uploading big files

2002-03-27 Thread Rasmus Lerdorf
> Is it because of the memory_limit that it doesn't work ? Yes > Do I have a way to upload files (over 7M) on the server without increasing the > memory_limit ? Not until PHP 4.2 -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex

2002-03-27 Thread Matt Moreton
preg syntax is different to ereg (which you are using). You also need to provide an output variable. This would work: preg_match( "/[0-9]+/", $input, $output ); -- Matt "Carl E Shmidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Now I'm looking to find

[PHP] Uploading big files

2002-03-27 Thread pierre . marcandella
Hi, I need confirmation on this matter : The scripts I use to upload files work fine until the file exceed 7 M. No specific error message appears. The hidden input MAX_FILE_SIZE is included in the scripts. My scripts are running on php 4.1.2. The php.ini file is set up as follow : max

Re: [PHP] Help! Recent PHP security patch => high server load?

2002-03-27 Thread Rasmus Lerdorf
I don't really see how that patch could cause that. Any chance of an truss or a gdb backtrace or something on one of these guys to give us a clue? -Rasmus On Thu, 28 Mar 2002, Jason Murray wrote: > Hi folks, > > Just curious to know if anyone has experienced a high server > load since installi

Re: [PHP] Can you use null?

2002-03-27 Thread Justin French
Hi, Just do a test on the result of the image URL field, and if the field value is "null" (or ""), change the field to a default image URL... "; ?> Justin French Creative Director http://Indent.com.au on 28/03/02 2:32 PM, Chuck "PUP" Payne ([EMAIL

[PHP] Help! Recent PHP security patch => high server load?

2002-03-27 Thread Jason Murray
Hi folks, Just curious to know if anyone has experienced a high server load since installing the recent security patch to PHP 4.0.6? Our Production team is reporting that the web servers running www.melbourneit.com.au are currently running at a load average of 30+, and this has been the case sin

Re: [PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread maxwello
When using cookies, if you don't set an expiration time, the cookie is only good until the session expires. It doesn't get saved, and it disappears when the user closes their browser. Many browsers have different settings/preferences for session cookies, and because they don't get saved to your

[PHP] HELP PLEASE!

2002-03-27 Thread GENESiS DESiGNS
Hello, My problem is I have a form that submits it info to a mysql table, well then I have a page that calls it from the mysql table and displays whatever is in the mysql table. So, what script do I use to make it display multiple entrys?? Here is the code: ---

RE: [PHP] raven & register & site_s & spafinder

2002-03-27 Thread Martin Towell
oops sorry for that - wrong address! -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 3:16 PM To: '[EMAIL PROTECTED]' Subject: [PHP] raven & register & site_s & spafinder Importance: High I have finally figured out why I get logged str

[PHP] raven & register & site_s & spafinder

2002-03-27 Thread Martin Towell
I have finally figured out why I get logged straight out of tabby as soon as I log in. When I log onto tabby (through cc.dev.syd.world.net), I get $SITE_S as "wtb_tabby" (as it's meant to be) but when register.syd.world.net/RSEARCH.html loads, it changes it to "spafinder_trade". Whoever is doing

Re: [PHP] imap problems

2002-03-27 Thread gaukia 345
Hi Duncan, Also working with IMAP because I'm writing a webmail. Haven't met this problem before but if I were you, I'd consider the following steps 1) Check if the IMAP daemon is running. Type "nmap localhost" at your shell to see if IMAP daemon (port 143, and it appears as imap2 on my server

[PHP] regex

2002-03-27 Thread Carl E Shmidt
Now I'm looking to find 1 or more digits in an input: preg_match("[[:digit:]]",$valToEval); I'm passing the value "12" and this thing still returns 0. What's going on? Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] using return in fucntions

2002-03-27 Thread Martin Towell
How do you mean, it didn't work in other cases? Did the file(s) get included? did they execute? did they execute properly? I'm thinking, just by looking at it, that the answer to the last question is "no". The reason why I say that can be shown in a very simple example: main.php other.inc $x\

[PHP] Can you use null?

2002-03-27 Thread Chuck \"PUP\" Payne
I am wanting to know if I can use null to call up an image? I am writing a page that talks to calls to a database for cars. There a field where calls on photo names, but if someone doesn't have a photo. Mysql puts null, I want to be able to use that null to call an image. --

[PHP] using return in fucntions

2002-03-27 Thread Justin French
Hi all, I've USED fucntions, i've MODIFIED functions, but to date I haven't written much in the way of reuseable code/functions. I'm at the point now where I can identify what sort of code could better be controlled by a function library, and want to get started on creating my own. However, I'm

[PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread David McInnis
Here is the scenario. 1. I set my browser to block all cookies. 2. I access this script. 3. I am thinking that I should get an error because I presume that session_start() will attempt to set a cookie (which it appears to do). (I tried setcookie() too and the cookie was accepted.) My quest

[PHP] Again my question about Building Libraries

2002-03-27 Thread Alexandre Soares
> Hi All, > > > This is my first participation in this group, so my question is I > write a function in c, but I need use this function and more joined in a > library make using the command ar rc alexlib.a x.o, but this procedure show > a error when I use this in my browser, please anyone

Re: [PHP] db driven site on IIS

2002-03-27 Thread Ben Turner
In my experiances ASP didn't handle this task well. I would suggest looking at www.microsoft.com to see how they accomplish what you are attempting. It isn't as pretty as Apache handles it but their's works. They accomplish it by sending the files via querystring and then parsing out the querys

[PHP] Header - cache control depends of the server ?

2002-03-27 Thread pierre . marcandella
Hi I am using this to make sure a page is refreshed when the user uses the back button of his browser : When I try on local (Win NT) it works. The page is refreshed. When I try on an other server (UNIX) it doesn't work. Is it normal ? Any idea how I can solve this ? Thanks for any assistance.

[PHP] db driven site on IIS

2002-03-27 Thread olinux
Hi all, My company is considering a move from static to db driven site. I am looking for a solution to allow URL's to be structured in "search engine friendly" format [i.e. http://website.com/region/article/article_id ] as search engine traffic is very important. I have found some great resour

Re: [PHP] Any PHP equivalent of Macromedia ColdFusion's location tag?

2002-03-27 Thread webapprentice
I now recall that ColdFusion's location tag accepts no data parameters, so you can't pass data to it. It is essentially a redirect. Thus, it may be doing an HTTP header location under the hood. In ColdFusion, I may have logic like so: - OK! I don't ge

RE: [PHP] regex expession problems

2002-03-27 Thread Martin Towell
I don't have that much experience with preg* functions but if that's exactly how you've got it in your code, shouldn't there be no spaces?? that is: preg_match("/http:\/\/ | [[:space:]]/i",$valToEval); * * \-\both of these should be removed ?

[PHP] regex expession problems

2002-03-27 Thread Carl E Shmidt
But hey, who doesn't have em eh? Anyway, here's my predicament. I want to look for either the string "http://"; or for 1 or more spaces in a string. Here's the regex I've got preg_match("/http:\/\/ | [[:space:]]/i",$valToEval); I can get each test case working individually, but as soon as I c

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
Good one.. hehe Maybe Rasmus was going to notice this, and fix it ;P Hehe, Eric - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 6:41 PM Subject: Re: [PHP] odbc_fetch_array() Not Available? > O

[PHP] Re: Nevermind I figured it out

2002-03-27 Thread Prolog
David, There is a better way to do through a similar operator. $variable = "hello and welcome"; $variable .= " to www.newimagedesign.com"; therefore... print ($variable); would result in... hello and welcome to www.newimagedesign.com hope this helps. -Jordan K. Martin New Image Design ---

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002 [EMAIL PROTECTED] wrote: >>> I am running php 4.1.1, and when i try to use odbc_fetch_array, it says >>> "Call to undefined function" >>> >>> Why is this? >> >> Maybe your installation of PHP was not built with ODBC support? It's a >> compile-time option. > > Well, why woul

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
Well, why would all the other ODBC function works? Thanks, Eric - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 5:58 PM Subject: Re: [PHP] odbc_fetch_array() Not Available? > On Wed, 27 Mar 20

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002 [EMAIL PROTECTED] wrote: > I am running php 4.1.1, and when i try to use odbc_fetch_array, it says > "Call to undefined function" > > Why is this? Maybe your installation of PHP was not built with ODBC support? It's a compile-time option. miguel -- PHP General Mailing Li

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread James Taylor
Hm, nevermind my question :) I'm not thinking straight, not enough sleep. On Wednesday 27 March 2002 02:53 pm, you wrote: > On Wed, 27 Mar 2002, James Taylor wrote: > > On Wednesday 27 March 2002 02:49 pm, you wrote: > >> On Wed, 27 Mar 2002, James Taylor wrote: > >>> I'm trying to do something t

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, James Taylor wrote: > Ok, let me try to refine this as the big picture. User enters something into > a form. > > We take that form value and convert newlines into though nl2br. > > Then, I want the limit the number of consecutive 's a user can enter, > to avoid abuse via a

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread James Taylor
Ok, let me try to refine this as the big picture. User enters something into a form. We take that form value and convert newlines into though nl2br. Then, I want the limit the number of consecutive 's a user can enter, to avoid abuse via a person just holding down enter for a while. $message

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, James Taylor wrote: > On Wednesday 27 March 2002 02:49 pm, you wrote: >> On Wed, 27 Mar 2002, James Taylor wrote: >>> I'm trying to do something to the effect of this for a preg_replace >>> statement: >>> >>> $string = "Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi"; >>> $

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread James Taylor
This is just an example. There are some cases where I need the second option to be a regular expression, the same way that you can do in Perl regex... On Wednesday 27 March 2002 02:49 pm, you wrote: > On Wed, 27 Mar 2002, James Taylor wrote: > > I'm trying to do something to the effect of this

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, James Taylor wrote: > I'm trying to do something to the effect of this for a preg_replace statement: > > $string = "Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi"; > $string = preg_replace("/\n\n/", "/\n/", $string); > > > But, it appears the 'replace' portion of the fu

[PHP] preg_replace - regex for replace string

2002-03-27 Thread James Taylor
I'm trying to do something to the effect of this for a preg_replace statement: $string = "Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi"; $string = preg_replace("/\n\n/", "/\n/", $string); But, it appears the 'replace' portion of the function doesn't allow for regex. How can I do this so

RE: [PHP] class question 2

2002-03-27 Thread Martin Towell
once their instantiated, they're just like any other variable - that is: if a "normal" variable, declared in the same place as the object, is accessable in another function, then the object will be too. HTH Martin -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Martin Towell
look at ignore_user_abort() http://www.php.net/manual/en/function.ignore-user-abort.php but make sure your script doesn't go into an infinate loop anywhere, otherwise you'll have to kill the process manually caught me once on a rare occasion.. :/ -Original Message- From: Rick Emery [m

[PHP] serialize()

2002-03-27 Thread Rodrigo Peres
Hi list, I've already look at the php manual but couldn't figure out a way to use serialize to solve my problem. I have a form, with many fields like (name, age, adress, state), that I put a save button. This button allows my user to save the fields already filled in order to finish the form late

Re: [PHP] imap problems

2002-03-27 Thread Duncan
hm, maybe reinstall imap? Can i simply reinstall it, or do i also have to configure php again, if i do so? Regards, Hendrik

[PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
I am running php 4.1.1, and when i try to use odbc_fetch_array, it says "Call to undefined function" Why is this? Thanks, Eric

RE: [PHP] New php functions?

2002-03-27 Thread Jason Murray
> I went to php.net wnating info on the date() function. To my > surprise the word date was already in the "search for" field. It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. :) J -- PHP General Mailing List (http://www.php.n

[PHP] New php functions?

2002-03-27 Thread charlesk
I went to php.net wnating info on the date() function. To my surprise the word date was already in the "search for" field. Has PHP developed some new functions? Possible code If not are these ever planned as I have use for them. Thanks Charles Killmer PS In case you are wondering yes

Re: [PHP] Query bug

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:28 PM, Daniel Ferreira Castro wrote: > This way works, but not the way i would like to. > Because it selects just the fields "nome","id_proj" and "arquivo" from > the > table ALGORITMO, and here my goal is to select those fileds of > ALGORITMO and > ATAS.

[PHP] Re: Comparrison

2002-03-27 Thread Steve Clay
Ron, You probably want strstr(). or stristr(). Just as a usability recommendation on you code below, please don't restrict your pages to IE only.. This would be better: if (!strstr($HTTP_USER_AGENT,"MSIE 5.5") { print "Please note this page has functionality designed for IE5.5"; } Users of

[PHP] imap problems

2002-03-27 Thread Duncan
Hi, i uploaded a script, which checks my inbox for new messages by using the imap extension for php. However, everything was working just fine, but now every time i try to access my script, i get a "server not found" error and the logs say: [Wed Mar 27 21:21:13 2002] [notice] child pid 11854 e

Re: [PHP] Query bug

2002-03-27 Thread Daniel Ferreira Castro
This way works, but not the way i would like to. Because it selects just the fields "nome","id_proj" and "arquivo" from the table ALGORITMO, and here my goal is to select those fileds of ALGORITMO and ATAS. "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

Re: [PHP] while loop: detect next loop?

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:11 PM, Matt Friedman wrote: > When you have all your items in an array use implode to add a character > in between every item. > > $str = implode($yourArray, $separator); > > This will add the separator to the end of each string except the last > one. I like

Re: [PHP] Query bug

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:00 PM, Daniel Ferreira Castro wrote: > I want to select the fields nome,id_proj,arquivo FROM ALGORITMO and > ATAS. But when I use the query below, I receive the error "ERROR 1052: > Column: 'nome' in field list is ambiguous". What is wrong on my query? > >

RE: [PHP] preventing "back" button usage?

2002-03-27 Thread Darren Gamble
Good day, This can be accomplished in a few ways. The easiest way is to tell the client not to cache the page. And yep, you do this via headers. In PHP (attempting to hit as many types of browsers as possible): header("Cache-Control: no-store, no-cache, must-revalidate"); header("Pragma: no-c

RE: [PHP] Require variable declaration?

2002-03-27 Thread Johnson, Kirk
You can catch typos by setting the error reporting level to E_ALL (in php.ini). PHP will then give you a warning whenever a variable is used before it has been assigned a value. Kirk > That's too bad, > I used to do some ASP which is weakly typed too but I still > could use "Option Explicit" t

[PHP] Query bug

2002-03-27 Thread Daniel Ferreira Castro
I have a problem. I have those tables on my database: mysql> use projeto; Database changed mysql> show tables; +---+ | Tables_in_projeto | +---+ | ALGORITMO | | ATAS | | MANUAIS | | PROJETO | | REFERENCIAS | | RELATOR

RE: [PHP] Regex Form Filter Help

2002-03-27 Thread Demitrious S. Kelly
Why not just limit it to one ? stuff"; while ( stristr($string, '') ) { $string=str_replace('', '', $string); } echo $string; ?> something like that would wok well enough... -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
There has been some discussion at zend.com to add this to PHP5/engine 2.0. However, the idea was rejected. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:54 PM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: [PHP] Require variable declara

[PHP] cookies

2002-03-27 Thread Scott St. John
Help! I have not had a need to use sessions or cookies on PHP until now. My experience has been to use Sessions in ASP. I am building a system to have users log in and then drop a cookie on their machine so they can log onto other apps. It's an internal app. The cookie will contain a useri

Re: [PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
That's too bad, I used to do some ASP which is weakly typed too but I still could use "Option Explicit" to require variables to be declared. Then a small typo would produce very hard-to-find errors. Well, I guess I have to live with it. Can I add it to a PHP5-wishlist? Thanx /Kjell - Or

RE: [PHP] Require variable declaration?

2002-03-27 Thread Demitrious S. Kelly
You don't need to do this with PHP... a variable is created when you assign a value to it. It is also unnecessary to assign a type. PHP will typecast automatically as necessary -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:47 PM To: [

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
PHP is weakly typed. Therefore, definitions are not needed. A variable may assume any guise depending upon its context. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Require variable declarat

[PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
Hi, I've just started making my database/PHP-scripts and I'm used to, from my earlier development, have my variables declared at the top of each routine. But I can't find the command that would force me to declare my variables and I can't find the declare statement either. Is there a way to do th

Re: [PHP] Deleted Files

2002-03-27 Thread Rogier Barendse
At 27.03.2002 14:27, you wrote: > >It seems that in using the PHP delete file function, I have inadvertently >deleted the root folder instead, waxing the majority of my PHP files. Is >there a recovery mechanism on Windows or am I getting burned by playing with >fire? > >J Look in your "wastebin"

[PHP] Regex Form Filter Help

2002-03-27 Thread James Taylor
I have a site where users can type whatever they want in and it posts it to a database. I'm trying to eliminate whatever types of abuse I can think of, and, since I'm using nl2br on the posts, I'm afraid a user might just hold down enter for a couple of seconds and scroll everything off the pa

Re: [PHP] Deleted Files

2002-03-27 Thread heinisch
At 27.03.2002 14:27, you wrote: > >It seems that in using the PHP delete file function, I have inadvertently >deleted the root folder instead, waxing the majority of my PHP files. Is >there a recovery mechanism on Windows or am I getting burned by playing with >fire? > >J Look in your "wastebin"

[PHP] TurboPHP ?

2002-03-27 Thread miguel valero
Dear friends, Is anyone familiar with TurboPHP and has anyone ever tried to develop a real application (perhaps in the accounting field) with this editor. I would like to know the feasibility and practicality of using this editor to develop an accounting application. I also would like to know w

[PHP] Deleted Files

2002-03-27 Thread Jesse Warden
It seems that in using the PHP delete file function, I have inadvertently deleted the root folder instead, waxing the majority of my PHP files. Is there a recovery mechanism on Windows or am I getting burned by playing with fire? J ** Scanned for Viruses ** -- PHP General Mailing List (http:

Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
On Wed, 27 Mar 2002, John Fishworld wrote: use this: ${"ned_".$i."_city"} = $ned_city; after that you can use your new var as $ned_1_city, if $i was 1 ofcourse... But in this case you might be better off using arrays, as some have suggested. > Can someone please remind me what the correct synt

RE: [PHP] Nevermind I figured it out

2002-03-27 Thread Darren Gamble
Good day. As you may have guessed by now, the .= operator does what you want. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: David Johansen [mailto:[

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread J. Scott Johnson
Shouldn't this work: $string = $string . "Some text added to the end"; Or am I thinking your question is simpler than it really is? * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting and Design Work * * * * * * * * * * * * * * * * * * * * * * * * * * Virtual

[PHP] Nevermind I figured it out

2002-03-27 Thread David Johansen
I just user $message = $message . "Some text"; But is there a "better" way to do this with something like the += operator? Dave "David Johansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I was just wondering if there was a way to add new text to the end o

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread Rick Emery
$message .= "Some text here"; -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Adding stuff to the end of strings I was just wondering if there was a way to add new text to the end of strings.

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread Johnson, Kirk
Close! $message .= "Some text here"; Kirk > -Original Message- > From: David Johansen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 27, 2002 12:03 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Adding stuff to the end of strings > > > I was just wondering if there was a way to add

[PHP] Adding stuff to the end of strings

2002-03-27 Thread David Johansen
I was just wondering if there was a way to add new text to the end of strings. I tried doing $message += "Some text here"; but that just set $message to 0. I'm sure it's something simple but I couldn't find anything on it in the documentation. Dave -- PHP General Mailing List (http://www.php.

RE: [PHP] variables within variables - question

2002-03-27 Thread Rick Emery
$field2 = "<".$$field; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] variables within variables - question Im having a VERY hard time trying to explain this Here is a bit of my c

RE: [PHP] class question 2

2002-03-27 Thread Rick Emery
Objects which are instantiated from classes on one page are not available on the next page. You have to use session functionality. -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:17 PM To: Php-General-List (E-mail) Subject: [PHP] cl

[PHP] variables within variables - question

2002-03-27 Thread Phil Schwarzmann
Im having a VERY hard time trying to explain this Here is a bit of my code... for ($i = 0; $i < $num_fields; $i++) { $field = mysql_field_name($result, $i); $field2 = "<".$field; $output = str_replace($field2, $field), $output); } The problem I'm having here is that the variable $fiel

RE: [PHP] Question on eval() SOLVED

2002-03-27 Thread heinisch
At 27.03.2002 10:54, you wrote: Rick thank you, the problem wasn´t ' ', but stripslashes. The data come from a database, so no ' s come with them. That´s good to see, if you send selects via terminal directly to mysql. Thanks again Oliver > >Note that vars[1] is created with ' ' so that the $-nam

[PHP] Class/ DB Question

2002-03-27 Thread Caspar Kennerdale
I'm in the slow process of transferring my contetn management system over to full object oreinted code. I have a function within a class which gets the field name and type information from a mysql table, puts this into an array and then returns a table with a form field for each field. I specify

[PHP] class question 2

2002-03-27 Thread Caspar Kennerdale
Sorry Another question- Do instances of classes remain in 'communication' with each other if declared my different functions in a case switch statement. At present I have an admin.php which is one long swtich statement. Wihin each is a list iof functions which created the elements of the page

RE: [PHP] File Upload

2002-03-27 Thread Joel Caturia
This sounds similar to what I am having, but not exactly. What version of PHP are using, and on what platform? My problem is the files don't actually appear on the filesystem, yet all of the internal functions in PHP that allow me to manipulate the files appear to "work". I'm using v4.1.2, and I

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
Good day, In this situation, you should use an array to store the results. Please check PHP's documentation for more information on how to use arrays. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4

Re: [PHP] syntax

2002-03-27 Thread Julio Nobrega Trabalhando
Make it this way: Looping first. I will loop with while: $i = 0; $array = Array(); while (list($value) = mysql_fetch_array($result)) { $array[$i] = $value; $i++; } Arrays are easier :-) Each $i will be a key. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/to

Re: [PHP] syntax

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, John Fishworld wrote: > so i want > $newvar_$i = result 1 > $newvar_$i = result 2 > > so I can use them outside the loops as > $newvar_1 and $newvar_2 Why don't you use an array? That's what they're for. Nevertheless, $i = 1; $varname = "newvar$i"; $$varname = "resu

Re: [PHP] syntax

2002-03-27 Thread John Fishworld
Sorry I think I've badly explained this ! I'm getting results from mysql in a while loop but I need the results outside of the loops and so what I want to do is take the first variable from the db and rename it as variable 1 and then before the end of the while loop have a $i++; so i want $newva

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
Good day. I believe that one would have to use the eval() statement to construct that syntax. You probably would be much better off using an array to store this information. If you are trying to read form data, then construct your form names so that the results will be put into an array by PHP.

[PHP] syntax

2002-03-27 Thread John Fishworld
Can someone please remind me what the correct syntax for this is ! in a loop and want individual $ned_1_city = blah $ned_2_city = blur I've been trying this but its wrong $ned_.$i._city = $ned_city ; thanks john -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] ping

2002-03-27 Thread Chris Grigor
Hey Christoph Thanks for your script, Ive just finished this one, its not that good but it works body, td { font-family: Verdana, Arial, Helvetica, Geneva, sans-serif; font-size: 8pt; color: black; font-weight: normal; } h1 { font-family: Verdana, Arial, sans-serif; font-size: 14pt;

  1   2   >