Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Alexander Wagner
Paul S. wrote: > I design a website on a PC, and upload it to UNIX. Of course, there > are always one or two variables that I have to keep track of as to > whetherteh server is UNIX or PC. There MUST be a simple way to test Just do a phpinfo(). There should be an environment-variable you should

Re: [PHP] error

2001-08-15 Thread Alexander Wagner
Eduardo Kokubo wrote: > Hi, > How can I change this error message to my own message? > Warning: fopen("publico/d/bibliografia.html","w+") - No such file or > directory There are two possibilities: 1) Use @fopen() instead of fopen(). This will supress the error-output. If fopen returns false,

Re: [PHP] How to copy files from one directory to another directory through php on linux platform??

2001-08-09 Thread Alexander Wagner
Balaji Ankem wrote: > Hi! dearest friends, > How to copy files from one directory to another directory through > php on linux platform?? - Be sure you have permission to read the files to be copied and to write into the destination-directory. This is rather UNIX-specific than related to PHP.

Re: [PHP] Re: Is there a debugger ???

2001-08-08 Thread Alexander Wagner
J Smith wrote: > For PHP 4, I believe you need to purchase the Zend Debugger from > Zend. It comes as part of the Zend Developer's Suite. There is also a free debugger. http://dd.cron.ru/dbg/ regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (htt

Re: [PHP] converting numeric to a string

2001-08-07 Thread Alexander Wagner
Don wrote: > Hi, > > I'm looking at the 'String' section of the online documentation. I > cannot find a function that converts a numeric to a string, e.g., 1 > --> "1". > > Am I blind or does this not exist? With loose typing, this is not really necessary. If I'm wrong here, you might use setty

Re: [PHP] Turning off Content-type header.

2001-08-06 Thread Alexander Wagner
Karl Austin wrote: > Does anyone know how to turn off the content type header? The binary > compiled from the source (I am assuming the source needs changing?) > will only be used for a single script that needs to not produce any > spurious output such as the Content-type header. php -q script.ph

Re: [PHP] count()?

2001-08-06 Thread Alexander Wagner
Jeremy Morano wrote: > Hi, I was woundering how to read and find the # of records in my > table... Do I use count()??? select count(*) from table regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] .htaccess

2001-08-06 Thread Alexander Wagner
MindHunter wrote: > I've seen this all over. I had a QUICK look at the manual and can't > find much. In short, what is it, what is it used for and is it > WIN/UNIX-LINUX specific. Also any good readings on it will be > appreciated. It is Apache-related, so it will work on any OS Apache can run

Re: [PHP] <---- is being an ass!

2001-08-02 Thread Alexander Wagner
Kyle Smith wrote: > Ok have installed PHPTriad, when i run apache (gulp) dos opens, all fine > BUT when i run PHP.exe well look down (sorry if im not allowed to post > pictures but, its small!) That attachment was apperantly chopped off. If you want to post a file on this list, just upload

Re: [PHP] Attitude of B van Ouwerkerk

2001-08-01 Thread Alexander Wagner
scott [gts] wrote: > so now it's shifted from his attitude to your seeming > inability to cope with "words related to sexual intercourse"? > > we all need to calm down and relax. Hey, all I said was that he did not RTFM, but RTM, the version without "fucking". regards Wagner -- Madness takes

Re: Fwd: Re: [PHP] dumb mysql_connect issue

2001-07-31 Thread Alexander Wagner
CGI GUY wrote: > " Access denied for user: 'username@hostname' to > database 'tablename' " > > 1. The uid/password set I am using has full > privileges. > 2. *tablename* is not a database (the code I listed in > my previous email is syntactically identical to the > script)-- it's a table. > > Why

Re: [PHP] dumb mysql_connect issue

2001-07-31 Thread Alexander Wagner
CGI GUY wrote: > Is there anything (add. parameters, etc.) that I'm > missing that would possibly explain why the following > code won't execute? What does it say? Any errors? Are any of your messages printed? regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General

Re: [PHP] Attitude of B van Ouwerkerk

