RE: [PHP] PHP Editors

2001-02-15 Thread Dallas Kropka
www.textpad.com Wonderful app, highlighting, keeps your tabs lots of keyboard shortcuts and lots of customization. This is what all my developers prefer. Dallas K. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: [PHP] HTML Coding in mySQL field

2001-02-15 Thread Maxim Maletsky
any kind of field that accepts text (CHAR, VARCHAR, BLOB (TEXT, LONGTEXT) etc) is OK. htmlspecialchars will encode that for you and show HTML as HTML visibly. see here: www.php.net/htmlspecialchars Cheers, Maxim Maletsky -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTE

Re: [PHP] Where is Regex List of Operators?

2001-02-15 Thread Ted Goranson
>Ted Goranson pressed the little lettered thingies in this order... >.. > > I'm faced with writing some rather difficult regex's, and would like > > to be pointed to a comprehensive list of POSIX regex operators. >... >try: >http://www.contactor.se/~dast/mail2sms/regex.shtml >http://www.ciser.co

RE: [PHP] form variables showing blank but query shows non-blank ??

2001-02-15 Thread Maxim Maletsky
what about the form itself? I see no problems in here (except of course that you disclosed your mySQL host, login and password) Cheers, Maxim Maletsky -Original Message- From: Andre Bajew [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 2:57 PM To: [EMAIL PROTECTED] Subject:

[PHP] form variables showing blank but query shows non-blank ??

2001-02-15 Thread Andre Bajew
Hi, I have a form that has 4 variables, one, $pass_category, being a select list. The form posts a php script. Once inside the PHP script if I have not selected one of the select list variables the value should be blank. If I echo this out the value shows as blank. However, I later check the valu

Re: [PHP] can we select image field from mssql use php

2001-02-15 Thread Jaxon
sounds like a windows bug... and not enough info to diagnose. why is filename in [] by the way? you may wish to include more of you connection script as well. first thing I would try with an error like that is to upgrade your PHP. sounds like you have .dll's arguing for memory address space - i'

[PHP] can we select image field from mssql use php

2001-02-15 Thread codemake
hi: i use php 4.0 and win 2000 chinese edition and mssql 7.0 i have table with image field name is "isospicture" here is my script when mssql_querry execute there will error message "0x7332fcbb" command reference "0x00bcb000" memory can't written why ? $SQL = "Select isospicture from

RE: [PHP] True || False ?

2001-02-15 Thread Maxim Maletsky
oops ... I think I got too far from your original question: yes, function returnMeFoo($foo=0) { if($foo) return true; return false; } if(returnMeFoo()) echo 'you will not see this echo'; elseif(returnMeFoo(1)) echo 'but if you see this means the function returned as true'; C

RE: [PHP] True || False ?

2001-02-15 Thread Maxim Maletsky
Yeah, sure you can, if return is found in function it then exits it. for example avoiding 'else' statements: function returnMeFoo($foo=0) { if(!$foo) return "Hey, you forgot to type a number in"; if($foo>5) return "$foo is bigger then 5"; if($foo<5) return "$foo is l

Re: [PHP] HTML Coding in mySQL field

2001-02-15 Thread Steve Werby
"Thomas Edison Jr." <[EMAIL PROTECTED]> wrote: > IN one of the fields being offered to the user, the > user is expected to enter HTML tags alongwith the > text. How can i display this text as html formatted on > my PHP3 page? That's how it will show by default. > What should be the field type in

Re: [PHP] Editor with line counter for WIN95

2001-02-15 Thread Ankur Verma
www.editplus.com best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Info" <[EMAIL PROTECTED]> To: "Php General" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 1:15 AM Subject: [PHP] Editor with line counter for WIN95 > Notepad, Wo

[PHP] HTML Coding in mySQL field

2001-02-15 Thread Thomas Edison Jr.
IN one of the fields being offered to the user, the user is expected to enter HTML tags alongwith the text. How can i display this text as html formatted on my PHP3 page? What should be the field type in the mySQL db? should it be TEXT? Regards, T. Edison jr. = Rahul S. Johari (Director) **

Re: [PHP] Compiling PHP for Apache.

2001-02-15 Thread Ankur Verma
you might find this useful http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 8:17

RE: [PHP] PHP Editors

2001-02-15 Thread John Monfort
__John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___+- On Fri, 16 Feb 2001, Maxim Maletsky wrote: > This issue is better to search

Re: [PHP] True || False ?

2001-02-15 Thread Toby Butzon
Yes, you can return false. As for "true booleans", PHP doesn't really have a boolean type - it does have a sense of "true" and "not true" though. You can return false (a case-insensitive constant with the value 0) or true (whose value is probably 1 but could really be anything other than 0 or th

[PHP] menu / navigation class

2001-02-15 Thread scottrus
All - I'm looking to see if anyone knows of a php class for menu navigation. I'm looking for a pure php / html solution and would like to have the following features: bread crumb trails like: "Home >> Level 1 >> You are here" tree style menu navigation (unlimited levels) tree layout not de

[PHP] Is this potentially a problem?

2001-02-15 Thread Michael
Hi everyone! I wrote a script which utilises semaphore and shared memory. It polls the shared memory for an event before breaking from the polling function. I wrote another script that the sets this event in shared memory. How I tested the script was as follows: I ran 3 ttys, two of them running

[PHP] True || False ?

2001-02-15 Thread Jonathan Sharp
How does php handle true and false? Do they act as true booleans? Can I do? function foo() { return false; } Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] Newbie User Def Function Question

2001-02-15 Thread Jonathan Sharp
if you're creating an instance of a class object someFunction("Foobar!"); ?> Cheers, -Jonathan Sharp > -Original Message- > From: Jeff Oien [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 15, 2001 8:01 PM > To: PHP > Subject: [PHP] Newbie User Def Function Question > > >

[PHP] can we load mssql image file from php ?

2001-02-15 Thread codemake
hi: i use php 4.0 and win 2000 chinese edition and mssql 7.0 i have table with image field name is "isospicture" here is my script when mssql_querry execute there will error message "0x7332fcbb" command reference "0x00bcb000" memory can't written why ? $SQL = "Select isospicture from is

[PHP] Newbie User Def Function Question

2001-02-15 Thread Jeff Oien
Could anyone give me the correct syntax for calling a function. I have a block of code I want to reuse. How do I name this code block and how do I call it? Having a hard time finding an answer looking through docs. It's so basic I can't find an explanation. :) Jeff Oien -- PHP General Mailing L

