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

2001-04-23 Thread David Bouw
I haven't got any experiences with it, but the fread function will probably be your problem.. As far as I can see you try to read 24 Megabyte into a var... This is quite large, and probably your script will be quite because of memory problem, or a OS don't won't allow you to use that much memory

[PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello all, i would like to crypt a password as secure as possible. The documentation says crypt() will use DES unless MD5 is available. But in my case this doesn't seem to work. 'echo CRYPT_STD_DES ;' returns 1 'echo CRYPT_EXT_DES;' returns 0 'echo CRYPT_MD5;' returns 1 'e

Re: [PHP] Connecting to a MS Access database

2001-04-23 Thread Geir Eivind Mork
On Sunday 22 April 2001 22:02, Steve Maroney wrote: > This brings up a question that I always wondered. > Does Access have server functionality? Where do you configure these > settings ? If you go over the menuchoice - file, shake your mouse, bite in the cord, slam your head in the monitor fi

Re: [PHP] crypt() and md5

2001-04-23 Thread Rasmus Lerdorf
That means that you do have MD5 crypt() support. If you simply provide a salt that starts with $1$ you should get an md5-encrypted password. If you look in a passwd or shadow file that contains md5'ed passwords you will see something like this: $1$rZelmysN$Gj0rbqD76STIotGExxpna1

Re: [PHP] Re: Linux Suggestion

2001-04-23 Thread Geir Eivind Mork
On Sunday 22 April 2001 23:51, Padraic Tynan wrote: > You know, that's a tad rude, just suggestion an OS switch like that. :þ > I mean, my http server isn't the only thing I run -- this is my personal > use computer. I run linux and freebsd on my personal and work computer(s). but that's my p

[PHP-CVS] cvs: php4 / configure.in

2001-04-23 Thread Jani Taskinen
sniper Mon Apr 23 00:32:36 2001 EDT Modified files: /php4 configure.in Log: Fixed bugs: #10194, #9177. Index: php4/configure.in diff -u php4/configure.in:1.237 php4/configure.in:1.238 --- php4/configure.in:1.237 Sun Apr 22 23:00:43 2001 +++ php4/

Re: [PHP] Counting Words In a String

2001-04-23 Thread Robert Vetter
Greg Donald wrote: > > > I want to check a string and return the amount of words present > > in it. These > > strings could be quite large, some higher than 100,000 > > characters. I realize > > I could explode the string on the whitespace and count the number > > of values. > > However, I'm no

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

2001-04-23 Thread Geir Eivind Mork
On Monday 23 April 2001 08:59, Alexander Wagner wrote: > Tyler Longren wrote: > > $file = fopen("includes/about.inc", "r"); > > $data = fread($file, 2400); $file = "includes/about.inc"; if ($fp = fopen($file,"r")) { $data = fread($fp,filesize($file)); fclose($fp); } ought to work. --

Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hy, > That means that you do have MD5 crypt() support. If you simply provide a > salt that starts with $1$ you should get an md5-encrypted password. I know how to do it manually. But isn't crypt supposed to choose MD5-hashing if it is available on the system php is running on? I use PHP 4.0.4p

Re: [PHP] crypt() and md5

2001-04-23 Thread Rasmus Lerdorf
If your system's crypt() function supports standard DES crypt, then that will be the default if you do not supply a salt. PHP will generate a random DES salt for you. If you supply your own random MD5 salt and your system's crypt() function supports MD5, then it will generate an md5-encrypted st

Re: [PHP] Incrementing a String Name

2001-04-23 Thread Patrick Dunford
On 22 Apr 2001 17:56:23 -0700 AD in php.general, Chris Aitken said: >Hi > >Just a quick puzzle I cant seem to get around at the moment... Why don't you put it in your own thread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] redirection to another page function

2001-04-23 Thread James Holloway
One thing that doesn't seem to have been considered is the use of the "refresh" meta tag. Whilst it depends on whether or not the browser is archaic (and let's face it, most people nowadays seem to be running at least version 4 of either IE or Netscape), it's something that can't be turned off (a

Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello, > If your system's crypt() function supports standard DES crypt, then that > will be the default if you do not supply a salt. PHP will generate a > random DES salt for you. If you supply your own random MD5 salt and your > system's crypt() function supports MD5, then it will generate an

php-general Digest 23 Apr 2001 09:53:51 -0000 Issue 644

2001-04-23 Thread php-general-digest-help
php-general Digest 23 Apr 2001 09:53:51 - Issue 644 Topics (messages 49766 through 49826): Re: writing to file on server 49766 by: Adam 49767 by: Felix Kronlage Re: Link Color Questions 49768 by: Adam What's wrong with this code? 49769 by: Tyler Longren

[PHP] Why is it dangerous to have register_globals on?

2001-04-23 Thread Greig, Euan
I have read in several places that is dangerous to have register_globals on, but I have not understood the (short) explanations given. Can anyone enlighten me? Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997 *

[PHP] PHP Sydney meeting for April

2001-04-23 Thread info
Hello PHPers, The next PHP Sydney User Group meeting is tomorrow night Tuesday April 24, 2001 Starts at 7:00pm At Greythorn Pty Ltd Level 7 50 Margaret Street Sydney NSW 2000 Just around the corner from Wynyard. If you arrive before 6:00pm, just walk in. Between 6:00pm and 7:00pm, someone will mee

Re: [PHP] crypt() and md5

2001-04-23 Thread Niklas Neumann
Hello again, [...] > A bit mistakable I think. > I'll give the translator a wink. ... if i can find a way to contact him. Anybody knows how to get a contact for the german translation of the PHP documentation? Their names are listed on the front page of the manual but no email addresses. N

Re: [PHP] IMAP Help

2001-04-23 Thread Sigitas Paulavicius
Hi, imap_createmailbox() does not ceate a real new unix account. It creates a folder (speaking in Win terms, but rather mailbox) inside an account. Like "Trash", "Drafts" etc. Physicly a file is created for each mailbox in the users home dir. And there is one default mailbox INBOX, where all the

[PHP] Re: php-general Digest 23 Apr 2001 09:53:51 -0000 Issue 644

2001-04-23 Thread alter ego
I would like to separate the php errors generated by my scripts (quite a lot unfortunately) from my apache log files, but can't seem to get this to work. If this is a frequent question, please let me know a good place to search the mailing list and I promise I'll do. Here's what I do: In php.ini

[PHP] MySql / sql help plz!

2001-04-23 Thread elias
i have this table: - Id Value -- -- a a a b a c a d b a b b b c b d c a c b how can i get an SQL statment that when run, i get a query result like that: Id: Value count: --- -- a4 values b4 values c2 values i feel that it's easy...but

[PHP] how do I do this

2001-04-23 Thread Adrian D'Costa
Hi, I have the following script. What I want is that when I select the country the corresponding cities should only be listed in the second dropdown box. Can some one guide me. Right below is my table structure. $searchStmt = "select name from airlines group by name order by name" ; #$searc

Re: [PHP] MySql / sql help plz!

2001-04-23 Thread Sigitas Paulavicius
that would be: select Id, count(*) from sometable group by Id Sigitas -- 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]