2001-07-31 Thread Alexander Wagner
B. van Ouwerkerk wrote: > Ask yourself.. who has an attitude problem here.. Someone who didn't > read the manual.. or someone (/me) who wrote to RTFM. You didn't even RTFM him. I found it to be more like RTM, the more gentle version (the one without words connected to sexual intercourse). Your a

Re: [PHP] references

2001-07-31 Thread Alexander Wagner
scott [gts] wrote: > i've been reading over the docs on references, and i > can't see anyway to pass around functions as references. > i know how to do this easily with perl, but i cannot > seem to find the correct syntax for creating a reference > to a function in PHP. >[..] > any and all help is

Re: [PHP] Array Bug?

2001-07-30 Thread Alexander Wagner
File a bug-report on bugs.php.net regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMA

Re: [PHP] NuSphere.. what is it???

2001-07-30 Thread Alexander Wagner
Kraa de Simon wrote: > I agree on most parts, but is there "transaction support" in MySQL? Berkley-DB tables support transactions. regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] GD library

2001-07-28 Thread Alexander Wagner
Manu Verhaegen wrote: > I want to install the GD library for PHP > I seek libpng and zlib and jpeg-6b can you help me For what OS? regards Wagner -- "Isn't it strange? The same people who laugh at gypsy fortune tellers take economists seriously." - Cincinnati Enquirer -- PHP General Mai

Re: [PHP] ascii of euro

2001-07-27 Thread Alexander Wagner
George Pitcher wrote: > According to my character map, its 0128 ... if its on the font. What character map is that? Ascii? Ascii is way older than that symbol and has not been changed for quite a while, I think, if it ever has. Do you mean Ansii? Or Iso-8859-15? regards Wagner -- Madness tak

Re: [PHP] ascii of euro

2001-07-27 Thread Alexander Wagner
Karl Phillipson wrote: > Does anyone know what the ascii version of a euro symbol is? There is none. regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Big difference?

2001-07-25 Thread Alexander Wagner
Henrik Hansen wrote: > > The difference between echo and print is that print returns a > > boolean value, so you can check if "blah blah" was successfully > > printed. > > hmm isen't it always succesfull printed or did I miss something? IIRC print will return false if the connection is aborted

Re: [PHP] is this right

2001-07-24 Thread Alexander Wagner
Jeremy Morano wrote: > insert into test (uid, companyUid) > values(1, select uid from companysTable where company = "Micrsoft"); insert into test (uid, companyUid) select 1,uid from companysTable where company = "Micrsoft"; I hope this works. HTH Wagner -- Madness takes its toll. Please have

Re: [PHP] PHP & MySQL

2001-07-20 Thread Alexander Wagner
Erich Kolb wrote: > When you query a MySQL Database, how do you set the order > alphabetically? SELECT whatever FROM wherever ORDER BY insert_fieldname_here regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] concatentation problems ...

2001-07-19 Thread Alexander Wagner
Kenn Murrah wrote: > I need to concatenate several variables, some of which are text and > some of which are integers ... e.g. > > $desired_string = $number . $text . $number2 . $text > > always seems to truncate after first number ... Strange. If that's really the case, you might try to type-cas

Re: [PHP] quotes

2001-07-12 Thread Alexander Wagner
Heidi Belal wrote: > I have a problem using apostrophes/single quotes. > I am using PHP and MySQL. The user enters data into > the text field and everything goes ok, until an > apostrophy/single quote is added in the middle of the > text - then disaster occurs! Use addslashes() on the text befor

Re: [PHP] RE: [correction] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread Alexander Wagner
SED wrote: > What I really wanted ask about was if any knows about GD 2.x version > with build in GIF-support (I need both GIF-support and all the new > GD-JPEG function to work on the same time). This is probably impossible, for legal reasons. Gif-Support had to be dropped from GDlib because of

Re: [PHP] referring url

2001-07-11 Thread Alexander Wagner
Joseph Bannon wrote: > Is there a way in PHP to get the referring url when a link is click > to get to that page? $HTTP_REFERER getenv('HTTP_REFERER') regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Alexander Wagner
Don wrote: > Has anyone tries any test loading PHP pages into IE 5.x and Netscape > 4.7x? This is in no way related to PHP. It's just the old Netscape taking lots of time for +rendering large pages, especially with nested tables. regards Wagner -- Madness takes its toll. Please have exact cha