Re: [PHP] Passing vars

2001-02-15 Thread Andrew Hill
You may wish to consider why you need to pass 30 lines of code in a variable. If the code is static, store it in include files and then pass it in depending one a variable if ($variable=1) { include(your30linefile); } else { inclue(someotherfile); } or to use a database query

RE: [PHP] Searching Archives

2001-02-15 Thread Maxim Maletsky
That will be up on PHPBeginner.com within few days. I think the knowledgebase will become available at least within a week or so, (time for us to find all the info needed to start it) Please help me with it if you know how. Cheers, Maxim Maletsky -Original Message- From: Jonathan Sha

RE: [PHP] pro's and con's of storing images

2001-02-15 Thread Maxim Maletsky
Exactly my point ... when it is needed it is good to use it, But for an e-commerce site for example, associating graphics with products it is too stupid to have these in databases. Just call them like 25558.gif and in the script and it's UP! That what I try toy make people understand, some

[PHP] Searching Archives

2001-02-15 Thread Jonathan Sharp
> This issue is better to search for in archives ... > I can count hundreds of such threads in my mailbox already... * SNIP * > Cheers, > Maxim Maletsky What about creating some kind of 'knowledge base' or like integrating this mailing list into php.faqts.com? There are so many threads that keep

Re: [PHP] pro's and con's of storing images

