Re: [PHP] How do I write a compound variable?

2001-08-07 Thread Hugh Danaher
Arthur, Thank you very much for your help. I tried it and it works perfectly. I haven't tried the array yet though, I'm a bit shy of them as I don't know much about accessing arrays yet. Perhaps in the future. Thank you again. Hugh - Original Message - From: Arthur [EMAIL PROTECTED]

Re: [PHP] XML Next 25 Results

2001-08-07 Thread Girish Nath
Hi Gerry The XML isn't coming directly from a database, it's coming from an IIS server that i query (i generate XML file containing the parameters of the query, POST it to the IIS machine, it runs some .ASP to query an inhouse database, then POST the XML results back to me) I then parse the XML

Re: [PHP] How do I write a compound variable?

2001-08-07 Thread Christian Reiniger
On Tuesday 07 August 2001 01:50, Hugh Danaher wrote: I want to do a simple FOR statement where I average the high and low value for a given year. A user will input the values on a separate What I want to do: ?php $high_1995=22; $high_1996=23; $high_1997=20; $high_1998=18;

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-07 Thread Girish Nath
Hi I've used ImageMagick in the past(it runs on NT and Linux), I found it gives higher quality results than the builtin functions especially when resizing jpegs. http://www.imagemagick.org Girish - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-07 Thread Jon Yaggie
how do you feel about the speed of imagemagick? fastwr? slower than gd functions? - Original Message - From: Girish Nath [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 1:56 PM Subject: Re: [PHP] Re: Any good gif/jpg processing tool for PHP?? Hi I've used

[PHP] Re: Writing php modules in C++

2001-08-07 Thread Yasuo Ohgaki
From Coding Standard === Syntax and indentation -- *SNIP* PHP is written in C, and is aimed at compiling under any ANSI-C compliant compiler. === You are better to ask in php-dev list, if use of C++ is acceptable or not. If you are not interested in making your extension

[PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
Hello all I have just implemented a mySQL authorization: each html and php page checks to see whether a user is logged in by checking a cookie in the user browser. The user can log out and edit her profile (including password). If a page is called without the user being logged in, he is

[PHP] Re: veuillez m'inscrire dans la liste

2001-08-07 Thread elias
Fait cela toi même. Said El Maataoui [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... merci _ Le journal des abonnés Caramail - http://www.carazine.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Michael Mehlmann
If you don't have a very high load, then you could move all not-php-files out of htdocs-root and use a pseudo-root directory htdocs/../rawfiles as root for redirect.php. For example image.jpg is placed in htdocs/../rawfiles/images then access it with /redirect.php?/images/image.jpg ! redirect.php

[PHP] system()

2001-08-07 Thread Jon Yaggie
how can i find out what kind of error i am recieving when i call a command thru system()?

Re: [PHP] system()

2001-08-07 Thread David Robley
On Tue, 7 Aug 2001 17:55, Jon Yaggie wrote: how can i find out what kind of error i am recieving when i call a command thru system()? Well, reading the docs it looks like system only returns an error code - if you want to get all that is returned from the command you might want to try exec

Re: [PHP] Splitting Text

2001-08-07 Thread Jordan Elver
Thanks for that. I ended up using your method as using the LEFT function in a SELECT only grabs characters. Cheers, Jord On Monday 06 August 2001 17:37, you wrote: You can do this several ways... Either use explode(): http://www.php.net/manual/en/function.explode.php ...to split the

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
On Mon, Aug 06, 2001 at 12:31:38PM -0700, Mark Maggelet wrote: i can't tell if it's just a email formatting thing, but if there's a line break in the onsubmit string it might mess things up. It no _might_ mess things up... It sure does! Good one. But... another thing. You just might want to

Re: [PHP] XML Next 25 Results

2001-08-07 Thread Girish Nath
Hi I'd thought of specifying the limit in the request but unfortunately that option isn't available to me :( I've just downloaded an xpath class from phpxml.org, looks really kewl, and i hope it can allow me to do this. Thanks Girish - Original Message - From: Gerry Kirk [EMAIL

[PHP] Returning arrays from a function?

2001-08-07 Thread Ronny Salomonsen
What could be wrong when I don't get any results from an array made from whitin a function? function test_print($item, y){ if (ereg([0-9], $item)) { $numa[$i] = $item; echo $GLOBALS[i] . - $numa[$i]\n; $GLOBALS[i]++; } Printing from within this function works fine, but when I want to

RE: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Remo Pini
Or you could tell your webserver to deny everything except access to redirect.php, this saves you from moving everything to some obscure place... -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:18 AM To: Stefen Lars Cc: [EMAIL

[PHP] Currency help

2001-08-07 Thread Mitja Simèiè
Hello, My problem is how to find simple way to change REAL number from MySQL to currency type with PHP. Exmaple: MySQL: 12323434,34 I need to parse it as: 12.323.434,34 tnx, mitja. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Currency help

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 11:30:18AM +0200, Mitja Simèiè wrote: Hello, My problem is how to find simple way to change REAL number from MySQL to currency type with PHP. Exmaple: MySQL: 12323434,34 I need to parse it as: 12.323.434,34 tnx, mitja. One simple function number_format:

[PHP] Solaris/Apache/PHP load problem

2001-08-07 Thread Peter Ostry
Hopefully the last hill to climb in our first Solaris installation - Apache cannot load a module: bash-2.03# /usr/apache/bin/apachectl start Syntax error on line 244 of /etc/apache/httpd.conf: Cannot load /web/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal:

[PHP] PHP inside code problem

2001-08-07 Thread Nick K.
hi there - if ($act = add) //Add the message... { if (!empty($user_name) !empty($user_ip) !empty($user_message) !empty($user_sex)) { if (!($html_support)) { $user_message = htmlspecialchars($user_message); } $user_message =

Re: [PHP] PHP inside code problem

2001-08-07 Thread Renze Munnik
Try using stripslashes() before htmlspecialchars(). -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- --

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-07 Thread Girish Nath
Hi I've used ImageMagick to resize images from 1152*768 pixels down to 640*480 pixels. It runs very quickly, you can also try it from the command line to see what you think of the performance. Also, it comes with some support programs that allow filters such as gamma correction etc. It seems to

[PHP] how can i tell if a field exists

2001-08-07 Thread zippy
hi, I am having trouble with some data i am retrieving from a mysql database. after a query i am using mysql_fetch_array in a while loop to retrieve data. ie;- $row = mysql_fetch_array($result); once i have a $row i am getting relevant data i want using;- $data = $myrow[field_name]; where

[PHP] Problem with inserts to mysql

2001-08-07 Thread Jon Farmer
Hi, This is a real strange one. I am writing a shell script in PHP which I am cronning to run every 5 mins. Basically it downloads email via imap. Splits it up into it relevant sections and adds it to a database. It does multiple inserts, and update and multiple selects. The problem I have is

[PHP] text imports

2001-08-07 Thread Karl Phillipson
Hi, I have been given a (notepad generated) text file which contains a list of countries in a format such as: United Kingdom, United States, Blah, Blah, Blah, I have imported the data into a countries table in a mySQL database using the excellent 'mysqlfront' prog. No probs on the import

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
http://www.php.net/manual/en/function.chop.php Returns the argument string without trailing whitespace, including newlines Wagner Tomy Web Developer Editus S.A. - Original Message - From: Karl Phillipson [EMAIL PROTECTED] To: 'Alexander Wagner' [EMAIL PROTECTED]; MindHunter [EMAIL

Re: [PHP] PHP inside code problem

2001-08-07 Thread Wagner Tomy
try this: if (!($html_support)) { $user_message = htmlspecialchars(stripslashes($user_message)); } Wagner Tomy Web Developer Editus S.A. - Original Message - From: Nick K. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 12:11 PM Subject: [PHP] PHP

RE: [PHP] text imports

2001-08-07 Thread Karl Phillipson
Yup, thanks Wagner. I can do this within PHP itself using trim or chop, I was hoping for a snippet of SQL code that would do it from the command line. This is what have done: LOAD DATA LOCAL INFILE 'C:\MYDIR\countries.txt' INTO TABLE DBNAME.COUNTRY LINES TERMINATED BY ',' (COUNTRY_NAME)

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
ah k, yes that's the way to do it in SQL ;p Tomy Wagner Web Developer Editus S.A. - Original Message - From: Karl Phillipson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 1:08 PM Subject: RE: [PHP] text imports Yup, thanks Wagner. I can do this within PHP

RE: [PHP] text imports

2001-08-07 Thread Karl Phillipson
So if this is the way to do it in SQL, is there a way to get rid of the pipe linefeeds using SQL too? If not I s'pose the solution is to run a php 'trim' script, grab the data, perform the modifications and then re-insert the data back into the table Bit long winded but if that's the only

Re: [PHP] text imports

2001-08-07 Thread Wagner Tomy
RE: [PHP] text importstry this: LOAD DATA LOCAL INFILE 'C:\MYDIR\countries.txt' INTO TABLE DBNAME.COUNTRY LINES TERMINATED BY ',\n' (COUNTRY_NAME) or if it does not work, simply drop the commas and use the newline character as separator ? Tomy Wagner Web Developer Editus S.A. -

Re: [PHP] user's ip

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 03:55:25PM +0530, Adrian D'Costa wrote: Hi, I am trying to get the ip address of any user browsing a particular page. I tried $REMOTE_ADDR but that give me only the remote address. What would be the best way? Adrian Okay... Help me out here... You want to

RE: [PHP] user's ip

2001-08-07 Thread Karl Phillipson
Read this: http://www.php.net/manual/en/function.getenv.php $ip = getenv (REMOTE_ADDR); == Karl Phillipson PHP SQL Programmer Saffron Hill Ventures 67 Clerkenwell Road London EC1R 5BL Saffron Hill: 0207 693 8300 Direct Line: 0207 693 8318 -Original

[Re: [PHP] user's ip]

2001-08-07 Thread René Moonen
The problem is that REMOTE_ADDR returns the IP address of the proxy (if the user accesses the web-page via a proxy. This will allways return the IP address of the user's machine: if(getenv(HTTP_X_FORWARDED_FOR)) { $ip=getenv(HTTP_X_FORWARDED_FOR); } else { $ip=getenv(REMOTE_ADDR); } $host =

[PHP] Split array

2001-08-07 Thread Veniamin Goldin
hello ! Please help me. How do I split array so, that I'll get string variable with , delimeter of each array value ? Thank you! -- 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: [Re: [PHP] user's ip]

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 02:01:04PM +0200, René Moonen wrote: The problem is that REMOTE_ADDR returns the IP address of the proxy (if the user accesses the web-page via a proxy. This will allways return the IP address of the user's machine: if(getenv(HTTP_X_FORWARDED_FOR)) {

[PHP] Header error!

2001-08-07 Thread karthik
Hi, I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in CGI mode. I seem to be getting CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Why is this error happening ? Please dont ask me to

Re: [PHP] Split array

2001-08-07 Thread Tim
See: http://www.php.net/implode - Tim http://www.phptemplates.org On 07 Aug 2001 14:02:04 +0200, Veniamin Goldin wrote: How do I split array so, that I'll get string variable with , delimeter of each array value ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Split array

2001-08-07 Thread Karl Phillipson
you could use implode http://www.php.net/manual/en/function.implode.php == Karl Phillipson PHP SQL Programmer Saffron Hill Ventures 67 Clerkenwell Road London EC1R 5BL Saffron Hill: 0207 693 8300 Direct Line: 0207 693 8318 -Original Message- From: Veniamin

Re: [PHP] user's ip

2001-08-07 Thread Daniel Rezny
Hello Adrian, Tuesday, August 07, 2001, 12:25:25 PM, you wrote: ADC Hi, ADC I am trying to get the ip address of any user browsing a particular page. ADC I tried $REMOTE_ADDR but that give me only the remote address. What would ADC be the best way? When you recieve a remote_host_name you

[PHP] function into string

2001-08-07 Thread Veniamin Goldin
Sorry for the dummies question, but how do I insert into string like: echo balalala how to insert function in the midle like : echo balalala [trim(odbc_result($result_id,3))] aasasasas Thank you. - Original Message - From: René Moonen [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] I HAVE A PROBLEM HERE...

2001-08-07 Thread Tom Carter
Generally I would expect one of two possibilities in this scenario.. either a) you are passing thru the url (limited I believe to about 255 characters)...if so use a form with METHOD=post or b) you are storing in a DB and the size of the field in the db is too small (in general most rdbms' will

Re: [PHP] function into string

2001-08-07 Thread Tom Carter
Try readin the manual before posting.. all you want is the string concatenation operator . PHP is weakly typed so no direct conversion is needed echo balalala . trim(odbc_result($result_id,3)) . aasasasas Sorry for the dummies question, but how do I insert into string like: echo balalala

Re: [PHP] function into string

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 02:30:31PM +0200, Veniamin Goldin wrote: Sorry for the dummies question, but how do I insert into string like: echo balalala how to insert function in the midle like : echo balalala [trim(odbc_result($result_id,3))] aasasasas Thank you. How about: echo

[PHP] calendar, msg board, chat in PHP

2001-08-07 Thread Eric Wood
I'm looking to give each of my virtual domain accounts a calendar, msg board, and maybe a chat function to their web site. Anyone know of a php program that has messaging and calendaring working together? Thanks! -eric wood -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread elias
Hello. I have two MySql databases running on different servers. I have no root access and only PHP + Mysql and MysqlAdmin. How can i take a dump of first database (which is about 1MB) and restore that dump on the second one? Actually, I'm doing a structure dump, but the outputed SQL text is

Re: [PHP] calendar, msg board, chat in PHP

2001-08-07 Thread Chris Lambert
plugvBulletin is PHP/MySQL backed forum software that includes an integrated calendar component./plug However, it'll cost you $85/site/year, so you might be best off tying a few free components together. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web

RE: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Jon Farmer
How can i take a dump of first database (which is about 1MB) and restore that dump on the second one? If you have Telnet access use the mysqldump and mysql clients to export then import. Regards Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Karl Phillipson
This might be of some use? http://www.mysql.com/doc/m/y/mysqlhotcopy.html == Karl Phillipson PHP SQL Programmer Saffron Hill Ventures 67 Clerkenwell Road London EC1R 5BL Saffron Hill: 0207 693 8300 Direct Line: 0207 693 8318 -Original Message- From:

Re: [PHP] Unable to create COM objects on Win2k

2001-08-07 Thread Mikael hultgren
On Mon, 6 Aug 2001 17:44:29 -0500 Diego Fulgueira Pastor [EMAIL PROTECTED] wrote: Hi! I have the following problem: I am using IIS 5.0 on Win2k, and I am unable to create COM objects. For example, the following code will produce the script to halt: $myObject= new COM(CDONTS.NewMail);

RE: [PHP] Session problem

2001-08-07 Thread Chad Day
I tried this, I still have the same problem. Is this a bug in the version of PHP I am running? Chad -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 4:58 PM To: Chad Day; [EMAIL PROTECTED] Subject: Re: [PHP] Session problem i would try

Re: [PHP] SSL encryption type in PHP?

2001-08-07 Thread Sean C. McCarthy
Hi, You can tell it using the variables from the server. Using Apache you can access the variables specs at: http://www.apache-ssl.org/docs.html With Apache SSL is SSL_CIPHER returns the variable about SSL/TLS ciphersuite. Sean C. McCarthy SCI, SL (www.sci-spain.com) Dr.

RE: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Mark Roedel
-Original Message- From: Stefen Lars [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 3:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Insecurity with PHP authorization I do realize that if I were to place a .htaccess file in the root of the intranet server, I could

[PHP] IP Address

2001-08-07 Thread Joseph Bannon
What is the php code to get a visitor's IP address? Thanks, Joseph -- 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: [EMAIL PROTECTED]

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Daniel Rezny
Hello elias, Tuesday, August 07, 2001, 3:52:57 PM, you wrote: e Hello. e I have two MySql databases running on different servers. I have no root e access and only PHP + Mysql and MysqlAdmin. e How can i take a dump of first database (which is about 1MB) and restore e that dump on the second

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread elias
No I don't really have Telnet accessI have only access to phpMyAdmin 2.0.1 via my Hosting Control Panel... And it happens that both servers have this tool to access the database. How can I copy from a server to another? Please Help! Jon Farmer [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 08:11:52AM -0500, Joseph Bannon wrote: What is the php code to get a visitor's IP address? Thanks, Joseph You might want to consider reading some of the other posts for a change. There's an interesting thread on this list today. It's about the exact same question

RE: [PHP] IP Address

2001-08-07 Thread Joseph Bannon
Just because you're having a bad day doesn't mean I should. Can you just tell me what it is? I don't have those posts. J -Original Message- On Tue, Aug 07, 2001 at 08:11:52AM -0500, Joseph Bannon wrote: What is the php code to get a visitor's IP address? Thanks, Joseph You might

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Andrew Brampton
Just a very big guess. Can you use system or exec command to run one of those telnet commands from a PHP script? Or even better idea, can you ask your hosts to do it for you :) Andrew - Original Message - From: elias [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07,

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 08:29:34AM -0500, Joseph Bannon wrote: Just because you're having a bad day doesn't mean I should. Can you just tell me what it is? I don't have those posts. J Wow... I believe you're the one having the bad day. Anyway, here's the result of the thread... It's the code

[PHP] Am I being Hacked ???

2001-08-07 Thread Mark Lo
Hi, My apache log files contains the following log info sending from my desktop to my server which hosted at remote data center, I am wondering, am I being hacked ?? Is there something wrong in my apache server ?? 203.218.49.24 - - [07/Aug/2001:22:04:52 +0800] - 408 - - - - 203.218.49.24

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
=[ Get remote IP ]= if(getenv(HTTP_X_FORWARDED_FOR)) { $ip=getenv(HTTP_X_FORWARDED_FOR); } else { $ip=getenv(REMOTE_ADDR); } $host = gethostbyaddr($ip); === Oh... btw... I just gave a real look at that piece of code. You might want to write

[PHP] Include

2001-08-07 Thread Veniamin Goldin
help me please ! I try to use include() and require() an that what i get: The path is 100% good. Warning: Failed opening '../inc/menu.inc' for inclusion (include_path='') in -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] Include

2001-08-07 Thread Johnson, Kirk
I try to use include() and require() an that what i get: The path is 100% good. Warning: Failed opening '../inc/menu.inc' for inclusion (include_path='') in Make sure that file permissions allow 'nobody' to view the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Easiest Automated mailing list concept?

2001-08-07 Thread Marcus James Christian
It's LINUX and I don't own the server I lease it from affordablehost.com Thanks, Marcus Justin French wrote: What platform is the server? Unix? Win98? It shouldn't be putting line breaks in. Do you have access to MySQL? If so, that may be a solution. Justin French Marcus James

Re: [PHP] Am I being Hacked ???

2001-08-07 Thread Sean C. McCarthy
Hi Mark, 408 is an HTTP status code meaning Request Timeout. The excerpt from the RFC2616 is: 408 Request Timeout The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time. Do you have

[PHP] Re: xsl:include doesn't work from php, it works with sabcmd

2001-08-07 Thread Peter Clarke
Marius Andreiana [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I try to keep some common xsl templates in separate files and use xsl:include href=file.xsl/ It works fine if I process them from cmd line with sabcmd, but the same files don't work in php,

RE: [PHP] IP Address

2001-08-07 Thread B. van Ouwerkerk
Just because you're having a bad day doesn't mean I should. Can you just tell me what it is? I don't have those posts. You don't need those posts to check the archive. You should find a link on the page where you subscribed. Checking the archive before you post would help to get less traffic

RE: [PHP] Session problem

2001-08-07 Thread hassan el forkani
indeed it's not working properly, first of all please make sur the pages are not cashed send a header (Cache-control: NO cache) i'm not sure about the syntax so check the manual then try to modify your code like this and tell us what happens: ?php if (!HTTP_SESSION_VARS['count']) { global

RE: [PHP] Session problem

2001-08-07 Thread hassan el forkani
oh i forgot!!! you have to put this at the beginning of your page ?php session_start(); ? indeed it's not working properly, first of all please make sur the pages are not cashed send a header (Cache-control: NO cache) i'm not sure about the syntax so check the manual then try to modify your

[PHP] Re: Am I being Hacked ???

2001-08-07 Thread Chris Lee
check your status code at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.9 on a side note, your post was in the wrong newsgroup, try a orum related to http not php. -- Chris Lee [EMAIL PROTECTED] Mark Lo [EMAIL PROTECTED] wrote in message

[PHP] Re: Best way to take a copy of a Database from Server to server

2001-08-07 Thread Hidulf
easy, go inside each table, there will be the structure dump function available. that will allow you to take the data for that table only. this may give you a smaller size of data. -- Hidulf http://www.hidulf.com Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] if(!$submit)

2001-08-07 Thread Tarrant Costelloe
When using if (!$submit) I get an error saying: Warning: Undefined variable: submit in C:\Inetpub\webpub\default.php on line 1 Fair enough, so then I add if (isset(!$submit)) and I then get an error; Parse error: parse error, expecting `T_VARIABLE' or `'$'' Could someone please tell me the more

RE: [PHP] Session problem

2001-08-07 Thread Chad Day
Done, still not working. I know that usually has to be there, I was just going to copy the example from the manual directly, since the session should automatically kickoff when it hits the session_register bit. This truly has me baffled. Chad -Original Message- From: hassan el

Re: [PHP] if(!$submit)

2001-08-07 Thread Wagner Tomy
Fair enough, so then I add if (isset(!$submit)) and I then get an error; try if(!isset($submit)) instead Tomy Wagner Web Developer Editus S.A. - Original Message - From: Tarrant Costelloe [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] if(!$submit)

2001-08-07 Thread Chris Cocuzzo
try. if(isset($submit)) { } chris - Original Message - From: Tarrant Costelloe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 10:47 AM Subject: [PHP] if(!$submit) When using if (!$submit) I get an error saying: Warning: Undefined variable: submit in

Re: [PHP] if(!$submit)

2001-08-07 Thread mike cullerton
if (!isset($submit)) :) on 8/7/01 8:47 AM, Tarrant Costelloe at [EMAIL PROTECTED] wrote: When using if (!$submit) I get an error saying: Warning: Undefined variable: submit in C:\Inetpub\webpub\default.php on line 1 Fair enough, so then I add if (isset(!$submit)) and I then get an error;

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 09:23:02AM -0600, mike cullerton wrote: on 8/7/01 2:43 AM, Renze Munnik at [EMAIL PROTECTED] wrote: On Mon, Aug 06, 2001 at 12:31:38PM -0700, Mark Maggelet wrote: i can't tell if it's just a email formatting thing, but if there's a line break in the onsubmit

RE: [PHP] IP Address

2001-08-07 Thread Kurth Bemis
At 09:29 AM 8/7/2001, Joseph Bannon wrote: rant This is the problem with todays web programmers and with PHP. One - With the explosion in the ease of HTML and related technologies EVERYBODY is a designer/programmerlets face itsome have it some don't. If you think that blinking text

Re: [PHP] Re: xsl:include doesn't work from php, it works withsabcmd

2001-08-07 Thread Marius Andreiana
On 07 Aug 2001 15:30:44 +0100, Peter Clarke wrote: Have you tried Sablotron 0.60? yes, the same. How could I see at least what the problem is? (meaningful error message) -- Marius Andreiana -- You don't have to go to jail for helping your neighbour http://www.gnu.org/philosophy/ -- PHP

Re: [PHP] mysql escape character \'

2001-08-07 Thread Anton Stroganov
- Original Message - From: hassan el forkani [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 07:32 greetings; i'm not sure if this is a mysql or php issue so i'm posting to both lists, i'm developping a community web site with news, forums..; while working on the admin section

RE: [PHP] Session problem

2001-08-07 Thread hassan el forkani
this code works on my machines: ?php header (Cache-Control: no-cache, must-revalidate, max_age=0); session_start(); if ($HTTP_SESSION_VARS['count']) { $count = $HTTP_SESSION_VARS['count']; $count++; session_register (count); echo Hello visitor, you have seen this page

[PHP] ICMP Ping

2001-08-07 Thread James Crowley
Hi, I'm trying to write a port scanner similar to http://scan.sygatetech.com to expose security holes in a PC or server. However, I can't figure out how to perform an ICMP ping. Does anyone know how? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk

Re: [PHP] Upper or Lower Case

2001-08-07 Thread James Holloway
Hi Taz, What happens if they type NeO, or NEO, or nEo, or neO (etc)? ;) Also, if you're using this in a large application (or intend to in the future), are you going to type out all of the names as you have done with the neo example? Bjorn's method is much better, and you're better off getting

Re: [PHP] ICMP Ping

2001-08-07 Thread Tyler Longren
exec(ping 127.0.0.1); -- +-+ |Tyler Longren| | Captain Jack Communications | |[EMAIL PROTECTED]| | www.captainjack.com | +-+ On Tue, 7 Aug 2001 17:11:36 +0100 James Crowley [EMAIL PROTECTED] wrote: Hi,

RE: [PHP] Upper or Lower Case

2001-08-07 Thread Jon Farmer
What happens if they type NeO, or NEO, or nEo, or neO (etc)? ;) Also, if you're using this in a large application (or intend to in the future), are you going to type out all of the names as you have done with the neo example? Bjorn's method is much better, and you're better off getting into good

Re: [PHP] ICMP Ping

2001-08-07 Thread hassan el forkani
look for icmp at http://phpclasses.upperdesigns.com i beilive there is a class that does just that regards At 18:11 07/08/01, you wrote: Hi, I'm trying to write a port scanner similar to http://scan.sygatetech.com to expose security holes in a PC or server. However, I can't figure out

[PHP] apache processes memory use

2001-08-07 Thread WendyIR
ok, I'm confused, any help would be greatly appreciated. Using PHP4 with Apache (version?). My problem is that I'm getting emalloc errors. Not the massive ones like those related to the database bugs, it's anywhere from 1 byte to 43 bytes. In my debug attempt I've been watching apache

Re: [PHP] ICMP Ping

2001-08-07 Thread Sean C. McCarthy
Hi All, You meant: http://www.PHPClasses.UpperDesign.com/ didn't you? Sean C. McCarthy SCI, SL (www.sci-spain.com) hassan el forkani wrote: look for icmp at http://phpclasses.upperdesigns.com i beilive there is a class that does just that regards At 18:11

[PHP] converting numeric to a string

2001-08-07 Thread Don
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? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

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] converting numeric to a string

2001-08-07 Thread rm
check out settype() however read the doc on types you may not need settype at all rm --- Don [EMAIL PROTECTED] 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

[PHP] Database Stored Procedure Result

2001-08-07 Thread James Stevens
I use ODBC on a Win2K system to connect to a MS-SQL database. I use a stored procedure in the database to add a record to a table. The stored procedure returns a result code that is either the records ID or a -1 indication that the record was not added. How do I check the return result in PHP

RE: [PHP] converting numeric to a string

2001-08-07 Thread Kees Hoekzema
hey, this function does not exists. An interger can be treated as string without any problems, see also: http://www.php.net/manual/en/language.types.string.php#language.types.string .conversion Kees -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07,

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
Hello Max Thank you for this interesting idea! I have implemented it on my test server and it seems to do what I want. However, at the moment, I do not fully understand what is happening. However, I will study the Apache docs right now. Thanks! Jonathan From: Maxwell Hung [EMAIL

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Mark Maggelet
Well, Mark... almost! You shouldn't use empty() _instead_ of isset(). You should use 'm together: if (isset ($input) !empty($input)) { print (Okay... form is completed!); } else { print (No way... can't do!); } Because, when you check using empty($input) there's still the possibility

[PHP] something worong

2001-08-07 Thread Eduardo Kokubo
Hi, I'm using this code to delete a file using onunload, but this is not working. Can anyone please tell me why? I know the function apaga() works, but the onunload thing doesn't. I probably missed a detail. html head /head BODY onunload=return apaga($diretorio); ?php function

Re: [PHP] mysql escape character \'

2001-08-07 Thread Hugh Danaher
Rasmus, solved this problem for me earlier today. Hope this helps Rasmus, Thank you very much. I ended up using the following statement, and it works!! $results=mysql_query(stripslashes($sql_statement)); What I have now is a textarea box where I can input trial searches. This is why I'm

Re: [PHP] Upper or Lower Case

2001-08-07 Thread Don Read
On 07-Aug-2001 Bjorn Van Simaeys wrote: Hi, I have run accross this problem too, and I solve it this way: if(strtolower($name1) == strtolower($name2)) I compare both variables in lower case, this way capitals don't matter at all. if (0 == strcasecmp('neo', $name)) // why

RE: [PHP] php_gd.dll for windows, please help me....

2001-08-07 Thread SED
Try this one: http://php4win.de/ SED -Original Message- From: Marius Pertravèius [mailto:[EMAIL PROTECTED]] Sent: 4. ágúst 2001 22:33 To: [EMAIL PROTECTED] Subject: [PHP] php_gd.dll for windows, please help me Sveiki, PHP, Does anyone here has good php_gd.dll file

  1   2   >