Re: [PHP] Number of the line ?

2001-07-06 Thread Alexander Wagner
Emmanuel FAIVRE wrote: > i'm currently writing a debugging lib in PHP and i would like to find > the number of the line in my script > 1 2 echo "i'm on line $NUMBER_LINE\n"; > 3 echo "i'm on line $NUMBER_LINE\n"; > 4 ?> It's __LINE__, I think. regards Wagner -- "Isn't it strange? The same peo

Re: [PHP] Batch job in UNIX.

2001-07-05 Thread Alexander Wagner
Johan Vikerskog (ECS) wrote: > But i want dont want to type in the password. I want to have the > password in the command file. "--password=whatever_it_is" instead of "-p" ? If that doesn't help, try ./mysql --help regards Wagner -- Madness takes its toll. Please have exact change. -- PHP G

Re: [PHP] Batch job in UNIX.

2001-07-05 Thread Alexander Wagner
Johan Vikerskog (ECS) wrote: > If i want to add something into a table with just the mysql command. > Is this possible. > > Like > ./mysql -p -u root test "insert into..." > > Something like this.Is that possible and how in that case. echo "insert into..." | ./mysql -p -u root test or cat filenam

Re: [PHP] php serialize

2001-07-03 Thread Alexander Wagner
scott [gts] wrote: > i want to write serialize() and unserialize() in perl > so that arrays (no objects or references yet) can be > read/written by both PHP and Perl to help with my > cross-language session implementation. Why don't you use WDDX? regards Wagner -- Madness takes its toll. P

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-28 Thread Alexander Wagner
Jamie Thompson wrote: > use the str_replace() function > http://www.php.net/manual/en/function.str-replace.php No. Use stripslashes. http://php.net/stripslashes regards Wagner > -Original Message- > From: Marcus James Christian [mailto:[EMAIL PROTECTED]] > Sent: 27 June 2001 05:19 > To

Re: [PHP] PEAR

2001-06-24 Thread Alexander Wagner
Hiho, Jason Lustig wrote: > I just installed PHP 4.06 on my setup, and noticed that there's a bunch of > classes/scripts in the /pear directory. Does anyone know what the status of > these scripts are, as in if they are finished quality (ie, they can be used > successfully on websites)? I thought

Re: [PHP] good chat script?

2001-06-23 Thread Alexander Wagner
Daniel Goldin (E-mail) wrote: > Anybody know of a good chat script? I'm hoping for the chat equivalent of > phorum. Thanks for any help. If you can live with the hassle of rebuilding PHP, you might try ircg from Sascha Schumann (http://www.schumann.cx). This is by FAR the most performant chat f

Re: [PHP] bad form...

2001-06-20 Thread Alexander Wagner
Dallas K. wrote: > On a previous shopping cart, some of our "fantastically complex" > scripts got so big that WE couldn't follow the logic too many > conditional test, things started to conflict it was hell... so we > found that it was better to break the processing code apart from the > h

Re: Re[2]: [PHP] variables in a e-mail

2001-06-20 Thread Alexander Wagner
Hiho, Richard Kurth wrote: > Hello Alexander, > This is pretty much what I want to do. I want to have a e-mail script > in my application and have it so the user can customize the e-mail that > is sent out in a configure file. Say he wants to send a recurring bill > to his customers and he wants

Re: [PHP] variables in a e-mail

2001-06-18 Thread Alexander Wagner
Hiho, Richard Kurth wrote: > How can I add a variable to an e-mail on the fly. Say I have a form on > my page that the user fells in with data. but when he fills in the > message things like Hello,$Variable are added before it is sent. Does > this make sence Of course it does. However, variables

Re: [PHP] Solution to "headers already sent" error.

2001-06-18 Thread Alexander Wagner
Hiho, Merio, Quinn wrote: > So, during the time the lists were down, i was banging my head over a > seemingly impossible error message. > > Warning: Cannot send session cache limiter - headers already sent > > What?! I exlaimed.. the first line in my page registered the session > variable i was u