[PHP] reading apache log into MySQL

2001-04-23 Thread Markus Maussner
hi.. annybody know how i could read the apache logfile into mysql ? my problems is that i dont find anny reasonable "field limiters"... like first it uses " " then it uses "\"" then again " " if i would do a explode on " " it destroys the "get " index.php "" markus -- ~~~

[PHP] gd-jpeg-support and php-3.0.18

2001-04-23 Thread Felix Kronlage
Hi, on one of our Ultra-sparc boxes I need to get php-3.0.18 and gd 1.8.4 running together smoothly. I compiled gd lib from scratch (Version: 1.8.4) to have jpeg-support. Following lines come out of the Makefile for gd: | CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG | LIBS=-lgd -ljpeg -lpng -lz -lm

[PHP-CVS] cvs: php4 /ext/oci8 oci8.c

2001-04-23 Thread Thies C. Arntzen
thies Mon Apr 23 04:54:02 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: fixed ZTS buidl - still some WS pollution left Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.118 php4/ext/oci8/oci8.c:1.119 --- php4/ext/oci8/oci8.c:1.118 Thu

[PHP] if... then... else with HTML

2001-04-23 Thread Martin Thoma
Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of ", which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Martin Thoma
Ah, I forgott the {} ;-) You are using Internet Explorer You are not using Internet Explorer Martin Thoma schrieb: > Hello ! > > I want to do something like > > if (condition) > output this html-block > else > output that html-block > > Without printig or echoing the html-block out (

RE: [PHP] if... then... else with HTML

2001-04-23 Thread Taylor, Stewart
HTML HTML -Stewart -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 13:41 To: [EMAIL PROTECTED] Subject: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition) output this html-block else output that

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Geir Eivind Mork
On Monday 23 April 2001 14:41, Martin Thoma wrote: if ($word != "flat") { echo << html html -- php developer / CoreTrek AS| I judge a religion as being good or bad Sandnes / Rogaland / Norway| based on whether its adherents become web: http://www.moijk.net/ | bette

RE: [PHP] if... then... else with HTML

2001-04-23 Thread Tyler Longren
1st HTML here 2nd HTML here > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 7:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] if... then... else with HTML > > > Hello ! > > I want to do something like > > if (condition) > o

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Avetis Avagyan
Something like this: output this html-block output that html-block Regards, Avetis Martin Thoma wrote: > Hello ! > > I want to do something like > > if (condition) > output this html-block > else > output that html-block > > Without printig or echoing the html-block out (beca

Re: [PHP-CVS] cvs: php4 /ext/ccvs ccvs.c

2001-04-23 Thread Andi Gutmans
Are you sure this patch is right? It seems a bit odd. You shouldn't really have NULL pointers in strings which are passed to convert_to_string_ex(). Andi At 11:40 PM 4/22/2001 +, Sterling Hughes wrote: >sterlingSun Apr 22 16:40:34 2001 EDT > > Modified files: > /php4/e

SV: [PHP] if... then... else with HTML

2001-04-23 Thread Fredrik Wahlberg
I hope I understood your question right. You can do like this html text other html > -Ursprungligt meddelande- > Fran: Martin Thoma [mailto:[EMAIL PROTECTED]] > Skickat: den 23 april 2001 14:41 > Till: [EMAIL PROTECTED] > Amne: [PHP] if... then... else with HTML > > > Hell

Re: [PHP] if... then... else with HTML

2001-04-23 Thread elias
yes, consider this: your name is name is not set! -elias http://eassoft.cjb.net "Martin Thoma" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello ! > > I want to do something like > > if (condition) > output this html-block > else > output

RE: [PHP] Connecting to a MS Access database

2001-04-23 Thread Andrew Hill
Actually, I must put my .02 in again. ODBC is not by nature slow. Some implementations of ODBC are indeed slow, especially the ones that are additional abstraction layers on top of a native driver, but other ODBC drivers (OpenLink's included) can bypass the native networking layer, producing a c

[PHP] logging in (online?!)

2001-04-23 Thread FredrikAT
Hi! I have users logging in on my site (they write news).. What is the best way to show how's online? Write to MySQL (last logged in) ? Somehow use the sessions to this ? - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

[PHP] 'XML To Array' Class

2001-04-23 Thread [EMAIL PROTECTED]
Hello, I'm new to using XML with PHP, but I think I've got it figured out for the most part. I have created a class that reads in an XML file and returns the data it finds to an array, but I'm running into a problem because the array keeps coming back empty. Would you mind taking a moment t

Re: [PHP] MySql / sql help plz!

2001-04-23 Thread Brian S. Dunworth
At 02:33 PM 4/23/01 -0700, elias wrote: >how can i get an SQL statment that when run, i get a query result like that: > >Id: Value count: >--- -- >a4 values >b4 values >c2 values SELECT ID,COUNT(*) FROM table_name GROUP BY ID; >i feel that it's easy...but i'm not re

RE: [PHP] PHP Error

2001-04-23 Thread jessica
Yeah right... Sure, we can use ob_start(), but the poster of original message apparently does not make any use of these functions , therefore his problem is easily solvable by just keeping track of output start rather then creating a whole buffering system. After all, why would you use some str

[PHP] ALERTE: VIRUS DETECTE DANS UN MESSAGE ENVOYE PAR php-general-return-49852-jnapieraj=nordnet.fr@lists.php.net

2001-04-23 Thread root
A L E R T E V I R U S Notre système de détection automatique anti-virus a détecté un virus dans un message qui vous a été envoyé par "jessica" <[EMAIL PROTECTED]>. La distribution de ce message a été stoppée. Veuillez vous rapprocher de l'émetteur "jessica" <[EMA

Re: [PHP] 'XML To Array' Class

2001-04-23 Thread Serge Vleugels
heey, i'm currently facing the same problem as you. i was thinking of using either xml_parse_into_struct or using a class i found phpxml.class at http://www.phpxml.org let me know how you did it, i'm very intrested Serge "Zeddicus Zu'l Zorandre" Vleugels -- freedom is the wizard's only choice

Re: [PHP-CVS] Re: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-23 Thread Andrei Zmievski
On Sun, 22 Apr 2001, [EMAIL PROTECTED] wrote: > I don't think this is wise to do. Harald put in some fixes for COM support > (a lot even) and Sascha's patch will fix bugs in thttpd support. I don't > think it's a prob to delay the Release another week, as it's been a very > long time since php4.0.

Re: [PHP] Getting a binary file from URL

2001-04-23 Thread Christian Reiniger
On Sunday 22 April 2001 21:25, Sigitas Paulavicius wrote: > Solution #1 > > $contents = fread ($pointer, 1); > > > > Solution #2 > > $contents=""; > while ($partial = fread ($pointer, 8192)) { > $contents.=$partial; > }; But test this before you rely on it. I once did this with (

Re: [PHP] 'XML To Array' Class (Array Problem)

2001-04-23 Thread [EMAIL PROTECTED]
I think it's important to mention that my problem is not with XML, but with my use of arrays. I have tested the variable content that comes back with XML and the data is coming through. My problem is I am not doing something right to make the data into an array... > heey, > > i'm currentl

[PHP] Problem with session vars !

2001-04-23 Thread Nicolas Guilhot
I am having problem with PHP4 session variables. I think I misunderstood how they work, and I can't see what I'm doing wrong. Any help would be appreciated. I am using the version from EasyPhp 1.1.1. Below is a short example to explain my problem. I've got two php scripts. 'test1.php' which start

Re: [PHP] include file using .htaccess

2001-04-23 Thread Keyur Kalaria
thanks for that , it is working fine. keyur - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Keyur Kalaria" <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2001 9:18 PM Subject: Re: [PHP] include file using .htaccess > Make sure AllowOve

[PHP] Site Structure

2001-04-23 Thread Jordan Elver
Hi, I have a site structure like: -> root ---> includes ---> admin ---> images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same

RE: [PHP] Site Structure

2001-04-23 Thread Renzi, Sebastian
try include('../includes/header.inc'); Sebastián Renzi Consultoría & Desarrollo de Sistemas. CODES S.A > -Mensaje original- > De: Jordan Elver [SMTP:[EMAIL PROTECTED]] > Enviado el: lunes 23 de abril de 2001 11:56 > Para: PHP General Mailing List > Asunto: [PHP] Site Str

RE: [PHP] Site Structure

2001-04-23 Thread Martin Gottlieb
Or better yet: include( "$DOCUMENT_ROOT/includes/header.inc" ); Martin Gottlieb -Original Message- From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:56 AM To: 'Jordan Elver'; PHP General Mailing List Subject: RE: [PHP] Site Structure try include(

Re: [PHP] how do I do this

2001-04-23 Thread Andreas Landmark
On Mon, Apr 23, 2001 at 04:59:49PM +0530, Adrian D'Costa produced this golden nugget: > Hi, > > I have the following script. What I want is that when I select the > country the corresponding cities should only be listed in the second > dropdown box. Can some one guide me. Right below is my tab

[PHP] PHP4 session management and internal HTML links

2001-04-23 Thread Anna Lyse
I wrote a HTML page using PHP 4.0 and its session management and I am getting very strange results. I found out that it only happens when I use href="#1". There is no problem with href="file.php#1". Original code: Gesuchte Tätigkeit Gesuchte Tätigkeit Gesuchte Tätigkeit

[PHP] Newbie Question

2001-04-23 Thread Wade
I wanted to say thanks to all those that have helped me. This is really a great language and I am doing things I never thought I'd be able to do! Now to my question: I am doing some form validation, where I check the values entered by the user. If the value is correct, I format the results and p

Re: [PHP] PHP ---- sort()

2001-04-23 Thread Andreas Landmark
On Mon, Apr 23, 2001 at 08:57:21AM -0400, Scott Fletcher produced this golden nugget: > I have used the PHP sort function --> sort(). When I use sort($data, > NUMERIC), it sort the data by Numeric order. But it goes in ascending > order. Is there a way to make it go in Descending order? Use rs

Re: [PHP] Site Structure

2001-04-23 Thread Jordan Elver
Hi, Thanks for the reply. I can do that but then the images will not be in the correct location? Jordan On Monday 23 April 2001 15:58, you wrote: > give the include() function a complete path: > > include '/apache/htdocs/include/yourfile.inc.php'; > > > -- Ben Cairns - Head Of Technical Operati

[PHP] Fatal Errors and Error Handling

2001-04-23 Thread Svein Roar Nilsen
Hi! I am working on a project for exchanging tidal water level information, and we are exchanging information using XML over HTTP, and decided to try PHP for the job. PHP has been a good choice so far, and the project is nearly finished. But there is one problem remaining that could force us to d

[PHP] XML/Array Class

2001-04-23 Thread [EMAIL PROTECTED]
I've narrowed down my problem... It is building the array as it should. I can print_r the results in the function CData(). However, the results are no longer then at the end of GetArray(). I'm not sure what's causing this problem... Parser = xml_parser_create("ISO-8859-1");

RE: [PHP] Site Structure

2001-04-23 Thread John Huggins
I would suggest putting your includes out of the web tree. /.../website/htdocs/admin /.../website/htdocs/images /.../website/includes This may be totally inappropriate for now, but is a good habit to get into. Call the includes with the full pathname. I know this stinks, but is a good solution

RE: [PHP] Newbie Question

2001-04-23 Thread Taylor, Stewart
You've got some typo's if (my_type != "0"){ --> if ($my_type != "0") { Plus you forgot to use the print function (or to turn off php ?>) to output the Select HTML. -Stewart -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 16:15 To: [EMAIL PROTECTED] Subject:

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Richard Crawford
Alternatively, and this is what I would do because it would be easier to maintain should you want to change the content later on, you could use includes as per the following: \n\nTry This\n\n\n"); if(condition) include("html_block_1.html"); else

Re: [PHP] Newbie Question

2001-04-23 Thread Wade
Stewart- Thanks a great deal It works now. Wade ""Taylor, Stewart"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You've got some typo's > if (my_type != "0"){ --> if ($my_type != "0") { > > Plus you forgot to use the print function (or to turn off php ?>

[PHP] print and echo

2001-04-23 Thread Wade
What's the difference between these two and is there a preference in which one to use? -Wade -- 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 PROTEC

RE: [PHP] print and echo

2001-04-23 Thread Angerer, Chad
This has been answered several times I think check here http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 CAA -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] print and echo What's the diffe

Re: [PHP] Newbie Question

2001-04-23 Thread Geir Eivind Mork
On Monday 23 April 2001 17:34, Taylor, Stewart wrote: > You've got some typo's > if (my_type != "0"){ --> if ($my_type != "0") { if ($my_type) if it's a check if it's true, "not-equal"-ing it to string 0 is a ugly way to do it. just my two cents. -- php developer / CoreTrek AS| Fo

Re: [PHP] print and echo

2001-04-23 Thread Wade
Thank you! ""Angerer, Chad"" <[EMAIL PROTECTED]> wrote in message 9E35C54B0C7AD411B5C1009027DE539940B5ED@MSPMX01">news:9E35C54B0C7AD411B5C1009027DE539940B5ED@MSPMX01... > This has been answered several times I think > > check here > > http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 >

[PHP] anyone know of a dicitionary for bad site content?

2001-04-23 Thread Dennis Gearon
For example, lets say you had a tool site. You wanted a standard dictionary to compare incoming user supplied content against to prevent stuff like, "Sadomasochist implements", "F**K YOU!", "This site is a pieces of 'merde'" etcetera out. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Fatal Errors and Error Handling

2001-04-23 Thread Geir Eivind Mork
On Monday 23 April 2001 17:29, Svein Roar Nilsen wrote: > And I see no reason why we should not be allowed to handle most of the > fatal errors we get on our own. Especially annoying is the xslt_process() > function that returns something like "Fatal error: XML parser > error 7: mismatched tag

[PHP] Building as an Apache module

2001-04-23 Thread Hasan Niyaz
Hi, I am running Apache on win 2000 and when I configured PHP it automatically installed as a CGI binary. Is there any way I can install it as an Apache Module on win 2000 machine. Thanks for your help, Hasan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Apache, PHP, Windows XP, MSIE 6, Cheese, and Cookies.

2001-04-23 Thread B. van Ouwerkerk
>Choose a flavor of linux, format your HD, install, and run the that server >like it was meant to run. If you don't want to kill your Windooz, you could do a dualinstall. I'm not sure it will run with XP.. never seen XP.. hope it stays that way :-) But with W95 it runs like a dream. Or.. use

[PHP] XML/Array Class (Possible Bug??)

2001-04-23 Thread [EMAIL PROTECTED]
I decided to take my class and just turn it into some functions. It works perfectly. I did not change any code except for removing the class declaration and getting rid of the $this-> statements. I believe that maybe my problem has to do with the use of xml_set_object() making a reference t

Re: [PHP] Building as an Apache module

2001-04-23 Thread Phil Driscoll
Download the larger Windows binary zip from the php downloads page - that includes the Apache module. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] anyone know of a dicitionary for bad site content?

2001-04-23 Thread Christian Reiniger
On Monday 23 April 2001 17:57, Dennis Gearon wrote: > For example, lets say you had a tool site. > > You wanted a standard dictionary to compare incoming user supplied > content against to prevent stuff like, "Sadomasochist implements", > "F**K YOU!", "This site is a pieces of 'merde'" etcetera ou

[PHP] Cannot remove module mod_php4.c: not found in module list

2001-04-23 Thread Markus Held
Hello i have a big problem and find no answer In /var/log/httpd/error_log if have this error "Cannot remove module mod_php4.c: not found in module list" i installed three times the php4.0.4 no problems with configure; make; make install but if i would start the apache i get this error gruß

Re: [PHP] Cannot remove module mod_php4.c: not found in module list

2001-04-23 Thread Rasmus Lerdorf
> i have a big problem and find no answer > > In /var/log/httpd/error_log if have this error > > "Cannot remove module mod_php4.c: not found in module list" > > i installed three times the php4.0.4 > no problems with configure; make; make install > > but if i would start the apache i get this erro

Re: [PHP] Site Structure

2001-04-23 Thread Toby Miller
Jordan, Not true. If you make your PHP includes look like this: include("$DOCUMENT_ROOT/includes/header.inc"); Then you can make your image calls with an absolute URL like this: Also, it's not a good idea to use the .inc extension unless you've associated it with PHP. The reason is if I type

[PHP] Associative arrays in strings

2001-04-23 Thread Boget, Chris
We have an array: $myArray = array( "joe"=>"bob", "this"=>"that" ); I know that technically, you shouldn't do the following to print it out: echo "Here is a $string, $myArray[joe] with $alot of PHP $variables"; If you have the highest error level on, PHP will display an error though if you do

[PHP] compiling with stronghold

2001-04-23 Thread charles
Anyone know of docs in place for compiling php4 under stronghold? Its apache based, however I was hoping that someone had put some doc into place specific to this webserver. Thanks- charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: [PHP] Site Structure

2001-04-23 Thread indrek siitan
Hi, > Also, it's not a good idea to use the .inc extension unless you've > associated it with PHP. The reason is if I type the URL directly to > /includes/header.inc I will get the source code for that file in text > format. you don't have to keep your .inc files in the web server document root

Re: [PHP] Site Structure

2001-04-23 Thread Kurth Bemis
At 01:12 PM 4/23/2001, Toby Miller wrote: personally i deny all access to my .inc files. with this Apache config... works really good :-) in httpd.conf # The following prevents .inc file from being read by web clients Order allow,deny Deny from all ~kurth >Jordan, > >No

Re: [PHP] Associative arrays in strings

2001-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Now, supposing you > do have error level set to very high, you cannot do this: > > echo "Here is a $string, $myArray['joe'] with $alot of PHP $variables"; > (using single quotes) > > to stop the error. You actually ha

Re: [PHP] Associative arrays in strings

2001-04-23 Thread Phil Driscoll
echo "Here is a $string, {$myArray["joe"]} with $alot of PHP $variables"; -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] insert data to mysql

2001-04-23 Thread shawn
Hello, I am just wondering if someone can help me out with this. This is what I have so far, but it isnt working: MYSQL_CONNECT($hostname, $username, $password) or die("Unable to connect to database"); @mysql_select_db( "$dbName") or die( "Unable to select database"); $sql = "INSERT INTO $u

[PHP] Problems compiling DBG debugger

2001-04-23 Thread Geoff Caplan
Hi I am trying to compile Dmitri Dmitrienko's DBG PHP debugger on RedHat. The docs say to put the DBG directory into the PHP ext directory, delete the existing PHP ./configure shell script, and then create a new configure script by running ./buildconf. My problem is that when I try to run the .

Re: [PHP] insert data to mysql

2001-04-23 Thread Thomas Deliduka
On 4/23/2001 1:32 PM this was written: > $sql = "INSERT INTO $userstable (client, contact, email, address, city, state, > zip, phone, fax, model, country, details, type) > > VALUES("$client", "$contact", "$email", "$address", "$city", "$state", "$zip", > "$phone", "$fax", "$model", "$country", "

Re: [PHP] insert data to mysql

2001-04-23 Thread Richard Crawford
Concatenate your string. "...VALUES ('".$client."','".$contact."')" (etc.) Or just replace the double-quotes within the string with single quotes. That should do it. >> Original Message << On 4/23/01, 10:32:47 AM, "shawn" <[EMAIL PROTECTED]> wrote regarding

RE: [PHP] Site Structure

2001-04-23 Thread John Huggins
This is true and I do this in .htaccess or in the main Apache config file when possible. However, for those who do not have control over the main config file, you are at the mercy of the system operator. They could turn off looking at your .htaccess files and not have the "" directive to hide th

[PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread Frank M. Kromann
fmk Mon Apr 23 10:33:22 2001 EDT Modified files: /php4/main config.w32.h php_ini.c Log: Fix build on WIn32 Should the new directorys be static? Index: php4/main/config.w32.h diff -u php4/main/config.w32.h:1.40 php4/main/config.w32.h:1.41 --- php4/main/co

[PHP] Encryption (Browser Side)

2001-04-23 Thread Jason Mowat
Greets, I have a question about PHP and browser-side encryption. I currently authenticate my users to an LDAP system using the PHP LDAP APIs. The user enters their login name and password on a browser form, with the password box being set to all '*'s for password. However, this information is

Re: [PHP] Encryption (Browser Side)

2001-04-23 Thread Plutarck
Don't know much about LDAP so I can't answer those questions, but the only way (short of creating/requiring a plug-in just to encrypt the data, which isn't a good idea) to have the user send an encrypted password is to use SSL on the login/creation page. That means you can't ever send their passwo

[PHP] Icq Message

2001-04-23 Thread Christopher Allen
Greetings: Anyone have a clue as how to send an icq message to a given ICQ number via a php-web-page? TIA. Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the lis

RE: [PHP] --enable-trans-sid

2001-04-23 Thread Boget, Chris
> I wasn't able to find this in the docs, so could someone > tell me exactly how --enable-trans-sid is supposed to work > behind the scenes? > while it won't for this url: > > target="_top">here I've also tried... here > > It makes no sense to me... > Any help would be greatly appreciated!!

[PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Brandon Orther
Hello, I recently took an ANSI SQL class to better familiarize my self with SQL in general. In the class we used MSSQL SERVER 7 and to do queries we used the Query Analyzer. Does anyone know of a PHP script that works like the Query Analyzer so I can test Queries in a Browser? Like A Te

Re: [PHP] Newbie Question (and an odd bug)

2001-04-23 Thread Plutarck
Furthermore, it's also buggy. If the user submits an empty string the if() will consider it to be not equal to "0", which will execute whatever is in the if statement. Not only that, but if the user submits the number 0 it invites bugs because the string "0" is not equal to the number 0. Even if

[PHP] PHP 4.0.5

2001-04-23 Thread Dominique Paquin
I asked when the new version of PHP was comming out at the beginning of the month and some one told me that it was comming out the week after. Haven't seen it yet, anyone knows the release date?? Dominique Paquin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread James Moore
> fmk Mon Apr 23 10:33:22 2001 EDT > > Modified files: > /php4/mainconfig.w32.h php_ini.c > + > +/* Define directory constants for php and pear */ > +#define PHP_BINDIR "c:\\php4" > +#define PHP_LIBDIR "c:\\php4" > +#define PHP_DATADIR "c:\\php4" > +#define PHP_SYSCONFDIR "

Re: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Kurth Bemis
At 02:56 PM 4/23/2001, Brandon Orther wrote: teh guys a phpwizzard.net wrote phpmyadmin...its a wonderful db admin tool...and it has a feature like what your describing.check it out...http://www.phpwizzards.net ~kurth >Hello, > I recently took an ANSI SQL class to better familiariz

Re: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Plutarck
If you want to input SQL querries through a text box, you can just build an easy one in PHP. Note: it's extremely unsecure to use for anything more than personal use. Just create an HTML form with a textarea and a submit button. Set the action to the php page and on the PHP page do something like

[PHP] newbie question: duplicate emails

2001-04-23 Thread Nikhil Goyal
Hello people, I am having a peculiar problem with my mailing list and hope you can help me out. I have a mySQL database with a table of email addresses for the mailing lists. I have many lists, and my (PHP) code runs various queries on this table to generate lists of email addresses to which the

Re: [PHP] PHP 4.0.5

2001-04-23 Thread Felix Kronlage
On Mon, Apr 23, 2001 at 03:00:07PM -0700, Dominique Paquin wrote: > I asked when the new version of PHP was comming out at the beginning of the > month and some one told me that it was comming out the week after. Haven't > seen it yet, anyone knows the release date?? RC7 got out a few days ago (

RE: [PHP] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Chris Mulcahy
Brandon: Search www.freshmeat.net for phpmyadmin. It's a great little tool to help you administer MySQL, including executing arbitrary SQL statements. There are several others there as well. Freshmeat has plenty of tools to get you going. hth Chris -Original Message- From: Brandon Or

Re: [PHP] Icq Message

2001-04-23 Thread Shawn J. Wallace
At 01:40 PM 4/23/2001 -0500, you wrote: >Anyone have a clue as how to send an icq message to a given ICQ number via a >php-web-page? I think I remember seeing one on the zend.com code gallery. Do a search there for icq. Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

  1   2   3   >