[PHP] Re: PHP - File Edit

2003-06-05 Thread \[cz\]Emo
Try this: "; ?> "Matt Zur" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > Does anyone know of a simple program that will let me specify a file > within a certain directory to load into a textarea field, let me make > changes, then export/replace that file with the changed

Re: [PHP] Determine memory used from script

2003-06-05 Thread Chris Edwards
If your using an array, how big is it, what's it's dimensions? -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com - Original Message - From: "Shawn McKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] PHP - File Edit

2003-06-05 Thread Philip Olson
On Fri, 6 Jun 2003, Matt Zur wrote: > Does anyone know of a simple program that will let me specify a file > within a certain directory to load into a textarea field, let me make > changes, then export/replace that file with the changed contents? > > I tried writing one myself in PHP, but I ran

[PHP] Re: New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Shawn McKenzie
HAH! I love it! -Shawn "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Clode? I like it. Really, who wants to say "closing php tag", "terminating php > tag", or whatever you say. Why not start calling it a clode? What does > everyone else think? > > The only issue i

[PHP] PHP - File Edit

2003-06-05 Thread Matt Zur
Does anyone know of a simple program that will let me specify a file within a certain directory to load into a textarea field, let me make changes, then export/replace that file with the changed contents? I tried writing one myself in PHP, but I ran into a problem with quotes. If I had tags in

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] include("common_functions.php"); switch($action) case "do this": include("do_this_funcs.php"); . function(s) called break; case "do that": include("do_that_funcs.php"); .

RE: [PHP] Advice on script length please!

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 13:36 > > [snip] > > If I did this, would it make a huge amount of difference? > > I'm almost certain it WOULD make a difference, but apart from the > execution time, I can't think of anything worse

[PHP] test

2003-06-05 Thread Mike Klemin
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Where to start?

2003-06-05 Thread Jay Blanchard
[snip] I am looking into learning PHP, I have a good understanding of HTML, JS and I know a little Perl. Firstly I know PHP is all server side and so a damn sight different from the above, but will they help me at all? Secondly where do I start? Are there any good on-line resources and or books tha

[PHP] recursive displaying tree structure

2003-06-05 Thread Mike Klemin
Hello, If anyone have expamples of displaying tree structure. Say I have array $result[x][y] with folloowing data XY["ID"]Y["OWNER"] 01 0 12 1 23 2 34 2 45 3 56 2 67

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? [/snip] http://us3.php.net/manual/en/function.include.php has a wealth of information, including important notes about security of included files.

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
My bad: while (!feof($fp)) instead of what I wrote earlier. - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 10:59 PM Subject: Re: [PHP] delete lines from text file > Matt, > Try som

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
Matt, Try something like: I didn't check this before posting so there could be some syntax issues, but the flow is what you need. Open a file for reading, read it line by line to find a text phrase, accumulate the lines (less the one with the phrase) in a new variable, close the file, open it aga

[PHP] Determine memory used from script

2003-06-05 Thread Shawn McKenzie
Is there a way to determine the amount of memory that a script is consuming at a certain point? Maybe a function that would return this? The reason is, I get this: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/httpd/vhosts/aaa/httpdocs/bbb/c

[PHP] Where to start?

2003-06-05 Thread Simon Thurtle
Hi all, I am looking into learning PHP, I have a good understanding of HTML, JS and I know a little Perl. Firstly I know PHP is all server side and so a damn sight different from the above, but will they help me at all? Secondly where do I start? Are there any good on-line resources and or books th

Re: [PHP] Advice on script length please!

2003-06-05 Thread Bix
On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? Bix. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] > If I did this, would it make a huge amount of difference? I'm

Re: [PHP] Administration packages

2003-06-05 Thread olinux
I'm sure you are already aware of PEAR, if you havent checked it out, you should olinux > > Hey everyone, > > > > I find myself building alot of admin control > areas, or in otherwords, a > > group of forms that lets an end user control data > and appearances of his/her > > site. What I am lo

Re: [PHP] Displaying links only when page is loaded on local site?