Re: [PHP] RE: Lists are back up

2001-06-18 Thread Alexander Wagner
scott [gts] wrote: > most email programs will allow you to filter > by email address also. works great for me. Yeah. If Return-Path contains "php-general-return" as a filter-rule works great. regards Wagner -- Little Boy: "Mr. President, how did you become a war hero?" President Kennedy: "I

Re: [PHP] mysql and user-defined functions

2001-05-22 Thread Alexander Wagner
Lybarger, Denver J (LYBARDJ8) wrote: > function findEntryId($tableName,$keyName){ > connects to DB > $db ="SELECT * FROM '$tableName' WHERE '$keyName' = $selectOption"; Where does $selectOption come from? Looks like you simply produced a MySQL-parse-error. Try var_dump()-ing $db and $temp, thi

Re: [PHP] mysql and user-defined functions

2001-05-21 Thread Alexander Wagner
Lybarger, Denver J (LYBARDJ8) wrote: > Is there a way to return the results of a mysql_query or the > array that is generated after mysql_fetch_array, via a function? > Note I have tried to do a straight return. What was the problem? This should work. Maybe you just got the mysql_fetch_ar

Re: [PHP] hi, highlight_string.

2001-05-21 Thread Alexander Wagner
Michel 'ZioBudda' Morelli wrote: > Hi, I want to save into a variable ($tmp) the value of > highlight_string command. Any one? or any similar function? Have a look at PHP 4's output buffering functions. You can use them to safe the output instead of displaying it. regards Wagner -- "Some guy

Re: [PHP] WTF: mail() is not supported in this PHP build ???

2001-05-15 Thread Alexander Wagner
Michael Geier wrote: > RedHat 7.1 > php4.0.4pl1 Installed from source? regards Wagner -- "Some guy hit my fender, and I told him, 'Be fruitful and multiply,' but not in those words." - Woody Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] "super" global variable

2001-05-15 Thread Alexander Wagner
Sigitas Paulavicius wrote: > Is it possible to declare some kind of "super" global variable in > PHP, which would be avaliable to all later PHP scripts/processes? As long as you use one server only (no load-balancing), you can use shared memory. http://php.net/shmop Try phpbuilder.com or google

Re: [PHP] it didn't upgrade to 4.0.5

2001-05-10 Thread Alexander Wagner
Joseph Bannon wrote: > Thanks Shawn, that worked :-) Oops, didn't see that... > Next thing. I tried to upgrade PHP to 4.0.5 but when I do "php -v", I get > "4.0.4". What do I need to check to make sure it was upgraded? Apparently you cgi-binary is still 4.04. When you configure PHP without any

Re: [PHP] starting up apache with php

2001-05-10 Thread Alexander Wagner
Joseph Bannon wrote: > Thanks Wagner for the help on the other issue. It worked :-) Sure it did :-) > Cannot load /usr/lib/apache/libphp4.so into server: libmysqlclient.so.10: > cannot open shared object file: No such file or directory > > I have the "libmysqlclient.so.10" file in the "/usr/lib/

Re: [PHP] Cannot find mysqlclient library

2001-05-10 Thread Alexander Wagner
Joseph Bannon wrote: > What exactly is the problem? I don't understand this error > message > > configure: error: Cannot find mysqlclient library under > /usr/local/mysql-3.23.37 Before installing PHP --with-mysql=/usr/local/mysql-3.23.37 , you have to install mysql there first. regards Wag

Re: [PHP] Installing the GD Library

2001-05-09 Thread Alexander Wagner
Joseph Bannon wrote: > What all do I need to do to install the GD Library and make it work > with PHP? On what kind of platform? regards Wagner -- "Some guy hit my fender, and I told him, 'Be fruitful and multiply,' but not in those words." - Woody Allen -- PHP General Mailing List (http:/

Re: [PHP] "Incorrect number of arguments"

2001-05-07 Thread Alexander Wagner
Sverre Johan Tøvik wrote: > us), is there any chance we might see an option to turn off this > strict checking? Not the checking, but the reporting. Just change "error_reporting" in your php.ini regards Wagner -- On a Swedish chainsaw: Do not attempt to stop chain with your hands or genitals!

