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 be

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, you

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

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 settype() or

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] 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:

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.php

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 it

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 its

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] 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

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: 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 is this

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] For

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:

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,

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

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 (by the

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,

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-cast the

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 before

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

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] 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 a

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 ?php 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 people

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 filename | ...

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

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.

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

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 it

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

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: It was

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 using,

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] 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] 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

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 to

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] 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 Wagner

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

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] 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 usually put

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 place

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 and

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 wrong way to

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

2001-04-23 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.0.4pl1.

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

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

2001-04-20 Thread Alexander Wagner
Joseph Koenig wrote: INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" 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,

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 field, not

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 far

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-ups.

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 find

Re: [PHP] Parse error after end of file

2001-04-09 Thread Alexander Wagner
titleAccessible Computers ?="$page_title"?/title DEFANGED_meta name=keywords content="stuff" DEFANGED_meta name=description content='? if ($description) { echo "$description"; } else { echo "Accessible Computers"; ?' Looks like you're missing a } here. regards Wagner

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

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 EOT in perl. Look at the above notes. With print you would not be able to accomplish this." There's another difference. print() returns true on success and

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

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] 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 unsubscribe,

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

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 not,

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] 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 List

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 General

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." Looks

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 keep

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

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] 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. $remote_ip

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] 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/files");

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 the

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 own?

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 several

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

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: ?php echo " " . $personal["name"]. "\n" . $personal["email"] . "br " ; echo Count($beer); $i=0; for ($i=0;$iCount($beer);$i++) echo $beer[i]; ? i have the same error the constant i is not defined ... how acn i fix it ? Try for ($i=0;$iCount($beer);$i++) echo

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 you

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

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

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 syntax

Re: [PHP] ? PHP vs. ?

2001-01-18 Thread Alexander Wagner
Alex Black wrote: xml problems? _what_ xml problems? ?xml is considered a short-tag or something like that. Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] ? PHP vs. ?

2001-01-18 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: xml problems? _what_ xml problems? ?xml is considered a short-tag or something like that. No, ? is the short opening tag and is only valid for PHP with the short open tag enabled in php.ini. I meant that with short-tags on, ?xml will be considered a

Re: [PHP] ? PHP vs. ?

2001-01-18 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: ? short open tag for PHP ?php open tag for PHP ?xml open tag for XML And for all three cases the closing tag is ?. Wasn't there a thread on PHP-DEV about the PHP-parser mistaking ?xml for a short-Tag (for ?xml would be valid PHP like ?echo $var?). Got my

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Alexander Wagner
Scott Gerhardt wrote: It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. Use emacs. Or vi. Or quanta. Or something else. Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List

Re: [PHP] include statement

2001-01-17 Thread Alexander Wagner
Michael Zornek wrote: which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? No. If you know can trust your scripts, this is possible, but trusted scripts won't do any abuse, will they? If you can't trust

Re: [PHP] Homepage

2001-01-17 Thread Alexander Wagner
S Bey wrote: Just a small (and hopefully easy) question. Is there a PHP equivalent of index.html? I want to be able to go straight to a PHP script without the user specifying the filename. This is not a PHP-issue, its just a matter of how your webserver is configured. With apache, you just

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Alexander Wagner
Josh G wrote: Unlink works on some installations, not others. I think it works on NT but not 95 or perhaps the other way around. Why is this? Unlink is hardly an unsupported system call in windows! Anybody know? Unlink comes from UNIX so it's probably supported by NT rather than Win9x. This

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Alexander Wagner
Josh G wrote: A rose by any other name would smell as sweet, and I'm sure I remember deleting files back in my old dos days, not to mention win95 ;-) Um, I suppose every OS does. (I deleted one file or another as well) However this was about unlink, wasn't it? Unlink, basically, is a UNIX

Re: [PHP] Use ?= instead of %=

2001-01-13 Thread Alexander Wagner
Arcady Genkin wrote: I have noticed that ?= works just as well as %=. Since this is not in documentation, how safe is it to use it? Pretty safe, I think. Possibly even safer than those asp-style tags, regarding possible changes in the future. Wagner -- Sanity is calming, but madness is

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: input type="text" name="hello" size="20" value="{value}" and the problem with that, is you're not paring tons of html through a search-replace function, which also created unnecessary overheead, and You have a point here. Template-systems are slow. forces you (once

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: part of the point was for _PHP_ to be embedded html, in my opinion your It was created that way. It still is possible. Is can be quite handy, sometimes (or often, depends on what you do). That doesn't mean you have to use it. I'm not implying that there are rules

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Alexander Wagner
Alex Black wrote: Speaking as a not-pot-smoking mac-using only partially hippie web designer: why bother with creating your own syntax? why not just explain some _super_basic_ php syntax to the "html dude" and have him do the code himself? also, dreamweaver nicely ignores ? ? Actually,

Re: [PHP] looking for a PHP editor

2001-01-11 Thread Alexander Wagner
Toby Butzon wrote: Come on... mixing PHP and HTML in the same file isn't bad style... in fact it can make things easier to read, if you do it right. This is one of PHP's biggest features... otherwise we'd just have another Perl... my .02... There are more differences between PHP and

  1   2   >