2003-06-05 Thread CPT John W. Holmes
> Just curious to know if anyone knows of a way of displaying a set of > links on a page only when that page is loaded on my local development > machine and not when it's loaded by the general internet public on my > remote host's machine? > > I have several background content editing pages which

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] > If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm after. Or, even if *I* could find my way aroun

[PHP] Displaying links only when page is loaded on local site?

2003-06-05 Thread Murray Wells
Hi All, Just curious to know if anyone knows of a way of displaying a set of links on a page only when that page is loaded on my local development machine and not when it's loaded by the general internet public on my remote host's machine? I have several background content editing pages which wou

[PHP] Re: Ascii to Decimal Converter

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello Everybody, > I need a PHP program to convert Ascii values to > Decimal values. > May i get heLp from anybody? > Thank You, > - Chinmoy I think you want floatval() -- Quod subigo farinam -- PHP General Mailing List (http://www.

Re: [PHP] Is "gd" present?

2003-06-05 Thread CPT John W. Holmes
> > > $gd_loaded = (extension_loaded('gd'))?1:0; > > > > Well, this also fails the simple-as-possible test: if the value returned by > > extension_loaded() can be used to drive the ?: operator, it must be > > evaluable as a Boolean; this means you can use it directly for later use in > > an if() or

RE: [PHP] Using register_globals

2003-06-05 Thread Jay Blanchard
[snip] Another issue I haven't read so far is that making your script work when register_globals is off makes it to be more compatible since scripts using GET and POST array should still work on systems that have register_globals turned on. [/snip] So what you're asking for is a variable handle

RE: [PHP] My Sincere Greetings

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Will someone ban this f***ing spam... > > Anyone believing this is an idiot! > > regards, > Dark Angel > > > -Original Message- If you have to respond about this sort of crap, please consider deleting the original spam so w

Re: [PHP] Is "gd" present?

2003-06-05 Thread Svein Larsen
Thats true, but its more overhead calling a function than compare a variable. Thats why i want to calll the function only once. - Svein On Thursday 05 June 2003 14:03, Ford, Mike [LSS] wrote: > > -Original Message- > > From: Svein Larsen [mailto:[EMAIL PROTECTED] > > Sent: 04 June 2003 16

[PHP] Re: File upload problem

2003-06-05 Thread Sami Kollanus
Thanks for the idea. I didn't think that solution before, bacause in the previous PHP-version it was impossible to upload empty files. Now server makes empty file even, if there is no file to upload. I still would like to know, where is the reason for the change of function in the server. Is t

Re: [PHP] pattern matching for the dot-sign

2003-06-05 Thread CPT John W. Holmes
> I am looking for a way to replace "." (=dot) to "," in a string with either > ereg_replace or preg_match . I read the manual in PHP on Pattern matching > for preg_match but could not immediately trace it. > All help appreciated. If that's all you need to do, use str_replace(). ---John Holmes...

RE: [PHP] Is "gd" present?

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Svein Larsen [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 16:22 > > $gd_loaded = (extension_loaded('gd'))?1:0; Well, this also fails the simple-as-possible test: if the value returned by extension_loaded() can be used to drive the ?: operator, it must be eva

RE: [PHP] function re-defined | WorkAround? [and some more Q's]

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: esctoday.com | wouter van vliet [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 16:11 > > I'm working on quite a large website with a lot of php > pages.. And a lot of > includable functions (modules).. Sometimes one of those modules gets > included twice accid

RE: [PHP] Is "gd" present?

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Esteban Fernandez [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 16:09 > > Also works... :) > > $array = get_loaded_extensions(); > for ($i=0;$i<=count($array);$i++) { > if ("gd" == $array[$i]) $installed = true; > else $installed = false; > } This w

Re: [PHP] how to record the referal of the referal?

2003-06-05 Thread Marek Kilimajer
Create the link like: script.php?var=value&referer= [EMAIL PROTECTED] wrote: Hello friends! i'm stuck with something i cannot resolve =( i'm programming an statistic sistem, and for tracking the visitors of a page, the systems works this way , a code in the user's page open a page on my server an

[PHP] pattern matching for the dot-sign

2003-06-05 Thread Wim Paulussen
LS, I am looking for a way to replace "." (=dot) to "," in a string with either ereg_replace or preg_match . I read the manual in PHP on Pattern matching for preg_match but could not immediately trace it. All help appreciated. Wim -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] setlocale() changes?

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 14:33 > > > I've been getting a warning on one of my scripts since I > upgraded from > 4.1.2 > > to the most recent version of PHP. The warning is: > > > > Warning: setlocale(): Passing locale

RE: [PHP] Registered sessions.

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Ed Gorski [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 13:37 > > You need to append the session name and id to the header > location everytime > you redirect that way. So your header redirect should read: > > header('Location: > researchpapers2.php?'.sess

RE: [PHP] insert loop logic

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 23:25 > I am getting values from a form's checkboxes > (eg > > > etc) > > When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) in

[PHP] Ascii to Decimal Converter

2003-06-05 Thread Chinmoy Barua
Hello Everybody, I need a PHP program to convert Ascii values to Decimal values. May i get heLp from anybody? Thank You, - Chinmoy __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing L

RE: [PHP] using a for loop but it is not working how come

2003-06-05 Thread Martin Towell
try changing $numbers = array($numbers); to $numbers = explode(",", $numbers); HTH Martin -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:42 PM To: [EMAIL PROTECTED] Subject: [PHP] using a for loop but it is not working how com

[PHP] using a for loop but it is not working how come

2003-06-05 Thread Richard Kurth
I am having a problem with this script It pulls a list of numbers from one field in the database (the numbers are in this format (275,277,278,276) It needs to pull each number and run it through the function dofunction and then move on to the next one in tell there are no more to process. What am I

Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-05 Thread Maurício Valente
I know... It´s very weird... I can´t understand it. What you describe above is exactly what is happening. I can´t see if is created a temp file because the page isn't load after I click in submit button. I will try to look for max_body_request in my config files em change it ... Cya! Maurício V

Re: [PHP] Advice on script length please!

2003-06-05 Thread Justin French
on 05/06/03 7:25 PM, Bix ([EMAIL PROTECTED]) wrote: > If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm a

Re: [PHP] TIMESTAMP -> Y-m-d

2003-06-05 Thread Marek Kilimajer
mysql manual -> DATE_FORMAT() function. Simply do SELECT DATE_FORMAT('format string', timestamp_column) ... nabil wrote: Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: File upload problem

2003-06-05 Thread Mi5ha
If you don't want users to write empty files to your server, why don't you just stop them ? You can write something like this: if ($HTTP_POST_FILES['file1']['size']!=0){ move_uploaded_file($HTTP_POST_FILES['file1']['tmp_name'], $upload_dir.$HTTP_POST_FILES['file1']['name']); } else { echo "WAR

[PHP] Replace ultimate affiliate with a PHP offering

2003-06-05 Thread Adrian Teasdale
hi there We are currently using Ultimate Affiliate (a series of perl scripts) to run an affiliate program. We are wanting to move over to a purely-php offering mainly for integration etc. Does anyone have any recommendations for affiliate scripts (either paid or open source) whihc are as good, o

Re: [PHP] Get the date&time from server

2003-06-05 Thread CPT John W. Holmes
> Can anyone teach me how to get the date > and time from the web-server,it's not > changed with the time of local machine. > I found the date() cannot do this. That's exactly what date() does... the date and time from the server. Maybe you're using it wrong. ---John Holmes... -- PHP General M

[PHP] RE: Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
PS I have not yet checked http://www.phpclasses.org (waiting for log in details to come through), though I've looked through recent threads. -Original Message- From: Dillon, John Sent: 05 June 2003 11:59 To: [EMAIL PROTECTED] Subject: Calendar showing availability of apartments/hotels I

[PHP] Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
I'm looking for your recommendations for php scripts which will give me a web based calendar for showing 'vacant', 'not available' or 'availability unknown' states, based on days available for a particular apartment in the database - eg for 'not available' perhaps the day is crossed out or in red b

Re: [PHP] TIMESTAMP -> Y-m-d

2003-06-05 Thread Justin French
on 05/06/03 6:24 PM, Nabil Attar ([EMAIL PROTECTED]) wrote: > mysql time stamp well, there are a few different formats that can be returned, so rather than me guessing which type, how about you tell us exactly what format you have (by providing an example), and exactly what format you want to ech

Re: [PHP] delete lines from text file

2003-06-05 Thread R'twick Niceorgaw
On Thursday 05 June 2003 11:53 pm, Matt Palermo wrote: > Can anyone help me figure out how to search for a string in a text file, > then delete the whole line of text that it occurs in? > > For example: I have a text file which contains the following. > > //** text.txt ** > Keep this line.

RE: [PHP] delete lines from text file

2003-06-05 Thread Martin Towell
I think you'll have to read the file manually (file() would prob be the best bet) and manually find/delete the line and then rewrite the file. Martin -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] de

[PHP] delete lines from text file

2003-06-05 Thread Matt Palermo
Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also keep this line. Delete this line. Keep this one too. No

[PHP] Get the date&time from server

2003-06-05 Thread poetbox
Hi all, Can anyone teach me how to get the date and time from the web-server,it's not changed with the time of local machine. I found the date() cannot do this. Thank you! poetbox [EMAIL PROTECTED]   2003-06-05 -- PHP General Ma

[PHP] strange thing about "recode"

2003-06-05 Thread Ilia Chipitsine
Dear Sirs, anybody knows why recode("windows-1251..utf-8", "F534A6C3-9174-11D5-903B-00D009784400") works very strange with PHP >= 4.2.3 ? Cheers, Ilia Chipitsine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Heredoc question

2003-06-05 Thread Joel Rees
> That's fine for that but I have several places that use if's and else's... AFAIK, you can't do conditionals inside a here doc. But then you don't have to build your entire output string in one here doc, either. Hmm. Maybe you're trying to build templates? -- Joel Rees <[EMAIL PROTECTED]> --

[PHP] Re: SQL Select on a DATE field

2003-06-05 Thread sven
just some thoughts to your script: i don't know (yet) the pear db functions and the database you use. so i assume you already got some logic to transform your dates into valid sql-dates (eg. mysql: mmdd or -mm-dd). that is important for valid results from your sql-statements as the dates m

[PHP] Advice on script length please!

2003-06-05 Thread Bix
I am developing a cms with multiple zones and user management etc My file is currently 1200 lines long and consist of 450 lines of case statements and then the rest are functions. I'm getting parse times from 0.2 to 0.8 seconds for the different pages depending on complexity. The script is d

RE: [PHP] Php handling apache's error directive?

2003-06-05 Thread Miranda, Joel Louie M
Its working, thanks! http://lightning.prohosting.com/~relsom/variables.shtml -- Louie -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:07 AM To: Miranda, Joel Louie M Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Php handling apache's error dire

Re: [PHP] Morph an object

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 17:18, [EMAIL PROTECTED] wrote: > You have the problem right. What do you mean by a "server push"? Sounds > interesting... > > Anyway I have to display something. Since its a login, the user needs their > interface. I think I'll have to introduce another page... I'd love

[PHP] Re: Submited (004756-3463)

2003-06-05 Thread chregu
Please see the attached file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newman's Problem with Images.

2003-06-05 Thread Philip J. Newman
My problem is this: I have a site that has 3 levels of access. 1,2,3 when i upload files to say $unixtimestamp/image1.jpg anyone can list the images in this directory $unixtimestamp/. I would like to hide the images out side the doc root ... is this possable .. so i can load something l

Re: [PHP] Using register_globals

2003-06-05 Thread Lars Torben Wilson
On Thu, 2003-06-05 at 01:09, [EMAIL PROTECTED] wrote: > One thing that hasn't been mentioned explicitly about register_globals > turned to off is the readablity of the code and thus the reuse of code. > When you use GET, POST, etc... everybody reading your script knows exactly > where the data i

[PHP] Re: Compare dates

2003-06-05 Thread sven
you can work with a timestamp. mktime() changes your date into a number you can sort, compare, ... ciao SVEN "Shaun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > I have two dates retrieved from a database stored as variables: $mindate and > $maxdate, how can i compar

[PHP] PHP Class for IP CIDR notation

2003-06-05 Thread Rob Lacey
does anyone know of a class that is able to extrapolate a list of IPs given an address in cidr notation. I have used the Net::Netmask module in perl, so I was just wondering if there was a PHP equivalent. Thanks Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Compare dates

2003-06-05 Thread Shaun
Hi, I have two dates retrieved from a database stored as variables: $mindate and $maxdate, how can i compare the two with PHP so i can loop and increment i.e. while($mindate < $maxdate){ //do some stuff $mindate++; } Thanks for your help -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Using register_globals

2003-06-05 Thread SLanger
One thing that hasn't been mentioned explicitly about register_globals turned to off is the readablity of the code and thus the reuse of code. When you use GET, POST, etc... everybody reading your script knows exactly where the data is coming from and can make a fairly good assumption to its us

Re: [PHP] TIMESTAMP -> Y-m-d

2003-06-05 Thread Justin French
A unix timestamp, or mysql timestamp? for unix, see http://au.php.net/date justin on 05/06/03 5:38 PM, nabil ([EMAIL PROTECTED]) wrote: > Please help me how to print a timestamp string retrived from the database, > and print it as -MM-DD > > Nabil > > -- PHP General Mailing List (h

[PHP] File upload problem

2003-06-05 Thread Sami Kollanus
I'm using: - Apache 2.0.40 server (linux) - PHP 4.2.2 I use file uploads in my code, but there occured small problems with the server update(from Apache 1.3.??, PHP 4.1.2). is_uploaded_file()- and move_uploaded_file()-functions don't work correctly any more. Or actually the file upload system do

[PHP] TIMESTAMP -> Y-m-d

2003-06-05 Thread nabil
Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling HTML pages

2003-06-05 Thread Ian Mantripp
on Wed, Jun 4, 2003, Daniel J. Rychlik wrote: >I was looking for a function that will take you to a html page. For instance. > >I have a function that checks for !empty values in $_POST; What I would >like to do is if the field is empty then > >go back to the form. I have a function > >functi

Re: [PHP] header function problem

2003-06-05 Thread Jason Wong
On Thursday 05 June 2003 07:01, Daniel J. Rychlik wrote: > Well, it works if I use the full path instead of relative So obviously > its an apache permissions issue. It has nothing to do with apache. The specs require that the location is absolute. -- Jason Wong -> Gremlins Associates -> ww

[PHP] Count on Multiple Tables

2003-06-05 Thread Ralph
I've been stuck on this one all morning. Can't seem to figure it out. I have 2 tables, one with affiliate sales and another with affiliate clickthroughs. I have to query both tables, so that I can get clickthrough dates, hits, and then query affiliate sales table to get number of orders for each d

[PHP] how to record the referal of the referal?

2003-06-05 Thread lexter
Hello friends! i'm stuck with something i cannot resolve =( i'm programming an statistic sistem, and for tracking the visitors of a page, the systems works this way , a code in the user's page open a page on my server and a script generates a image using the gd library( showing an ok if everythin

Re: [PHP] Does PHP have vb's 'mid' function (or similar)?

2003-06-05 Thread Tom Rogers
Hi, Thursday, June 5, 2003, 12:20:50 PM, you wrote: L> I'm trying to find a function, similar to vb's 'mid' function that you can L> return X amounts of characters at position Y from string Z. And I can't seem L> to find one. L> Any help? L> I'm sure it's simple... so a little helper would be gra

[PHP] Does PHP have vb's 'mid' function (or similar)?

2003-06-05 Thread Liam
I'm trying to find a function, similar to vb's 'mid' function that you can return X amounts of characters at position Y from string Z. And I can't seem to find one. Any help? I'm sure it's simple... so a little helper would be grand! Cheers, Liam -- PHP General Mailing List (http://www.php.net

Re: [PHP] selecting first character from a MySQL table

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > First, let me say many thanks to those who responded to my cron tab > question - it's working well now. And now for my next trick ;) > > I'm looking for more of an opinion here. I'm doing an alphabetical listing > of members

Re: [PHP] MySQL Problem

2003-06-05 Thread Oscar F
Felipe, I'm replying in spanish so you can understand better. El problema que tienes es que la variable $nueva_base esta vacia. Si deseas especificar el nombre con esa variable debes asignarle algun valor antes de llamarla, si lo que quieres es crear una base de datos que se llame nueva_base,

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Justin French
on 05/06/03 8:05 AM, Monty ([EMAIL PROTECTED]) wrote: > Hi Justin, > > I hear what you're saying about refusing people without cookies turned off, > and I really tried to make it work on my site, but, keep running into lots > of problems. I do have enable-trans-sid turned on, but, get inconsisten

[PHP] regex: line breaks to w/exclusion

2003-06-05 Thread Andrew Warner
I'm using this snippet to turn line breaks into tags: preg_replace("/(\015\012)|(\015)|(\012)/","\n",$page['CONTENT']); It works fine, but I'd like it to ignore text between tags. andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:RE: [PHP] Re: Using register_globals

2003-06-05 Thread fongming
Ya! I read the book and learned it from "Programming PHP" wroted by Rasmus ,page on 285,that said : "It's important to understand that PHP itself is neither secure nor insecure. The security of your web applications is entirely determined by the code you write. " for example: //initialize y

[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
Thanks! :) "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > try this > $string = ereg_replace ('\r\n|\n|\r', '', $string); > OR > $string = nl2br($string); > > NOTE: for me the first case will remove the newline, whereas the second will > keep them (It might be becuase

[PHP] Re: Text file breaking!

2003-06-05 Thread Bobby Patel
try this $string = ereg_replace ('\r\n|\n|\r', '', $string); OR $string = nl2br($string); NOTE: for me the first case will remove the newline, whereas the second will keep them (It might be becuase of my old php version [4.06]?) "Zavaboy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

Re: [PHP] POST Variables get passed as GET variables.

2003-06-05 Thread Leif K-Brooks
This has absolutley nothing to do with PHP, and is a client-side issue. Michael A Smith wrote: Hey, So I've got this form that passes POST variables. However, they keep getting passed as get variables. Example: Get's sent to it as: url.php?action=something What's going on here? This is a n

Re: [PHP] Morph an object

2003-06-05 Thread [EMAIL PROTECTED]
You have the problem right. What do you mean by a "server push"? Sounds interesting... Anyway I have to display something. Since its a login, the user needs their interface. I think I'll have to introduce another page... I'd love to avoid that though... /T on 6/4/03 18:10, Lars Torben Wils

[PHP] (no) file creation by convert (ImageMagik)

2003-06-05 Thread Bobby Patel
I am working on creating a thumbnail script but the obsticle is that 'convert ' doesn't create a file from the script. I am doing a system call with the following Where thumb.gif is the name of the new file to be created. After I run this script, no file is created, however if I run it from the

[PHP] POST Variables get passed as GET variables.

2003-06-05 Thread Michael A Smith
Hey, So I've got this form that passes POST variables. However, they keep getting passed as get variables. Example: Get's sent to it as: url.php?action=something What's going on here? This is a new installation of PHP 4.3.1, Apache 1.3... -Michael -- PHP General Mailing List (http://ww

[PHP] Text file breaking!

2003-06-05 Thread zavaboy
Ok, I don't get it... I put a string to one line ( $string = str_replace("\n", "", $string); ) but when I put it in a text file I see breaks right before . For example: I have a text area and type: 1 22 333 then, I take that string and replace \n with . $string = str_replace("\n", "", $string);

[PHP] MySQL Problem

2003-06-05 Thread Felipe R.
Hi everyone, first, sorry to all if my english is so poor. second, i have the follow question: when i create a existing MySQL DBase, what happend?? how can i avoid this problem?? i attached my create_table code. Thanks for all Creación de una Base de Datos Creando Base de Datos $nueva_bas

Re: [PHP] Morph an object

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 14:43, [EMAIL PROTECTED] wrote: > All ye noble Knights of PHP: > > Got an interesting problem, > > I am creating a login routine for my PHP website. Each page is an extension > of the root page object. I am creating a loginpage.php which is an object > with a constructor:

Re: [PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
Well, it works if I use the full path instead of relative So obviously its an apache permissions issue. - Original Message - From: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 5:36 PM Subject: [PHP] header function problem I am u

[PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
I am using a header function to take a user back to a form if they have mistyped or entered in data that is not desirable. I have multiple functions that Ive written but the one that pertains to this situation is listed function check_data () { if (!empty($value)) { go_ba

[PHP] Morph an object

2003-06-05 Thread [EMAIL PROTECTED]
All ye noble Knights of PHP: Got an interesting problem, I am creating a login routine for my PHP website. Each page is an extension of the root page object. I am creating a loginpage.php which is an object with a constructor: class Login extends Page { function Login($file) { if(isset($f

RE: [PHP] insert loop logic

2003-06-05 Thread Jennifer Goodie
> When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) into the database > 2)it has to enter 1 record for every every "id" picked > eg: > if id[1], id[2],id[3] and id[4] were picked it should enter this as 4 > differient record

[PHP] SQL Select on a DATE field

2003-06-05 Thread Lorenzo Ciani
Hi all! I would like to ask your advice on a script that I wrote. As you can surely see from my script below, I really need help as I am totally new to PHP. Regular expressions are my worst nightmare because I don't have a background in software programming: I'm just kidding around here! Please po

Re: [PHP] insert loop logic

2003-06-05 Thread Daniel J. Rychlik
perhaps, a foreach loop and use the empty () function. Thats how I did it. - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 5:24 PM Subject: [PHP] insert loop logic > Hi, > Can you tell me whats the best way of doing this plea

[PHP] insert loop logic

2003-06-05 Thread Ryan A
Hi, Can you tell me whats the best way of doing this please? I am getting values from a form's checkboxes (eg etc) When i get these values I want to enter them into the database but 1)I should enter only the first 5 (and ignore the rest) into the database 2)it has to enter 1 record for every ev

[PHP] RELEASE ANNOUNCEMENT phpDocumentor 1.2.0

2003-06-05 Thread Greg Beaver
June 4, 2003 RELEASE ANNOUNCEMENT phpDocumentor 1.2.0 STABLE is released at http://www.phpdoc.org the phpDocumentor development team is pleased to announce the release of version 1.2.0 STABLE. This is a stable released and is ready for use in production systems. phpDocumentor is an automatic do

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Monty
Hi Justin, I hear what you're saying about refusing people without cookies turned off, and I really tried to make it work on my site, but, keep running into lots of problems. I do have enable-trans-sid turned on, but, get inconsistent results. For example, when someone logs out I return them to th

Re: [PHP] New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Michael A Smith
Sounds good to me... On Wed, 2003-06-04 at 12:49, Evan Nemerson wrote: > Well since you seem to be in favor of confining usage to PHP, what about > "phode"- that way there's no association with the bullshit notices on > commercial advertisements that mean nothing since the address is always > ei

Re: [PHP] Re: Using register_globals

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 10:43, Rouvas Stathis wrote: > Armand Turpel wrote: > > > > > On Wed, 4 Jun 2003, Jay Blanchard wrote: > > > > [snip] > > > > Have register globals set to ON is one way of leaving your script open > > > > to being exploitable. > > > > [/snip] > > > > > > > > Please explain th

Re: [PHP] Calling HTML pages

2003-06-05 Thread Daniel J. Rychlik
When I tested it, I recieved a Forbidden 403 page from apache. Intresting... Any Ideas. I know its a permissions issue, but I thought that I was simply calling the page because an error was found.. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP] Re: Migration once again

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 12:51, Øystein Håland wrote: > I'm sorry Dan, but it don.t make any difference. Here's almost the complete > code: The easiest way to fix it is to enclose the $_SERVER['PHP_SELF'] in curly braces when you embed it into a string. See the manual: http://www.php.net/manual/en/l

  1   2   3   >