Re: [PHP] Newbie question - adding vars

2001-04-28 Thread Alexander Wagner
Jamie Saunders wrote: > How do you add text vars together e.g. > > $varone = "hello"; > $vartwo = "world"; > > $varthree = ($varone, $vartwo); $varthree = $varone . $vartwo; although $varthree = $varone . ' ' . $vartwo; might be more appropriate. regards Wagner -- "In place of infinity we usua

Re: [PHP] PHP Binaries aside from Windows

2001-04-25 Thread Alexander Wagner
Kyutums wrote: > I tried looking for other PHP binaries at > http://www.php.net/downloads.php. All it displayed was one from > Windows. What happened to the versions for Linux? Does it have a > version for Solaris? Just grab the source and compile. This will work on most Unices, including Linux

Re: [PHP] PHP --with-imap

2001-04-25 Thread Alexander Wagner
Calin Rotaru wrote: > I want to use imap functions. I receive a message that imap function > is not defined. I compiled PHP again with --with-imap option , but > I've got an error message at Apache compilation. > What is realy happening? What error-message do you get? regards Wagner -- "In pla

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Alexander Wagner
Sterling wrote: > $topic = "Aerospace & Commercial Space"; > > $link_value = str_replace("&", '%26', $topic); > $link_value = str_replace(' ', '%20', $topic); This should be $link_value = str_replace("&", '%26', $topic); $link_value = str_replace(' ', '%20', $link_value); Anyway, this is this wr

Re: [PHP] What's wrong with this code?

2001-04-22 Thread Alexander Wagner
Tyler Longren wrote: > $file = fopen("includes/about.inc", "r"); > $data = fread($file, 2400); [..] > Any ideas why that doesn't work on one server but it will work on > another server? The server it works on is Win2k, IIS5, php4.0.4pl1. > The server it doesn't work on is Linux, Apache, php4

Re: [PHP] unserialize returns nothing.

2001-04-21 Thread Alexander Wagner
Taylor, Stewart wrote: > I'm fetching a serialized array from a database but when I call > unserialize() the function returns false. > > Any suggestions as to why unserialize is returning false? I once had this problem when I serialized an array which contained a variable from global namespace w

Re: [PHP] This should be simple...

2001-04-20 Thread Alexander Wagner
Boget, Chris wrote: > > http://php.net/htmlentities > > Or, even better, just use addslashes(); > > $query = "INSERT INTO table VALUES = ( " . addslashes( $formField ) . > " )"; > > That way the quotes will remain in the value to display. This isn't the Problem. The string was cut in the input fi

Re: [PHP] This should be simple...

2001-04-20 Thread Alexander Wagner
Joseph Koenig wrote: > > Well, obviously there's a problem with that. The form field will show > "Here's the text " and then thinks it ends. Is there any way to get > around this, other than stripping out her quotes? Thanks, http://php.net/htmlentities regards Wagner -- "A conference is a gat

Re: [PHP] PHP for Apache 2.0

2001-04-14 Thread Alexander Wagner
Patrick Dunford wrote: > According to Apache, modules made for Apache 1.3 will not work as-is > in 2.0 due to changes in the API. > > Is a version of PHP 4 for Apache 2.0 coming out? Try the configure-option --with-apxs2 instead of --with-apxs and it should work with Apache 2. PHP 4 supports fa

Re: [PHP] apache module win32

2001-04-13 Thread Alexander Wagner
Dominick Vansevenant wrote: > I am looking for a compiled win32 apache module for php4, I suppose > this is a DLL, can anyone tell me where I can find this? Otherwise > I'll have to install Visual C or something. The more features the > better I suppose. http://www.php4win.de regards Wagner --

Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Alexander Wagner
Thomas Angst wrote: > ./configure --with-axps=/usr/sbin/apxs > make > make install and > /etc/init.d/apache restart > is the http server no more starteable. What is the exact error-message? What does /sbin/init.d/apache configtest say? regards Wagner -- Assumption is the mother of all fuck-up

Re: [PHP] passing string variables in url

