Re: [PHP] eregi() problems...

2002-04-16 Thread Michael Virnstein
eregi('_[0-9]{4}.jpg$', $file_name) should be eregi('_[0-9]{4}\.jpg$', $file_name) . is a spcial character(means every character) and has to be backslashed if you want it's normal meaning "Jas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I must be

Re: [PHP] smarter way to write config file?

2002-04-16 Thread Scott Houseman
what about something like this: $cfgAdminEmail = ( $local ) ? "[EMAIL PROTECTED]" : "[EMAIL PROTECTED]"; $cfgReportErrors = ( $local ) ? 1 : 0; $cfgSendMail = ( $local ) ? 0 : 1; Hope this helps --Scott - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PRO

Re: [PHP] eregi() problems...

2002-04-16 Thread Michael Virnstein
the rest seems ok to me, if you search for files with e.g hello_.jpg as name "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > eregi('_[0-9]{4}.jpg$', $file_name) > > should be > > eregi('_[0-9]{4}\.jpg$', $file_name) > > . is a spci

Re: [PHP] str_replace question

2002-04-16 Thread Andrey Hristov
preg_replace('/\d+/','',$the_string); Hope this helps. Andrey - Original Message - From: "Andras Kende" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 4:29 AM Subject: [PHP] str_replace question > Is a nicer way to remove any number 1-0 from a string??? >

[PHP] Automatically refresh page

2002-04-16 Thread Kevin Meredith
Hi. How can I reprocess a page if a certain variable is received. I am selecting companies for specific users from which they can select the required company and proceed further. Using variables on the same page using PHP_SELF. This then shows a list of contacts for the chosen company. In some

[PHP] Re: [PHP-DB] Re: Cross DB application

2002-04-16 Thread Andrey Hristov
> "Arcadius A." wrote: > > Hello ! > I'm planning to write a database application for MySQL, and then port it to > PostrgeSQL. > Is there any library or class that could help me to write/maintain just one > source code for both MySQL and PostgreSQL ? Try the dbx extension. Andrey --

[PHP] Re: [PHP-DB] Re: Definitive answer for large scale registration/authentication

2002-04-16 Thread Manuel Lemos
Hello, Brad Hubbard wrote: > > On Tue, 16 Apr 2002 14:51, Manuel Lemos did align ASCII characters thusly: > > > > then stored in cookie. The security weakness of this method is that if > > > > the secret key leaks, hackers may use to forge new sessions. > > > > > > Is this documented anywhere? >

Re: [PHP] Automatically refresh page

2002-04-16 Thread Jason Wong
On Monday 15 April 2002 21:05, Kevin Meredith wrote: > Hi. > > How can I reprocess a page if a certain variable is received. > > I am selecting companies for specific users from which they can select the > required company and proceed further. Using variables on the same page > using PHP_SELF. T

RE: [PHP] Poor results with GD