2001-02-15 Thread Andrew Hill
This may be getting off topic, but the only way storing images in a database DOES make sense is if you are accessing the the database via WebDAV. .02 Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastruct

[PHP] About to update

2001-02-15 Thread Joseph H Blythe
Hey all, I am about to update one of our servers (i386) running RedHat-6.0 smp to: Apache-1.3.17 MySQL-3.23.33 ModSSL-2.8.0-1.3.17 PHP-4.0.4pl1 ZendOptimizer-1.0.0-4.0.4 Does anyone know of any problems/incompatabilities between the above packages on the above platform. I am mainly doing this

RE: [PHP] Restrict access per IP Address

2001-02-15 Thread Maxim Maletsky
if(getenv('REMOTE_ADDR')==$my_IP) $LetMeIn = 1; else unset($LetMeIn); Cheers, Maxim Maletsky -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 8:31 AM To: PHP Mailing List Subject: Re: [PHP] Restrict access per IP Add

RE: [PHP] Structuring large PHP programs

2001-02-15 Thread Maxim Maletsky
A large application should be a set of well organized files having one single include at the top. And in that include you do all kind of things. Of course auto_prepend works always better /... but not always possible, right... use classes, reuse files ... libraries etc ... Cheers, Maxim Maletsk

RE: [PHP] Environment Variables ???

2001-02-15 Thread Maxim Maletsky
Well, you should write some peace of code that will track your users Try to search on Goggle, hotscripts.com etc ... PHP cannot tell it to you automatically ... it can give you some data using which with some logic you can arrived other point you know who they are and how they found you ...

RE: [PHP] ereg problem