2001-04-09 Thread Alexander Wagner
Claudia Smith wrote: > I am passing a string value via a url to be used for printing on a > page and for sending info via email. > > I first encode the string before passing it. This is correct, but you should be using urlencode() instead of rawurlencode(). To be frank, I don't know what the di

Re: [PHP] Parse error after end of file

2001-04-09 Thread Alexander Wagner
> Accessible Computers > > Looks like you're missing a } here. regards Wagner -- "I haven't committed a crime. What I did was fail to comply with the law." David Dinkins, New York City Mayor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Need a functional equivilant to the ASP QueryString collection

2001-04-09 Thread Alexander Wagner
Daniel wrote: > The problem is, I don't know what the names of the input elements > will be. In ASP, I would iterate through the QueryString collection > (e.g. For Each item In Request.QueryString), but unless I am missing > it in the documentation, I don't see an equivalent in PHP. You should fi

Re: [PHP] Print or Echo.

2001-04-06 Thread Alexander Wagner
Jeff Oien wrote: > "As for a print vs. echo, echo gives you more options, > such as being able to continue output on multiple lines > like an < you would not be able to accomplish this." There's another difference. print() returns true on success and false when called after a connection abort. E

Re: [PHP] Form variables

2001-03-21 Thread Alexander Wagner
Michael George wrote: > I read this after I'd created a script which generates a form with a > 2D array on it. But as I test it, it seems to work. > > In short, it the 1D array a limitation of > HTML or PHP? I think it is a limitation of PHP 3. It should work with PHP 4. HTML is not responsible

Re: [PHP] register_globals & PHP_SELF

2001-03-21 Thread Alexander Wagner
Steve Haemelinck wrote: > Does the PHP_SELF variable only work if you have your > register_globals on? Probably. > Is their an another for still using it ? $putitinhere = getenv("PHP_SELF"); might work. Or, if track_vars is ON (default since PHP 4.03 I think), you might find it in $HTTP_SERVER

Re: [PHP] Zend?

2001-03-17 Thread Alexander Wagner
Chris Anderson wrote: > I've heard alot about the Zend Encoder. [..] > Does it require > any extra server settings etc? It requires the Zend Optimizer to be installed. regards Wagner -- Assumption is the mother of all fuck-ups. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > > There are only assotiative arrays in PHP. > > PHP has associative and numeric (normal) arrays. But is_array() says > only if it is an array or not. The distinction could only be made if > you look at keys. Keys can be integers or strings. I hope this was > correct, if

Re: [PHP] Associative vs normal arrays

2001-03-16 Thread Alexander Wagner
Joe wrote: > Is there a way to determine if an array is associative or not? Maybe > something similar to the is_array() function ?? There are only assotiative arrays in PHP. regards Wagner -- Assumption is the mother of all fuck-ups. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Day of the Week

2001-03-04 Thread Alexander Wagner
Chris Anderson wrote: > > Is there a function to return the day of the week? Or at least a > number that I can use to determine this? RTM http://php.net/date Have a look at "D", "l" (lowercase L) and "w". regards Wagner -- Assumption is the mother of all fuck-ups. -- PHP General Mailing Lis

Re: [PHP] Static Classes

2001-03-04 Thread Alexander Wagner
ADnoctum wrote: > Hello to everyone. First time here and already I have a question: PHP > has static classes?. [..] > Test.hello(); > > Now I have a variable "Test" wich is a class that canot be > instantiated nor inherited. Can I do that in PHP?. PHP has static method calls with class::method()

Re: [PHP] Template recommendations

2001-02-28 Thread Alexander Wagner
Joseph H Blythe wrote: > Not be phplib (sorry I have tried and dont like the autoprepend) You can use the template-class from PHPlib whithout the rest of the lib, it is completely independent. Just include the "template.inc"-file and you can start. > Be easy to use It's not that easy to use b

Re: [PHP] How do I ....

2001-02-20 Thread Alexander Wagner
Simon Garner wrote: > > My question.. how do you do it? > > I think you'll find those settings in your php.ini file. You have to create that file first. will tell you where php.ini should be (php.ini-Path is somewhere near the top, I think). Take one of the php.ini-templates from the unzipped