2002-04-16 Thread Sear, Mick
I'm currently setting JPEG quality to 85%, hence the large file sizes. Normally, I'd be looking for better quality and file sizes about 70% of their current size. Some of the originals are scanned directly from the painting, which yields very high quality, some are taken with a digital camera (I

Re: [PHP] Seeing if a value matches anything in an array

2002-04-16 Thread Andrey Hristov
$pharray = array("php","the best language ever"); preg_match("/(?<=What is )(\w+)(?:\?)/",$question,$matches); if (in_array($matches[0],$phparray)){ // your stuff here } Regards, Andrey - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [PHP] Poor results with GD

2002-04-16 Thread Gianluca Baldo
Hi - I recently used NetPBM libraries since a client was not satisfied with GD's results. You may want to have a look at PHP Gallery, a package which uses NetPBM instead of Gd. I looked at it to get some idea on how to use NetPBM from PHP. They have a comparison page: http://www.menalto.com/pr

RE: [PHP] Poor results with GD

2002-04-16 Thread Sear, Mick
Excellent advice, thanks. I was using GD 1.6.2 :( so will sort this and try again. Mick -Original Message- From: Richard Archer [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 22:58 To: [EMAIL PROTECTED] Subject: Re: [PHP] Poor results with GD At 5:32 PM +0200 15/4/02, Sear, Mick wrote

[PHP] Line breaks...

2002-04-16 Thread Philip Jeffs
Hi, I have a form inserting data into a database. I'm using nl2br to add to the data enetered where appropriate. The data is then pulled out of the database and inserted into text fields for editing. Can anyone tell me how to remove the tags while maintaining the line breaks in the text fiel

[PHP] OT Mysqldump

2002-04-16 Thread Richard Baskett
Ok well kind of php.. How can I dump the sql file? I keep getting a mysqldump: no match... Here's my command: mysqldump -u root -p[password] --all-databases > backup.sql What am I doing wrong? Rici "Too much caution is bad for you. By avoiding things you fear, you may let yourself in for unha

Re: [PHP] Line breaks...

2002-04-16 Thread Richard Baskett
Don't use nl2br on the data before it goes into the database. Only use it when you are showing that data as html. That way when you pull it into a textfield you will not have to worry about the Rick It is very nearly impossible . . . to become an educated person in a country so distrustful of

[PHP] zend encoder and shell

2002-04-16 Thread Kunal Jhunjhunwala
Hey, Is it possible to run zend encoded scripts from the shell prompt? Regards, Kunal Jhunjhunwala "Minds think with ideas, not information. No amount of data, bandwidth, or processing power can substitute for inspired thought." - Clifford Stoll -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Line breaks...

2002-04-16 Thread Jon Haworth
Hi Phil, > I have a form inserting data into a database. I'm using > nl2br to add to the data enetered where appropriate. > The data is then pulled out of the database and inserted > into text fields for editing. > Can anyone tell me how to remove the tags while > maintaining the line breaks

Re: [PHP] Error accessing class

2002-04-16 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi Tyler, > > Thank you, > I checked the permissions and the ownership, all ok, but by inserting > the absolute path > in the page, the code is running and get the expected output from the > script. I realized that > I made the same mi

[PHP] help required on removing lf-cr from form data

2002-04-16 Thread Venkateshwar B
hi, I am trying to get some data entered in a form into a file. But I want to remove the lf-cr appearing in between lines and have only one carriage return at the end. This is because , I am using carriage return as the field separator in my text file and I want each field to be limited to

[PHP] Re: help required on removing lf-cr from form data

2002-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Venkateshwar B) wrote: > I have > tried to use "str_replace" and replace "\n" by "". But it does'nt give > me the desired result of limiting text to single line . $nobreaks=preg_replace("/[\r\n]+/"," ",$hasbreaks);

[PHP] Problem with inheritance mechanism.

2002-04-16 Thread Steve Dix
I'm having a bit of a problem with the following classes. Class pulldown builds a select box using a set of arrays containing the relevant data. class pulldown_db is written to extend the class to allow the use of the class with a database. Now, the problem appears in pulldown_db. If you no

[PHP] PHP

2002-04-16 Thread Jason Whitaker
I am looking for a PHP chat for disscussing php/mysql. anyone know of any? -- Jason Whitaker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP

2002-04-16 Thread Martin Cabrera Diaubalick
It's a Forum, not a chat. http://forums.knowledgeisland.com/list.php?f=1 HTH Regards El Mar 16 Abr 2002 13:00, Jason Whitaker escribió: >I am looking for a PHP chat for disscussing php/mysql. anyone know of any? > >-- > >Jason Whitaker -- Martin Cabrera Diaubalick Director Técnico Notodo.com

Re: [PHP] PHP

2002-04-16 Thread Jeff Lewis
Another one is http://www.phptalk.com - Original Message - From: "Martin Cabrera Diaubalick" <[EMAIL PROTECTED]> To: "Jason Whitaker" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 7:11 AM Subject: Re: [PHP] PHP > It's a Forum, not a chat. > > http://forums.know

RE: [PHP] Faking a form POST

2002-04-16 Thread .ben
hmm, i was kinda after an in-process component like the ASP components ASPHTTP (http://www.ServerObjects.com) and ASPTear (http://www.alphasieraapapa.com). cheers tho, .b > -Original Message- > From: jon [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 05:10 > To: [EMAIL PROTECTED] > S

RE: [PHP] Faking a form POST

2002-04-16 Thread Steve Dix
On 16 Apr 2002 at 12:22, .ben wrote: > hmm, i was kinda after an in-process component like the ASP components > ASPHTTP (http://www.ServerObjects.com) and ASPTear > (http://www.alphasieraapapa.com). > > cheers tho, > > .b > Try this : You will have to encode your data in a similar manner to

[PHP] Still having session problems

2002-04-16 Thread Patrick Aland
I cannot for the life of me get the new $_SESSION method working. Running php4.1.2 on apache 1.3.24 on RH6.2 Using the code below: \n"); ?> A tmp file is created in /tmp but nothing is put in it. If I turn register_globals on, the page above still doesn't work, however if I start and register t

[PHP] Re: PHP

2002-04-16 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am looking for a PHP chat for disscussing php/mysql. anyone know of any? #php on irc.openproject.net -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Directory

2002-04-16 Thread Jeroen Timmers
Hello, can i read a directory for files and other directory's with a php function for exameple d:\localhost\ had the follow dirs and files test.php test2.php \test\ \test2\ now i want that in my browser with a php function Jeroen -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Faking a form POST

2002-04-16 Thread Shaun Martinec
Check out the php docs for curl: http://www.php.net/manual/en/ref.curl.php Maybe it's more of what you need. I use it with paypay autopay and such. "Steve Dix" <[EMAIL PROTECTED]> wrote in message 3CBC2652.2995.4CD93C@localhost">news:3CBC2652.2995.4CD93C@localhost... > On 16 Apr 2002 at 12:22, .b

Re: [PHP] Problem with inheritance mechanism.

2002-04-16 Thread cal
Add a constructor to the pulldown_db: function pulldown_db($control,$ausgabe){ parent::pulldown(($control,$ausgabe); } // function pulldown_db($control,$ausgabe) Because PHP's ctors are named after the class when you subclass, you have to add one and call the parent's if you want it to fire.

[PHP] email attachments

2002-04-16 Thread ROBERT MCPEAK
This nifty code (taken from PHP Cookbook) sends an email with a file "attached" in-line. The text from the attached file appears within the body of the email. I need to send attached files that are not in-line, but, rather, come as attached files that the user views outside of their email browse

Re: [PHP] naver.com ????

2002-04-16 Thread Barry C. Hawkins
Yep, that's what it is. Outlook 2002 called for the Korean language support files when I clicked on one of those last week. -- Barry C. Hawkins Systems Consultant All Things Computed [EMAIL PROTECTED] On Tue, 16 Apr 2002 14:32:49 +1000 Brad Hubbard <[EMAIL PROTECTED]> wrote: Anyone else gett

[PHP] Ereg ()

2002-04-16 Thread DrouetL
Hi, I'm new with RegEx and I would like to use them to validate my forms entries submitted to the server. My question is how can I verify with the regex that a string is - at least 7 chars - contains Chars and Nums - may contains some special chars (ex : % ! : ; , )but not in first or last posi

Re: [PHP] evaluate my mailing list attempt?

2002-04-16 Thread Erik Price
On Monday, April 15, 2002, at 05:24 PM, Police Trainee wrote: > Well, constructed from the help i received from > some of you, this is the end result of my attempts to > be able to send email to everyone listed in a file > and including their names in the email. i would > appreciate any feedbac

Re: [PHP] Problem with inheritance mechanism.

2002-04-16 Thread Steve Dix
On 16 Apr 2002 at 12:59, Steve Dix wrote: > > I'm having a bit of a problem with the following classes. > Found the problem and it all comes down to the use of mysql_fetch_row as opposed to using mysql_fetch_array to get the results. For some reason mysql_fetch_row corrupts the object return

[PHP] Conditions within a function

2002-04-16 Thread Scott St. John
I have been trying to organize my code better by using functions, especially where I am repeating logic. The problem seems to be when I run a condition within the function, an if statement to check for results of a variable. As is the code seems to be bypasses, but if I put a die; in the fun

Re: [PHP] Faking a form POST

2002-04-16 Thread Erik Price
On Monday, April 15, 2002, at 09:36 PM, .ben wrote: > Hi. Does anyone know how to POST data to another script as if a form > had > done so? I want to POST some data to a script on another site and > retrieve > the data that is returned so i can poick it apart, i did it in ASP > using a > 3

RE: [PHP] email attachments

2002-04-16 Thread James E. Hicks III
You need a Content-Disposition in yer $mime variable. I'll leave it up to you to figure out where, because I've forgotten where it goes exactly. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: [

[PHP] Re: Ereg ()

2002-04-16 Thread Jas
If you look on php.net and run a search on ereg() you will find examples on how to use regex. Your string would look like this: ereg('[a-z][A-Z][0-9]{7}') With your special characters I am not sure how that would work but check out php.net. hth Jas -- PHP General Mailing List (http://www.php.

Re: [PHP] Ereg ()

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 08:49 AM, [EMAIL PROTECTED] wrote: > > I'm new with RegEx and I would like to use them to validate my forms > entries submitted to the server. > > My question is how can I verify with the regex that a string is > - at least 7 chars > - contains Chars and Nums > -

[PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
I can't remmeber how to configure php.ini so that if I get the URL http://localhost/index.php?var1=10 an echo $var1 will return 10 What I mean, is that _GET["var1"] exists, but I want $var1 to be available. Any hint? -- Porqué usar una base de datos relacional cualquiera, si podés usar Postg

Re: [PHP] viewing get/post variables

2002-04-16 Thread Jason Wong
On Tuesday 16 April 2002 21:39, Tyler Longren wrote: > You shouldn't have to do anything to php.ini to get that. You should have > a variable called $var1 on index.php already. > > Just: > if ($var1 != "") { > print "$var1"; > } > else { > print "var1 is empty"; > } > > Tyler Longren > Ca

RE: [PHP] email attachments

2002-04-16 Thread ROBERT MCPEAK
I wish that made sense to me. Can you expound? >>> "James E. Hicks III" <[EMAIL PROTECTED]> 04/16/02 09:41AM >>> You need a Content-Disposition in yer $mime variable. I'll leave it up to you to figure out where, because I've forgotten where it goes exactly. James -Original Message- Fr

Re: [PHP] Ereg ()

2002-04-16 Thread DrouetL
Thanks for this answer. But how can i test if i actually have numbers AND letters ? Laurent Drouet Erik Price

Re: [PHP] Conditions within a function

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 08:58 AM, Scott St. John wrote: > I have been trying to organize my code better by using functions, First of all, try organizing your code using whitespace. Here is an example of the code, formatted to be a bit easier to read: function chkFirstTime($userID) {

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
Read the NEWS file for PHP 4.2.0. (It should be located in the base directory of the source distro) If you're using the Windows package, try here: http://cvs.php.net/co.php/php4/NEWS?r=1.885.2.17 Jaime Bozza -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]]

RE: [PHP] variable question...

2002-04-16 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin Blake [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 09:43 > > You can use variable variable names by adding another '$'. > so if $i == 1 and $var1 == "one", you can do this: > > $var_name = "var".$i; > if($$var_name == "one") echo "Hello!"; > > Tha

[PHP] Re: Directory

2002-04-16 Thread Joel Colombo
http://www.php.net/manual/en/ref.filesystem.php all the file system functions Joel Colombo "Jeroen Timmers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > can i read a directory for files and other directory's with a php function > > for exameple

Re: [PHP] Ereg ()

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 09:51 AM, [EMAIL PROTECTED] wrote: > > Thanks for this answer. > > But how can i test if i actually have numbers AND letters ? preg_match('/([A-Za-z].*[\d]|[\d].*[A-Za-z]/', $string); Untested, but in theory should work. > On Tuesday, April 16, 2002, at 08:49

RE: [PHP] viewing get/post variables

2002-04-16 Thread Jaime Bozza
Hmmm... I'm not sure why that would be (unless, of course, your php.ini has it there.) Either way, it sounds like a potential bug in either phpinfo() or the register_globals code itself. Jaime Bozza -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Apr

[PHP] Re : Ereg ()

2002-04-16 Thread DrouetL
thanks to all of you for you help. regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Cross DB application

2002-04-16 Thread Richard Ellerbrock
On Tue, 16 Apr 2002 01:48:34 +0200, James Cox wrote: >> Hello ! >> I'm planning to write a database application for MySQL, and then port >> it > to >> PostrgeSQL. >> Is there any library or class that could help me to write/maintain just > one >> source code for both MySQL and PostgreSQL ? > >

[PHP] Need to read CGI script in TCL, evaluate and display contents in Safe-Mode

2002-04-16 Thread Phil Powell
The server is UNIX-based server for Linux running PHP in safe mode. I have a CGI script I wrote in TCL, menubar.cgi, that I have to include into a PHP file on the docroot, feedback.phtml. How do I include the CGI script and display the evaluated contents (again, it's in TCL, not PHP not even in

RE: [PHP] Faking a form POST

2002-04-16 Thread .ben
Erik, thanks for this. Works great, .b > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 14:30 > To: [EMAIL PROTECTED] > Cc: PHP > Subject: Re: [PHP] Faking a form POST > > > > On Monday, April 15, 2002, at 09:36 PM, .ben wrote: > > > Hi. D

Re: [PHP] Re: Cross DB application

2002-04-16 Thread John Lim
Thanks Richard, ADOdb is also dual licensed under a more open license - BSD too. You might also find interesting this article: http://php.weblogs.com/portable_sql Regards, John Lim "Richard Ellerbrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tue,

[PHP] unset() on arrays

2002-04-16 Thread Erik Price
Just a quick question -- the man page for unset() doesn't mention anything about unsetting arrays, but does it work the same way? I have this if/elseif/else statement (pseudocode): $error_msgs = array(); if (there is a problem) { $error_msgs[] = "error message 1"; } elseif (there is a diffe

RE: [PHP] viewing get/post variables

2002-04-16 Thread Christoph Starkmann
Hi Martín! > I can't remmeber how to configure php.ini so that if I get the URL > http://localhost/index.php?var1=10 > an echo $var1 will return 10 > What I mean, is that _GET["var1"] exists, but I want $var1 to > be available. If $var1 is not available directly, your safe_mode seems to be tur

Re: [PHP] viewing get/post variables

2002-04-16 Thread Tyler Longren
You shouldn't have to do anything to php.ini to get that. You should have a variable called $var1 on index.php already. Just: if ($var1 != "") { print "$var1"; } else { print "var1 is empty"; } Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Origin

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 10:35, Christoph Starkmann wrote: > Hi Martín! > > > I can't remmeber how to configure php.ini so that if I get the URL > > http://localhost/index.php?var1=10 > > an echo $var1 will return 10 > > What I mean, is that _GET["var1"] exists, but I want $var1 to > > be available. > >

[PHP] PHP & HTML Issue

2002-04-16 Thread Boaz Yahav
> Hi > > I'm having a problem that is taking me out of my mind. > I have a DISABLED field in my HTML ( tag) and for some reason, > it's value is not passed back to the script after submission. > If I remove the DISABLED word it's ok. > > The funny issue is that with Netscape it's ok but IE is a

[PHP] smtp relay problem

2002-04-16 Thread Kris Vose
I am having problems with my mail server. šWhen I use the mail function in php it resets the domain of the from: address when the script is executed. For example: when the from: address is set to [EMAIL PROTECTED] it resets it to the mail servers domain [EMAIL PROTECTED] šI believe this is due

[PHP] formatting form input/sql insert

2002-04-16 Thread ROBERT MCPEAK
I'm collecting data with from textarea inputs. The user may enter a linebreak with the return key, or a tab, etc. I then write this data to a mySQL table, formatting the data with addslashes(). I then output the data to a text file using a "select into file" statement. When I import the file i

[PHP] Re: smtp relay problem

2002-04-16 Thread phplists
Sounds like an MTA issue. You should find out which MTA it is and look at their support site.. Sendmail has a feature that will rewrite the domain on all outgoing addresses unless the user sending out is a 'trusted' user.. That could be the problem you are experiencing. You should certainly have

RE: [PHP] Still having session problems

2002-04-16 Thread Johnson, Kirk
Are you absolutely positive register_globals is off? Is there an .htaccess file laying around someplace that overrides php.ini and turns it on? Sorry, I don't have any other ideas. Kirk > -Original Message- > From: Patrick Aland [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
Ok I have a performance question. I run a wallpaper site; this is the url to the main gallery page http://www.cognitivedistortion.com/php/gal.php The page does a dir read and lists all pictures found in each directory, it does this every time the p

Re: [PHP] Still having session problems

2002-04-16 Thread Patrick Aland
phpinfo() in that file reports it as off (when I haven't turned it on for testing the methods in my original email). On Tue, Apr 16, 2002 at 09:12:47AM -0600, Johnson, Kirk wrote: > Are you absolutely positive register_globals is off? Is there an .htaccess > file laying around someplace that ove

[PHP] Re: Performance question

2002-04-16 Thread John Lim
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ "Mike Fifield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok I have a performance question. I run a wallpaper site; this is the u

RE: [PHP] Performance question

2002-04-16 Thread James E. Hicks III
I think you've got the best set up already. I have a PDF library that I do a similar thing with. To update the site I just dump the new PDF's into their directory and the users reload the page to see the new content. James -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]]

[PHP] PHP Accounting and Ledger??

2002-04-16 Thread José León Serna
Hello: Do you know of any accounting/ledger package made with PHP?, I know one made in perl and a semi-port to php, but I want to know if there is another. Best Regards. QaDRAM Studio, RAD Development for the WEB http://studio.qadram.com --

[PHP] Please Help

2002-04-16 Thread Omland Christopher m
Can anyone tell me how to unsubscribe. There is just a bit too much volume for me. Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Conditions within a function

2002-04-16 Thread Scott St. John
On Tue, 16 Apr 2002, Erik Price wrote: > First of all, try organizing your code using whitespace. Here is an > example of the code, formatted to be a bit easier to read: Thank you, that was Pine doing some nice formatting tricks of it's own. > Now, my first question, is why do you have $userI

[PHP] formatting form input

2002-04-16 Thread ROBERT MCPEAK
How do I use PHP to remove certain characters from form input? Specifically, how to I ensure that form data does not contain any newline/linebreak or tab characters? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please Help

2002-04-16 Thread Steve Cayford
Check out the bottom of each message... -Steve On Tuesday, April 16, 2002, at 10:43 AM, Omland Christopher m wrote: > Can anyone tell me how to unsubscribe. There is just a bit too much > volume > for me. > Thanks. > -Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubs

Re: [PHP] Conditions within a function

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:32 AM, Scott St. John wrote: > What I am also discovering is I have to use die; to halt execution for > certain things. An example, I check to see if a user is still active in > the system, if they are not I use a header to redirect them to a page > that > te

Re: [PHP] formatting form input

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:56 AM, ROBERT MCPEAK wrote: > How do I use PHP to remove certain characters from form input? > Specifically, how to I ensure that form data does not contain any > newline/linebreak or tab characters? you can hack it yourself with str_replace(). Erik

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 10:39, Tyler Longren wrote: > You shouldn't have to do anything to php.ini to get that. You should have > a variable called $var1 on index.php already. Wrong. I get NULL from the variable I'm passing. -- Porqué usar una base de datos relacional cualquiera, si podés usar Post

[PHP] PHP browser uploads = PASV?

2002-04-16 Thread jon
Hey... does anyone know if browser uploads via PHP are a PASV connection? If so... is there a way to accept PASV connections behind a firewall, like in Wu-FTP? Thanks... -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHTML - anyone know anything about this?

2002-04-16 Thread Phil Powell
Anyone out there ever work with .phtml files?? Especially in trying to include CGI scripts into .phtml files? Need some help here if possible Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP browser uploads = PASV?

2002-04-16 Thread Andrew Brampton
If you are uploading a file with php then you are using a http connection NOT ftp... so PASV doesn't come into it at all. PASV is a FTP command not http. and if you did try and compare them, then http is passive (ie no connections are tried to be made to the user with the browser). Andrew -

[PHP] Re: PHP & HTML Issue

2002-04-16 Thread Maxim Maletsky
Because, as you already can imagine, different browsers "think" different. First of all, as long as I remember, Nutscrape does not react on " disabled" parameter in form objects. This might have been changed though. Anyway, to be very sure - do not count on these values to be sent to you, if y

[PHP] Re: Performance question

2002-04-16 Thread Maxim Maletsky
why not to keep both names and the pictures themselves into a database? Loggin in is not really that big deal, I think it is worth portability - you'll be changing this someday (as you get too many requests or too many pictures to request). Start from now. Performance will not change too much

RE: [PHP] PHP browser uploads - server behind firewall

2002-04-16 Thread jon
That makes sense... so lets says that my machine is behind a firewall with a 192.168.x.x address. I can access the machine no problem via apache... but if I try to upload at anything other than the 192.168.x.x IP address from within the firewall, it fails... presumably, because it's looking for t

Re: [PHP] PHTML - anyone know anything about this?

2002-04-16 Thread Robert Cummings
Phil Powell wrote: > > Anyone out there ever work with .phtml files?? Especially in trying to > include CGI scripts into .phtml files? I use the .phtml extension vs .php ... If the scripts aren't working properly make sure the file extension is included in you Apache configuration as a PHP file

[PHP] format date

2002-04-16 Thread Alex
I just started with php and am trying to display a query result for a date field as mm/dd/ instead of mysql's -mm-dd. I looked through some books and found the use of DATE_FORMAT to covert the dates. Is there any other way to format the date? Thanks My script looks like this: $mont

RE: [PHP] format date

2002-04-16 Thread Steve Bradwell
Hey Alex, I use a short function like this because the date is really just a string you can pick it apart and re-arrange it. function Format_Date($Date){ return $Date = ((substr($Date,6,2))."-".(substr($Date,0,2))."-".(substr($Date,3,2))); } Steve. -Original Message- From: Alex [mailto

Re: [PHP] format date

2002-04-16 Thread Robert Cummings
Change your query, mySQL provides some powerful formatting functions for doing exactly what you want: SELECT id, fname, lname, DATE_FORMAT( date, '%m/%d/%Y' ) FROM tablename where date >= '$year_1-month_1-$day_1-' AND date <= '$year_2-$month_2-$day_2'; Che

[PHP] Screen Scraping using PHP

2002-04-16 Thread Phil Powell
I am having to do a remote URL screen scrape using PHP in "safe-mode". What do you recommend I do? Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] format date

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 01:35 PM, Alex wrote: > I just started with php and am trying to display a query result for a > date > field as mm/dd/ instead of mysql's -mm-dd. I looked through > some > books and found the use of DATE_FORMAT to covert the dates. Is there any > othe

Re: [PHP] session_is_registered

2002-04-16 Thread Norman Zhang
Sorry. I'm still getting empty output. Are there some global variables that I must set in php.ini? phpinfo() tells me that I have register_globals off Session Support enabled session.auto_startoff session.cache_limiter nocache session.cookie_secure off Regards, Norman "Oliver Be

[PHP] unlink security problem

2002-04-16 Thread Patrick Cossette
I'm running PHP 4.1.2 as an Apache module (Apache 1.3.24) under AIX 4.3.3. My problem has been covered in Bug #13447 but I still have it and the bug was under Windows 2000 but I'm running AIX. It's a security problem with "unlink". My site runs as the user "web" but different parts of my site are

[PHP] Checking for TTF in a script

2002-04-16 Thread Jackson Miller
I am working on am application that is using the GD library to create the navigation menu. I would like to check for TTF support in a script before I declare the image size. The reason for this is so I can create width based on the length of the string if TTF is enabled and take a guess if TTF

[PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I am in a function called Login2 in which I call the following: session_start(); session_register("valid_user"); session_register("privs"); valid_user contain a name - Jim privs contains a number -1 Right after I call those I try a is_registered and it showed that these registered correctly. I

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 02:40 PM, Jeff Lewis wrote: > Right after I call those I try a is_registered and it showed that these > registered correctly. I removed that code and added a call to another > function: redirectinternal(); You can avoid the whole "session_register()" business if

[PHP] attachment filename

2002-04-16 Thread ROBERT MCPEAK
The code below very nicely sends an email attachment, but, the name of the attachment appears as "Part.000," not the original filename of the attached file. How do I set the filename of the attachment? I'd like it to be something nice, like "yourfileattachment.txt" or something, not "Part.000."

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 10:50, Jason Wong wrote: > > > > - Original Message - > > From: "Martín Marqués" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, April 16, 2002 8:29 AM > > Subject: [PHP] viewing get/post variables > > > > > I can't remmeber how to configure php.ini so

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Kevin Stone
I think the problem is one of scope.. though I have never tried starting a session inside a function so I really don't know how it operates. But if you do something like.. // function is_valid($user, $privs) { // validate user.. if ($valid) {return TRUE;} } if (is_va

RE: [PHP] session_is_registered

2002-04-16 Thread Johnson, Kirk
With register_globals off, try this: Kirk > -Original Message- > From: Norman Zhang [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 12:15 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] session_is_registered > > > Sorry. I'm still getting empty output. Are there some glo

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I've decided to use the _SESSION method instead and it works just fine :) So...thanks for suggesting that method, as it does look neater in the code as well. Jeff - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Jeff Lewis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
If no one in this forum can answer this, can someone point me in the direction of list or other resource that may be able to provide some input? Thanks in advance. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 9:22 AM To: [EMAIL PROTEC

  1   2   >