2001-02-15 Thread Maxim Maletsky
- hyphen is something a bit special in RegEx .. read the manual, I think you should escape it. Cheers, Maxim Maletsky -Original Message- From: Janet Valade [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 3:21 AM To: '[EMAIL PROTECTED]' Subject: [PHP] ereg problem I am

RE: [PHP] Passing vars

2001-02-15 Thread Maxim Maletsky
you can use sessions .. php.net/sessions the session are cookies which will remember the user and will copy what you need on your system, making these 30 lines available only to him for the time you specify. Cheers, Maxim Maletsky -Original Message- From: Tanya Brethour [mailto:[EMAIL

RE: [PHP] Re: Access my script

2001-02-15 Thread Maxim Maletsky
just type it in your browser ... or make .html to be parsed for PHP and include('the_file.php3') Cheers, Maxim Maletsky -Original Message- From: Barry Fawthrop [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 3:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Access my scr

RE: [PHP] Qoute problem

2001-02-15 Thread Maxim Maletsky
why not str_replace('"','|', $describe); ? this gotta work ... Cheers, Maxim Maletsky -Original Message- From: Tanya Brethour [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 3:17 AM To: Web master Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Qoute problem Let says I strip

RE: [PHP] require('asdf')

2001-02-15 Thread Maxim Maletsky
Use require("$DOCUMENT_ROOT/includes/folder/file.inc") from any place on you website... in other words you need to use the full path to the file. Cheers, Maxim Maletsky -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 3:05 AM To: PH

RE: [PHP] PHP Editors

2001-02-15 Thread Maxim Maletsky
EditPlus does that ... it's on Win... but again, search archives ... Cheers, Maxim Maletsky -Original Message- From: Michael McGlothlin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 2:53 AM To: Matt DeLong Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Editors I write al

RE: [PHP] @ Scope

2001-02-15 Thread Maxim Maletsky
It will escape the error ... or better say you force the function to always return true. Very useful if you don't really care whether you succeed or not. Like during user tracking, you don't want to exit the script only because something went wrong while you were curious where did he come from,

RE: [PHP] Why???

2001-02-15 Thread Maxim Maletsky
This 'setting' is one of the best things PHP got. Yes, you can configure PHP.ini so it won't put '/' infront " or ' but then you'll have to do it yourself in the script... This is more a security issue, it is needed, believe me Cheers, Maxim Maletsky -Original Message- From: John V

RE: [PHP] need better solution

2001-02-15 Thread Maxim Maletsky
yeah ... then at this point why not to use PHPLIB that has it built in already... phplib.netuse.de a great thing ... Cheers, Maxim Maletsky -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 1:02 AM To: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Why???

2001-02-15 Thread Maxim Maletsky
Sure, here's the fix -- stripslashes() ! I'll explain : in PHP certain caracters have to be escaped to prevent these hackers breaking your code up. By default configuration PHP will automatically insert a backslash '/' infront of every "dangerous" caracters received via GET, POST ect ... for i

RE: [PHP] date maniplations

2001-02-15 Thread Maxim Maletsky
you could use explode() function of PHP: $date = 'MM/DD/'; $date_a = explode('/', $date); $mm = $date_a[0]; $dd = $date_a[1]; $ = $date_a[2]; $date = "$mm/".($dd+$n)."/$"; So here you have your date + something else ... of course your exaple is smarter since in here I could manage t

RE: [PHP] need better solution

2001-02-15 Thread Maxim Maletsky
use mysql_query($. , ) or die(mysql_error() . ' oopps.. big time ') Cheers, Maxim Maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:51 AM To: [EMAIL PROTECTED] Subject: [PHP] need better solution I need a

RE: [PHP] Help Work with files

2001-02-15 Thread Maxim Maletsky
Read the following : http://www.php.net/manual/en/ref.filesystem.php Cheers, Maxim Maletsky -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:14 AM To: PHP Mailing List Subject: [PHP] Help Work with files Hello, I need to work

RE: [PHP] $PHP_SELF in Netscape PART 2

2001-02-15 Thread Maxim Maletsky
Why don't you instead try to learn the strings handling ... I persoanlly never used commas in strings ... looks suspicious to me ... Cheers, Maxim Maletsky -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:11 AM To: [EMAIL PROTECT

RE: [PHP] $PHP_SELF in Netscape PART 2

2001-02-15 Thread Maxim Maletsky
This is not browser problem ... here: echo "" . $subcategories[$index] ."'; This will always work. Cheers, Maxim Maletsky -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 11:54 PM To: [EMAIL PROTECTED] Subject: [PHP] $PHP_SE

RE: [PHP] PHP Editors

2001-02-15 Thread Maxim Maletsky
This issue is better to search for in archives ... I can count hundreds of such threads in my mailbox already... here: www.EditPlus.com, it is better, cooler, simpler and faster then textpad which I used for a whole bunch of time and simply uninstaller once I found EditPlus,. Cheers, Maxim Male

RE: [PHP] PHP globals aren't really globals

2001-02-15 Thread Maxim Maletsky
I never used 50 of them, but I think there's such a thing as 'register globals' wchich makes all if the globals become available inside your funcs.. no idea how to use it ... I feel like I've seen it in someone else's code ... correct me if I am wrong ... Cheers, Maxim Maletsky -Or

RE: [PHP] re:linebreak

2001-02-15 Thread Maxim Maletsky
for the tabs? use Regular Expressions to do all that kind of jobs if you really need it: $multiplier = 4; $text = ereg_replace("\t", str_replace(' ', $multiplier), $text) Or simply use our good-old tag. Cheers, Maxim Maletsky -Original Message- From: Jens Nedal [mailto:[EMAI

RE: [PHP] pro's and con's of storing images

2001-02-15 Thread Maxim Maletsky
How many times do I have to post it here ... People, store the graphics (or any other kind of uploaded and not-uploaded files) our of DBs, put them in some logic way in some directories so they are easier to use. Not in DB. In DB it will just getting slower. UNLESS there is no other solution fo

RE: [PHP] apache & php

2001-02-15 Thread Maxim Maletsky
Then just follow it. Read INSTALL file in PHP distribution Cheers, Maxim Maletsky -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:01 PM To: [EMAIL PROTECTED] Subject: [PHP] apache & php help! i want to get started! how do c

RE: [PHP] strange behavior of mysql & php

2001-02-15 Thread Maxim Maletsky
Well, If you got it from myPHPadmin then you'll get it from the website as well. Both are on the web and using PHP. Make sure you have all the passwords right. (Just like in phpmyadmin) Cheers, Maxim Maletsky -Original Message- From: Altaf Shaikh [mailto:[EMAIL PROTECTED]] Sent: Wedn

RE: [PHP] charactersets

2001-02-15 Thread Maxim Maletsky
I think you haven't use the proper charset in your HTML header ... try to simply encode the page in the language you use, it should be the same. I am using Japanese characters in here and they work without I ever change anything in mySQL. However they won't show up in browser unless I encode the

Re: [PHP] what is quicker...

2001-02-15 Thread Mark Charette
And why, pray tell, son't you determine the quicker of the 1st 2 empirically? It's not very hard to roll & time a loop ... and then you won't have 10 different people guessing the answer. Mark C. "When the unknown is thought to be unknowable, gaps in knowledge are too readily filled by fancy, so

[PHP] what is quicker...

2001-02-15 Thread Bojan Gajic
I have to detect wheater some number can be divided with 100. About 4M times per day. So, what is quicker: 1. if($num==fun($num/100)), where fun is round/ceil/floor, or 2. if($num%100), or 3. something else... $num is int, of course TIA bojan -- PHP General Mailing List (http://www.php.net/) T

[PHP] TCP/IP Server Question

2001-02-15 Thread JCampbell
I was recently looking at the talker example at http://www.php.net/manual/en/ref.sockets.php Does anyone know an example of making this same code for multiple connections. I'd love to see any working examples www.PictureArena.com === The lack of humility before natu

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Nuno Silva
Richard Lynch wrote: [snip...] > I think the idea is this: > > 1. LOCK TABLES invovled. > 2. Get the current values for all records you are about to change. > 3. Attempt to make changes. > 4. If any of the attempted changes fails, change back the ones that > succeded.* you just can't relie on

RE: [PHP] Run MySQL with COM?

2001-02-15 Thread Jeff Oien
> > I have a music database for my wife. She's on a client computer > > and I have Apache, MySQL, PHP and her database on my computer, > > the server. I always have Apache running but not MySQL. Can I > > have a PHP script that would run MySQL using COM? I haven't > > looked into COM yet so any re

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Steven Hirschorn
On Fri, 16 Feb 2001 at 02:03:42, [EMAIL PROTECTED] writes >> with the same effect - 20010213173654 becomes >> Monday, 18th January 2038. Is there a problem with the way I'm passing >> the timestamp to the date command? > >Your timestamp looks bogus. On normal systems this can only be a 32 bit >int

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Rog
[EMAIL PROTECTED] wrote: >Your timestamp looks bogus. On normal systems this can only be a 32 bit >integer and there will be an overflow at that time. His timestamp is perfectly fine, it's just in the wrong format. His is formatted to YearMonthDayHourMinuteSecond and you (and the date function

Re: [PHP] the best so far

2001-02-15 Thread Richard Lynch
function christians_error_handler($errno, $error, $file, $line, $context){ $full_debug = 1; #set to 0 for less output. echo "Error $errno: $error\n"; echo "In: $file, line number $line\n"; if ($full_debug){ print_r($context); } exit; } set_error_handler('christians

Re: [PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Richard Lynch
Data coming from a POST or GET is a string, by definition -- A URL just doens't contain any data type information, and PHP isn't going to sit there and try to guess what the data type of $x should be. You'll need to check its validity as an integer by using something like this: if (strlen($quant

Re: [PHP] Run MySQL with COM?

2001-02-15 Thread Richard Lynch
> I have a music database for my wife. She's on a client computer > and I have Apache, MySQL, PHP and her database on my computer, > the server. I always have Apache running but not MySQL. Can I > have a PHP script that would run MySQL using COM? I haven't > looked into COM yet so any resources wo

Re: [PHP] PHP and cookies and/or headers

2001-02-15 Thread Richard Lynch
In your main page: Note: I usually swap the needle/haystack and have to look them up, but you probably won't just use strstr anyway, so I didn't. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little ti

Re: [PHP] Code Optimizer

2001-02-15 Thread Richard Lynch
> Is there anything that evaluates PHP code and checks for optimization? Not > like the Zend Optimizer, but one that checks for things such as variables > that were defined but never used, repeated variables, unnecessary > statements or constructs? Basically a code cleaner such as C, C++, Java, >

Re: [PHP] $HTTP_POST_VARS

2001-02-15 Thread Richard Lynch
http://php.net/FAQ.php talks about HTTP_POST_VARS a little... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Augusto Cesa

Re: [PHP] MS SQL and Date Fields

2001-02-15 Thread Richard Lynch
MS SQL almost for sure has a way to do this in your SQL, which will be faster than PHP's mktime() anyway. You'll have to read the MS SQL docs to find it, though... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunt

Re: [PHP] Best Remote Php/Mysql host

2001-02-15 Thread Richard Lynch
http://hosts.php.net http://hostbaby.com would be my current recommendation. Hi Derek! -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message

Re: [PHP] Help with session

2001-02-15 Thread Richard Lynch
I think you want the session_start() and session_register() calls at the top of the script, not buried in your if() statements. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.c

Re: [PHP] SMTP

2001-02-15 Thread Richard Lynch
I think you *can* use the "for win32 only" stuff on Linux if you want to send your mail to a different server... Also, Manuel Lemos' email class will let you spew at any server on port 25, I think... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD:

Re: [PHP] realpath() problem....

2001-02-15 Thread Richard Lynch
> I need some help in using the function > > $try = realpath("./filename"); > > I get a blank page when I try to echo. $try realpath() doesn't do anything like try to figure out what you handed it relative to the file system or anything. It just takes whatever you give it literally. The path pa

Re: [PHP] list only checkbox-marked records on a new page

2001-02-15 Thread Richard Lynch
... ... ... The user shall mark interesting records and upon submitting the form shall be shown on a new page showing only the marked records. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

Re: [PHP] (roberto)Standar of modules of PHP3 ...how i can make a extension in C/c++ for this version?

2001-02-15 Thread Richard Lynch
Extending PHP3 requires that you read that text file in the source... apidoc.txt? something like that, and then do whatever it says. PHP4 has much easier ways to extend the functionality. Upgrade if you can. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music?

Re: [PHP] fsockopen timeout not working

2001-02-15 Thread Richard Lynch
Isn't there a set_blocking function you have to call first?... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Plamen Slav

Re: [PHP] uploading files

2001-02-15 Thread Richard Lynch
> Can you get php to upload an image if you have the direct location of the > file (ie. c:\bar\foo\bar\foobar.jpg), but the only thing is that I am not No. Where the file lives on the user's computer is irrelevant, and you can't just go snagging it. If you could, you could go snagging all their

Re: [PHP] PHP and PGP

2001-02-15 Thread Richard Lynch
Search the mailing list archives for about 2 years ago with my name and "gpg" as a key. Then, find the guy who followed up with how to use popen() instead of exec() for better security. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e

Re: [PHP] download prompt not woking on macintosh

2001-02-15 Thread Richard Lynch
In addition to every header you can find, use: http://yoursite.com/download.php/foo.jpg?download=foo.jpg Yes, that extra foo.jpg looks real goofy in there. PHP will ignore it. Your web-server will ignore it. Only really badly broken software products (IE) will say, "Hey, let's *ignore* all those

Re: [PHP] charactersets

2001-02-15 Thread Richard Lynch
You'll need to use some way to convert é to &eaccentgrave; or whatever the HTML Character entity is for that. And it probably won't work at all inside of a menu or a button, which relies on the underlying OS, which probably only accepts ASCII. -- Visit the Zend Store at http://www.zend.com/store

Re: [PHP] mail not sending to multiple address

2001-02-15 Thread Richard Lynch
Try changing all your \n to \r\n. RFC is \r\n. Un*x mail programs are smart enough to take \n Microsoft mail programs are not that smart. Put in the space after Cc: and before your email. The space is *required* by some (all?) emailers? -- Visit the Zend Store at http://www.zend.com/store/ Wa

Re: [PHP] ezmlm response (fwd)

2001-02-15 Thread Richard Lynch
> return ($va1, $var2); echo $val1, "|", $var2; Site A will get back whatever B *echos* out. You may need some other delimiter than "|", depending on your data. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Vo

Re: [PHP] Still can't talk to the Oracle

2001-02-15 Thread Richard Lynch
- Original Message - From: Kristofer Widholm <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, February 13, 2001 5:29 PM Subject: [PHP] Still can't talk to the Oracle > I'm setting up a back end production system for a television show, > and have been given space on a developmen

Re: [PHP] Short tags - proper name?

2001-02-15 Thread Richard Lynch
> I was just wondering if there's a "proper" name for what I've been > calling the "short equals tag" ( there's actually a name for it or (if not) if somebody has a more > descriptive name for it. I call it the "Stop ASP-ers whining about how great <%= is so I can get back to work" tag. Guess i

Re: [PHP] empty form field => pgsql NULL gracefully how?

2001-02-15 Thread Richard Lynch
> INSERT INTO testtab2 > VALUES ( upper('$symbol'), '$two_liner', '$href', > '$full_desc', '$submitter_name', > '$submitter_email', CURRENT_TIMESTAMP ) > > I hate to muck them up with a bunch of tests for empty vars, which then > need to be replac

Re: [PHP] Setting Enviromental variables

2001-02-15 Thread Richard Lynch
> I know that by using the header you can bring up a standard user > authenication dialog box, that sets the EVs: > $PHP_AUTH_USER > $PHP_AUTH_PW > > But is it possible to use a custom form to set these variables manually for > site wide useage? No. The browser sends those variables on each page

Re: [PHP] session_register()

2001-02-15 Thread Richard Lynch
> session_start(); > session_register('email'); > $session = session_id(); > $userid = '$user'; > $sql = "SELECT * > FROM users > WHERE user='$user' and pass='$pass'"; > if ($num == 1) { > include "quote2.php"; > } Unless quote2.php sets $email, you've never set it to anything. You'v

Re: [PHP] sorting a csv text file in PHP

2001-02-15 Thread Richard Lynch
> Hi list, > I have a csv text file that looks like this: > > Mike,1,Monday 12th of February 2001 02:14:09 PM > Bob,3,Monday 12th of February 2001 02:14:17 PM > Marry,2,Monday 12th of February 2001 02:16:38 PM > > I'm trying to get it to sort by the 2nd value (number > descending and to show only

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Richard Lynch
> can someone explain me how to use LOCK TABLES to subtitute transactions? > > I don't seem to get how this is possible... and I really need this... I > have a script that updates 4 tables at a time, and I have to be sure all of > them are updated, or NONE... I can only see this possible using > c

Re: [PHP] Newbie dummy questions..... error messages

2001-02-15 Thread Richard Lynch
> I get the following on one of my pages, > > Warning: Use of undefined constant month - assumed 'month' in > > This site ran error free before, only after adding "Phorum" > > if ($brand == 'nut') { > > if (isset($brand)) { > if ($brand == 'nut') { > $item = "Chris King 2nut Headset"; > }

Re: [PHP] ssl

2001-02-15 Thread Richard Lynch
> is there anything we should be aware of > if we like that our php/mysql pages > are working with an ssl-server ? Nothing especially related to PHP, really, except what you would do anyway: Don't be having a bunch of files laying around that you don't know what they are or what they do or etc.

Re: [PHP] Apache/mod_rewrite for User Tracking

2001-02-15 Thread Richard Lynch
> I'm not sure how off-topic this may be, but I'll carry on anyway... 'Sokay, I'll force it back on-topic :-) > sent back to the page. Before now, I have cookies and IP address for user > tracking. If someone could accept a cookie (I used a self-referring script to Use PHP4's builtin session su

Re: [PHP] Fatal Error!

2001-02-15 Thread Richard Lynch
> Fatal error: input in flex scanner failed in /var/www/html/gcdb/lang on > line 1 > require("lang/".$config_row["Language"]); Try changing your 'require' to 'include'. I'm not real clear on the details, but if you are trying to suck in a variable-based filename, you might as well use '

Re: [PHP] COM vs ???

2001-02-15 Thread Richard Lynch
> I would like make some componnent on linux wich I can use on php. Like I > create a COM object on Windows and use it with a asp pages and reuse it in a > vb application without code duplicate, I would like install PHP on a > linux and not on a Windows. Things you need to search for and read

Re: [PHP] help: column into array?

2001-02-15 Thread Richard Lynch
> how can I reference a result set by array index numbers??? > id_field field > | > 1 first > 1 second > 1 third > 2 fourth > 2 fifth > > how can I do something like this: > > $array=mysql_db_query($database, $sql, $link_id); > >

Re: [PHP] Problems installing PHP 4.0.4pl1 on RedHat 6.2

2001-02-15 Thread Richard Lynch
> but when I run make... it says that there is nothing to do Do a make clean, and rm config.cache and try again. make clean tells it to start over, and recompile all that stuff it thinks it already compiled right the first time... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help

Re: [PHP] Building php4.0.4pl1 with mysql 3.23.32

2001-02-15 Thread Richard Lynch
> ./configure' '--with-apache=/root/Apachetoolbox/apache_1.3.17' > '--enable-gd-imgstrttf' '--with-mysql' '--with-mysql' '--with-pgsql' > '--with-ldap' Check your config.log files to see if you are using PHP's builtin MySQL support, or if it found your MySQL installation. If it is using the buil

Re: [PHP] A way to duplicate data across databases

2001-02-15 Thread Richard Lynch
> I'm making a script that generates test sites usíng dummy data stored in one > MySql database ("uwebsitebase") > > Now, using php-scripting, I'm copying these data to a demo-database > ("uwebdemo"). The structure is the same - the same tables with the same > fields. Only difference will be that

Re: [PHP] jpeg parsing

2001-02-15 Thread Richard Lynch
>Hello. I'll keep short. Does any of you guys out there know why "imagecreatefromjpeg" >cannot open remote files ? I have php-4.0.4pl1-Win32 with default gd lib. All other gd-things >work fine, and I DO have the access rights to the file. > >"thank you for your cooperation" :) It probably

Re: [PHP] checkbocks, arrays and more

2001-02-15 Thread Richard Lynch
> coke machine > vending machine > atm > dinner > public phone You probably have an "asset_id" field on each of those. > and someone is inserting a gas station there... and it has two dinners and > 3 public phones, so he would check the checkboxes referring to these and > add a little comment to

Re: [PHP] building binary data structures

2001-02-15 Thread Richard Lynch
> Having written loads of stuff in PHP, I find myself having for the first > time to generate binary data in memory - I actually need to build a native > file for a drawing program in memory. The data consists mainly of lists of > 32bit little endian integers - some signed and some unsigned. I've

Re: [PHP] cgi execution w/php failing

2001-02-15 Thread Richard Lynch
> I've read through the archives and still must be missing something. I > need to execute a cgi script from php. This seems fairly trivial, but I > can't get it to work. > > the cgi script is clean -- executes from the command line without issue > and is 755 > from php the follwing is used: > > >

RE: [PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Jason Murray
> I have a strange problem, when a user inputs the quantity > into a text input field in a cart, I want to be able to test > to see if the value is a integer if it isn't then default it to 1 > > if ( !is_int($Qty) ) { > $Qty = 1; > } Off the top of my head (and thus probably hideously wrong),

  1   2   3   >