Re: [PHP] PHP Manuals - Was -> [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > That figures :) > > I was using Off-Line manual I downloaded from PHP.net homepage and > that note is not in it, but it's well documented in the On-Line > Manual :) I also used an offline-Manual, but a more recent one, obviously. Just grab a new one. regards Wagner -- Three may k

Re: [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > $foo = round (1.95583, 0); > > When I saved the code on a different server, Apache on Linux, I got > this error up: > > Warning: Wrong parameter count for round() ... bla, bla A look into the manual reveals: "Note: The precision parameter is only available in PHP 4." Loo

Re: [PHP] quick file question

2001-02-17 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > I have $File, and I want the context of hello.txt to be stored in > $file, > > Is there a function for this or do I use fopen? $file = implode("",file($File)); RTM for explainations. regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP Genera

Re: [PHP] PHP Editors

2001-02-16 Thread Alexander Wagner
Dave Goodrich wrote: > The only reason I have a Mac on my desk is for Bbedit. Hoping they > port to OSX and allow it to run on my FBSD box. Isnt BBedit originally from BeOS? This way, you could at least run it on your x86-Box. regards Wagner -- Three may keep a secret, if two of them are dead

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Alexander Wagner
Randall Perry wrote: > Couldn't find one in the manual under arithmetic functions. You would've found it under operators, I think. It's % regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Alexander Wagner
Karl J. Stubsjoen wrote: > Okay, last one for the day! How do you query the clients IP address? > We have a site in development, and I want to restrict access to > people coming in from certain IP addresses. > Really, all I need to do is query the IP address, I can code the rest > of it. $remot

Re: [PHP] mcrypt!

2001-02-14 Thread Alexander Wagner
Kevin Connolly wrote: > Does anyone know where I might get the mcrypt dll for windows nt or > win 98?? I dunno, but you could try http://www.php4win.de regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Using a variable in a variable

2001-02-13 Thread Alexander Wagner
Brandon Orther wrote: > $test($i)text = "$i"; > ^^--I want this variable to get bigger Try this: $test{$i}text = $i; (I'm not sure if this actually works) or $varname = 'test'.$i.'text'; $$varname = $i; regards Wagner -- Three may keep a secret, if two of them are

Re: [PHP] Include files

2001-02-12 Thread Alexander Wagner
Conover, Ryan wrote: > I have an include file foo.inc. I want to call a function that is in > another include file,say anotherfoo.inc, from the foo.inc. [..] > can I call an include from another include? Sure. > I tried the above but it fails opening the other include. > > Should I have the >

Re: [PHP] List of all file extensions

2001-02-07 Thread Alexander Wagner
Tobias Talltorp wrote: > > No. People use whatever file extensions they like. > > So, If I create a 3D-program, I could say that file extensions for > this program will be .pdf (not a prefered extension, but still)? > Is it more a question of getting your file extension as widely used > as possibl

Re: [PHP] question about PHP use

2001-02-07 Thread Alexander Wagner
Don wrote: > I have a web page that contains various graphics and text. At the > bottom of the page, I have a table of one row by two columns. Using > PHP > > and MySQL (I already know that PHP can access MySQL databases), I > want to read data from a table and dynamically grow my table (add > s

Re: [PHP] List of all file extensions

2001-02-07 Thread Alexander Wagner
Tobias Talltorp wrote: > Do you know where I can find a list of all file extensions used > today? Like: > ..gif > ..htm > ..php > ..doc > I don't think so. > Is there an organisation, like ICANN, that decide who can use these > file extensions and what you need to do to register one of your

Re: [PHP] Is it server Push?

2001-02-07 Thread Alexander Wagner
Thomas Deliduka wrote: > Doing operation. Done > Doing this Done > Etc > > With ASP it does it as you see it, with PHP it seems to do it all and > the print to the screen. Is there a way to get PHP to do the same as > ASP or is that just the way PHP works? Use flush(); each time you want

Re: [PHP] which template?

2001-02-07 Thread Alexander Wagner
Thomas Jaske wrote: > Which template can I use to do this simply? > > $template = new Template(); > $template->assign(content_item, placeholder); > $page = template($template_file); > $page->print(); With PHPlib-Templates, it would look like this: $template = new Template("./path/to/template/fi

Re: [PHP] How to use phpIRC and question about HTML streaming!

2001-02-06 Thread Alexander Wagner
Zenith wrote: > I have readying "web application develoment with PHP4.0" by Tabias > Ratschiller and Till Gerken at these days! > In chapter 3, I have talk about creating a IRC client with phpIRC and > HTML streaming, > but it hasn't talk too much about the implementation, also, it > haven't talk

Re: [PHP] MD5 / crypt

2001-02-06 Thread Alexander Wagner
Dan Harrington wrote: > What is the best way to encrypt/decrypt strings when passing between > php pages? If your encryption is meant to be anything near secure, there is only one way: DON'T GET or POST-Parameters are for user-input. Handing information over to the client and taking it back la

Re: [PHP] GD for: PHP on WIN

2001-02-05 Thread Alexander Wagner
Brandon Orther wrote: > Can anyone tell me a simple way to install the GDlib for php on a > windows machine? Some binary PHP-Distrobutions on php4win.de include GDlib. Wagner -- Three may keep a secret, if two of them are dead. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] declare variable

2001-01-24 Thread Alexander Wagner
kaab kaoutar wrote: > echo " " . $personal["name"]. "\n" . $personal["email"] . " " ; > echo Count($beer); > $i=0; > for ($i=0;$i ?> > > i have the same error the constant i is not defined ... > how acn i fix it ? Try for ($i=0;$ihttp://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Session tracking question

2001-01-23 Thread Alexander Wagner
Wade D wrote: > what do most use, combination of cookies and GET? IMHO the optimal solution are cookies with a fallback to GET. In some situations, though, it may be better to drop cookies completely. Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List (htt

Re: [PHP] "Authenticating" across sites/servers

2001-01-23 Thread Alexander Wagner
Boget, Chris wrote: > > > Also, you can check the value of $HTTP_REFERER for the ip of > > the trusted host, to further eliminate the potential. > > How do you get the IP out of $HTTP_REFERER? As far as I know, > that only tells you the referring url, not the ip address. This is correct. But y

Re: [PHP] What "PHP" Stands For....

2001-01-22 Thread Alexander Wagner
Brian White wrote: > 'PHP, which stands for "PHP: Hypertext Preprocessor" ...' > > I frankly don't beleive that "PHP" started life as a recursively > defined acronym - I remember reading somewhere that it stood for > "Personal Home Page" which makes more sense to me. > > Anybody know the truth

Re: [PHP] Why won`t this work??

2001-01-21 Thread Alexander Wagner
bard wrote: > Plus, this is PHP, not javascript. Variables look like this, "$UN" > not this, "UN". $UN is a variable. UN might be a constant, if it is defined as one. If not, its just a string. Wagner -- Three may keep a secret, if two of them are dead. -- PHP General Mailing List (http://w

Re: [PHP]

2001-01-18 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > > And for all three cases the closing tag is ?>. Wasn't there a thread on PHP-DEV about the PHP-parser mistaking ). Got my point? Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP]

2001-01-18 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > > > xml problems? > > > > > > _what_ xml problems? > > > > > No, open tag enabled in php.ini. I meant that with short-tags on, http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

Re: [PHP]

2001-01-18 Thread Alexander Wagner
Alex Black wrote: > xml problems? > > _what_ xml problems? http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Editors... perhaps Ultraedit

2001-01-18 Thread Alexander Wagner
John Huggins wrote: > I suggest Ultraedit (on the PC) at http://www.ultraedit.com. I use it > along side Dreamweaver with good results and good organization. Ultraedit > (out of the box) does not know about PHP; you configure it with one of the > several wordlist files and then you will have syn

Re: [PHP] PHP Editors

2001-01-18 Thread Alexander Wagner
Karl J. Stubsjoen wrote: > So what editor is recommended? I'm a little familiar with Emacs (kinda > cool, but I'm use to keywords and such being colored - as in Interdev). Try emacs with a php-mode (there are several, search for them). Wagner -- One maniac alone can do what 20 together cannot

  1   2   >