Re: [PHP] PHPS on apache2

2002-08-11 Thread Alawi
on the way how can I make phps on IIS WHERE CAN I read ABOUT THIS ON MANUAL? - Original Message - From: FileCop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 09, 2002 11:25 PM Subject: [PHP] PHPS on apache2 Hi! I have installed apache 2.0.39 and php 4.2.2 on a windows

php-general Digest 11 Aug 2002 08:51:29 -0000 Issue 1518

2002-08-11 Thread php-general-digest-help
php-general Digest 11 Aug 2002 08:51:29 - Issue 1518 Topics (messages 111971 through 112000): Re: Win PHP Editor... 111971 by: Glenn Sieb 111993 by: Liam MacKenzie Random mirrors and download quota 111972 by: Andrew Conner PHPS on apache2 111973 by:

[PHP] need help

2002-08-11 Thread Reymond
I am newbie in php scripting, I am used to using asp scripting I get the result of my page but with no error message But Operator like * , + , or / the result is not valid result Variable $rat on my page it’s not work ………. My database sample ___ Id gid

[PHP] Advice

2002-08-11 Thread Steve Jackson
Hello all, I need some advice on which version of PHP server to go with, as I am completely new to PHP. The website I am doing research for would need to be able to access a database in order to make the site interactive. Similar to the Microsoft Knowledge base at MSDN but for something

Re: [PHP] Advice

2002-08-11 Thread Justin French
PHP releases a stable version (currently 4.2.2) which is suitable and stable for a production environment. My advice would ALLWAYS be to install the latest stable version. If you install an earlier version, or PHP3, you will always be missing out on something (eg PHP3 doesn't have sessions).

[PHP] IP and Language

2002-08-11 Thread Christian Ista
Hello, I'd like to know if it's possible to redirect a visitor of my website to the page index.php if he comes from Belgium, France, Luxembourg, Switzerland and all the others redirect to index_uk.php Possible ? Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To

[PHP] passing an array in a link

2002-08-11 Thread David T-G
Hi, all -- I collect field keys in an array that looks like $keylist = array('comment','job','spaced out key name','foo',...) ; and would like to pass the array to myself in a call like print a href=\/myscript.php?keylist=$keylist\link/a ; but when it's actually run it of course says

Re: [PHP] passing an array in a link

2002-08-11 Thread Bas Jobsen
print a href=\/myscript.php?keylist=.str_replace( ,+,implode(+,$keylist)).\link/a ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing an array in a link

2002-08-11 Thread David T-G
Bas, et al -- ...and then Bas Jobsen said... % % print a href=\/myscript.php?keylist=.str_replace( % ,+,implode(+,$keylist)).\link/a ; I tried this and my link the looks like Click a href=testme.php?a+b b b+chere/a to go round againbr (that is, not only have I not taken care of the

[PHP] problem solving

2002-08-11 Thread Justin French
HI all, I have the following tables: artist id,name songs id,artist_id,title,writers cds id, title songs_to_cds cd_id, song_id, track_no The idea being that since a song can appear on more than one CD by a given artist, the table songs_to_cds relates them. Anyhoo, on the form where the

[PHP] script parsing in img src tag

2002-08-11 Thread Sascha Braun
Why doesn't parse my computer php scripts in img src tags? echo img border=\0\ src=\include/thumb.inc.php?pic=.$file.zoom=25ext=jpg\ Always when I call the page where the image resides there is no image, but the full URL to the script with parsed vars like this: img border=0

[PHP] subtracting 2 time strings

2002-08-11 Thread Christopher Molnar
Help! I can't find reference to it in the manuals but I need to subtract to time strings. ex: time_in = 11:00 time_out = 13:45 job_time = 2:45 I have stored these times into mysql as a TIME type column (yeh... I know really dumb - but to much data at this point to loose). Does anyone

[PHP] Posting news via php

2002-08-11 Thread Andy
Sorry for reposting, but I am still having this problem and the post is back to far that someone looks at it. Thank you for any help on this. I appreciate it. Andy Hi there, I am trying to write a script which is posting news to a newsserver. Unfortunatelly I do get a 535 error back which is

[PHP] Re: IP and Language

2002-08-11 Thread Peter
It's going to be difficult to detech 'where' the user is coming from but you can find out what their default language is. I think it's one of the sever variables. If you are using Apache though, there is an autoselection feature which allows you to have several copies of your pages in different

Re: [PHP] passing an array in a form element

2002-08-11 Thread David T-G
Hi again -- ...and then David T-G said... % ... % How can I pass myself an array -- and recognize it on the receiving end? I had been spending all of my time digging into htmlentities() and the like when, in fact, all I had to do was a simple preg_replace on each component :-) Now how can I

Re: [PHP] subtracting 2 time strings

2002-08-11 Thread Matt
From: Christopher Molnar [EMAIL PROTECTED] Sent: Saturday, August 10, 2002 11:37 AM Subject: [PHP] subtracting 2 time strings Help! I can't find reference to it in the manuals but I need to subtract to time strings. ex: time_in = 11:00 time_out = 13:45 job_time = 2:45

RE: [PHP] records in db

2002-08-11 Thread Chris Kay
// untested $data = mysql_fetch_array(mysql_query(SELECT count(answer_col) as total FROM answers_table WHERE answer_col='{$answer}')); echo $data[total]; Put this in a while/foreach statement Regards Chris Kay -Original Message- From: Justin French [mailto:[EMAIL

[PHP] Re: need help

2002-08-11 Thread B.C. Lance
to do a comparison between two values / variables, you have to use == instead of = = is an assignment while == is a comparison operator if($row['gid'] == 0) { $rat = 110; } elseif($row['gid'] == 1) { $rat = 9.5; } else { $rat = 6.6; } -- PHP General Mailing List

Re: [PHP] Re: need help

2002-08-11 Thread Matt
From: B.C. Lance [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 9:53 AM Subject: [PHP] Re: need help to do a comparison between two values / variables, you have to use == instead of = = is an assignment while == is a comparison operator if($row['gid'] == 0) I write these this way so

[PHP] Re: passing an array in a link

2002-08-11 Thread B.C. Lance
you could try this: transmitting end: ?php foreach ($keylist as $key = $value) { $searchArg .= keylist[]=.htmlentities($value).; } ? a href=myphp.php??php echo $searchArg?array from search argument/a receiving end: foreach($_GET[keylist] as $key = $value) { echo {$value}br; } David

Re: [PHP] passing an array in a link

2002-08-11 Thread B.C. Lance
from my experience, you don't really have to worry much on the space issue. is the delimiter to determine that the string terminates and a new argument begins next. and very often, the browser will do an auto conversion from space to %20 when you click on the link. David T-G wrote: snip

Re: [PHP] Re: need help

2002-08-11 Thread Matt
From: B.C. Lance [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:17 AM Subject: Re: [PHP] Re: need help snip Matt wrote: if(0 == $row['gid']) /snip ahhh. let the parser do the check. works great if you are not comparing with 2 variables :) in fact, another way to avoid this

[PHP] Good Damn

2002-08-11 Thread Sascha Braun
$Query = SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'; $Result = mysql_query($Query, $connect); if ($Result) { while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC)) { echo 'tr bgcolor=#fffdd7 class=text01'; echo 'td'.$arrResult['image_id'].'/td';

[PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread John Brooks
Hello All, I have PHP installed on PWS running on a Windows 98SE m/c. When I invoke form action=action.php method=POST everything is fine and the form data is extracted correctly. When I try to embed the same script in the body of the form using form action=?php $PHP_SELF; ? method=POST I get

Re: [PHP] Good Damn

2002-08-11 Thread Bas Jobsen
if ($Result) { if(mysql_num_rows($Result)0) Op zondag 11 augustus 2002 16:32, schreef Sascha Braun: $Query = SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'; $Result = mysql_query($Query, $connect); if ($Result) { while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC)) {

Re: [PHP] Good Damn

2002-08-11 Thread Matt
From: Sascha Braun [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:32 AM Subject: [PHP] Good Damn $Query = SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'; try: $Query = SELECT * FROM basket_db WHERE session_id = '$PHPSESSID' or die(mysql_error()); -- PHP General Mailing List

Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Bas Jobsen
form action=?php $PHP_SELF; ? form action=?=$PHP_SELF? or form action=?php echo $PHP_SELF; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Matt
From: John Brooks [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:21 AM Subject: [PHP] Problem with $PHP_SELF on PWS I have PHP installed on PWS running on a Windows 98SE m/c. When I invoke form action=action.php method=POST everything is fine and the form data is extracted correctly.

Re: [PHP] Problem with echo

2002-08-11 Thread Bas Jobsen
Op zondag 11 augustus 2002 16:42, schreef Kristoffer Strom: Got a problem when echo:ing a variable containing alot of text. When echoing it backslashes (\) every apostrophe (') and quote (). This I don't like. And I can't use HTMLSPECIALCHARS or HTMLENTITIES since the text has alot of html

Re: [PHP] Problem with echo

2002-08-11 Thread Matt
From: Kristoffer Strom [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:42 AM Subject: [PHP] Problem with echo Got a problem when echo:ing a variable containing alot of text. When echoing it backslashes (\) every apostrophe (') and quote (). This I don't like. And I can't use

Re: [PHP] Problem with echo

2002-08-11 Thread Kristoffer Strom
Works like a charm, thx /Kris Bas Jobsen [EMAIL PROTECTED] wrote in message 02081115573503.02483@bjobsen">news:02081115573503.02483@bjobsen... Op zondag 11 augustus 2002 16:42, schreef Kristoffer Strom: Got a problem when echo:ing a variable containing alot of text. When echoing it

Re: [PHP] subtracting 2 time strings

2002-08-11 Thread Christopher Molnar
Thanks! Worked perfectly! -Chris On Sunday, August 11, 2002, at 09:27 AM, Matt wrote: From: Christopher Molnar [EMAIL PROTECTED] Sent: Saturday, August 10, 2002 11:37 AM Subject: [PHP] subtracting 2 time strings Help! I can't find reference to it in the manuals but I need to subtract

Re: [PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread Rodolfo Gonzalez
On Sat, 10 Aug 2002, lallous wrote: I'm making a on-line dictionary. I use PHP and a MySQL Database. Now I want to add audio-streaming (MP3) and pictures (JPG) to the database and retrieve it true PHP. Can sombody help me out with a little If the files are not secret or for members only,

[PHP] why true?

2002-08-11 Thread Bas Jobsen
echo ('test'==0); gives 1 why? Thanks, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why true?

2002-08-11 Thread Rasmus Lerdorf
Because you are comparing a string to a number. PHP has to choose to either compare the two as strings or as numbers. The numerical value of the string 'test' is 0 which means it works out to 0 == 0 which is true. If you want to force a string comparison, you can use strcmp() or, if you want

[PHP] Re: Good Damn

2002-08-11 Thread B.C. Lance
you might wanna use this instead: $result = mysql; if (mysql_num_rows($result) { while } else { echo 'no articles'; } $result will always hold an int value if the query does not contain any error. so doing a num_rows on it will be more accurate in telling you if records are

[PHP] Re: Cookie array

2002-08-11 Thread B.C. Lance
to store: setcookie (TestCookie[0], zero, time() + 3600); setcookie (TestCookie[1], one, time() + 3600); setcookie (TestCookie[2], two, time() + 3600); or setcookie (TestCookie[one], 1, time() + 3600); setcookie (TestCookie[two], 2, time() + 3600); setcookie (TestCookie[three], 3, time() +

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
Appreciate the feedback, but. The .htaccess approach appears to fit my situation best; but, I've not been able to get it to work. I have a folder with a php script and that folder has several sub-folders each with a small configuration script. I'd like the entry point to be a subfolder

[PHP] Best way to read file

2002-08-11 Thread César Aracena
Hi all. I am using readfile() to read and print the entire content of a .txt file into a site, but need to use /p tags to break down the lines. I intend to be able, as an Administrator, to edit these text files later. What is the best way to accomplish this? Should I keep using readfile() or

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Rasmus Lerdorf
Does your AllowOverride include Indexes? If it doesn't, you can't put DirectoryIndex in a .htaccess. httpd -L is your friend. -Rasmus On Sun, 11 Aug 2002, Al wrote: Appreciate the feedback, but. The .htaccess approach appears to fit my situation best; but, I've not been able to get

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Analysis Solutions
On Sun, Aug 11, 2002 at 12:33:55PM -0400, Al wrote: The .htaccess approach appears to fit my situation best; but, I've not been able to get it to work. I wondered about the DirectoryIndex directive's ability to utilize files in other directories, so did a little test, which is what you

Re: [PHP] Win PHP Editor...

2002-08-11 Thread Saci
Try this one 1st http://www.phpedit.com And you will know by yourself. Maxim Maletsky [EMAIL PROTECTED] escreveu na mensagem 01c2401a$fce3cc70$1113fe17@dominanta">news:01c2401a$fce3cc70$1113fe17@dominanta... But why not use notepad. Because it reduces your production speed and

Re: [PHP] Re: Cookie array

2002-08-11 Thread Jan - CWIZO
Thanx ! Dne nedelja 11. avgust 2002 18:10 je B.C. Lance napisal(a): to store: setcookie (TestCookie[0], zero, time() + 3600); setcookie (TestCookie[1], one, time() + 3600); setcookie (TestCookie[2], two, time() + 3600); or setcookie (TestCookie[one], 1, time() + 3600); setcookie

Re: [PHP] Re: [PHP-INST] RedHat 7.3 apache is running but where is PHP support

2002-08-11 Thread Jan - CWIZO
Did that. Removed all stuff from apache, php mysql. Now what ? I will download the source code for apache and mysql now. LP Dne nedelja 11. avgust 2002 20:56 je [EMAIL PROTECTED] napisal(a): remove dependent modules, to find out dependencies: rpm -q --whatrequires php the list should

[PHP] creating files in OS X

2002-08-11 Thread David Rice
Hi: I'm new to PHP. I'm running Apache/PHP/MySQL on Mac OS X 10.1.5 (PHP 4.1.2) and everything is working well except that I cannot create a file through PHP. If I create a file I can subsequently read/write from PHP, but only after I change its file permissions to read/write for everyone.

[PHP] imlib2 problems

2002-08-11 Thread Gareth Ardron
ok, had a look through the archives but couldn't find anything, so I'm sorry if I'm asking questions answered long ago. basically i'm trying to install imlib2 as a module for php rather than compiled into it as that was giving errors. when I run phpize, I get this: root@snipe:/home/gaz/imlib#

php-general Digest 11 Aug 2002 21:04:41 -0000 Issue 1519

2002-08-11 Thread php-general-digest-help
php-general Digest 11 Aug 2002 21:04:41 - Issue 1519 Topics (messages 112001 through 112049): need help 112001 by: Reymond 112017 by: B.C. Lance 112018 by: Matt 112021 by: B.C. Lance 112022 by: Matt Advice 112002 by: Steve Jackson

Re: [PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread danny
thank you for your answer How do you make a link in MySQL? I tried following code were the field geluid contains a link to a mp3 format of field geluid = varchar(250). The problem is that i just get plain text instead of a link to the MP3. Even better would be to have a button to clicjk if you

RE: [PHP] Re: Cookie array

2002-08-11 Thread Maxim Maletsky
It is way smarter storing serialized array in one cookie. And, if you get length problems then only store SESSID in cookie and the rest in session or database. Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: B.C. Lance [mailto:[EMAIL PROTECTED]]

RE: [PHP] Best way to read file

2002-08-11 Thread Maxim Maletsky
readfile() is good enough Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 11, 2002 6:36 PM To: PHP General List Subject: [PHP] Best way to read file Hi all. I am using

RE: [PHP] why true?

2002-08-11 Thread Maxim Maletsky
Try echo ('test'=='0'); and you'll see what Rasmus meant. Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 11, 2002 4:56 PM To: PHP General Subject: [PHP] why true? echo

RE: [PHP] Best way to read file

2002-08-11 Thread Maxim Maletsky
Whatever saves you lines of code, difference is not any big. Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: Pushkar Pradhan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 12:06 AM To: Maxim Maletsky Cc: 'César Aracena'; 'PHP

RE: [PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread David Freeman
How do you make a link in MySQL? I tried following code were the field geluid contains a link to a mp3 while ($row=mysql_fetch_array($result)) { echo trtd; echo $row[woord_nl]. /tdtd . $row[woord_ost]. /tdtd . $row[betekenis_nl]. /tdtd . $row[geluid]; echo /td/tr; }

[PHP] Hacker?

2002-08-11 Thread RPS Internet
My server is getting odd request form an outside computer. Upon looking into the requests I have found his PHP Config file is point to my server as the HTTP_VIA and other vars. I am wondering how I can deny him access since he is forwarding all request through my server with these settings. My

RE: [PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread RPS Internet
The way I always store links in the database is in the format of varchar, but if a file is stored in a mp3 folder to follow your example I would list it in the database as /mp3/sound.mp3. Then list your code like this: echo table width=\90%\ border=1trtd; echo

Re: [PHP] Hacker?

2002-08-11 Thread Tyler Longren
block his ip at the router. tyler On Sun, 11 Aug 2002 16:21:07 -0600 RPS Internet [EMAIL PROTECTED] wrote: My server is getting odd request form an outside computer. Upon looking into the requests I have found his PHP Config file is point to my server as the HTTP_VIA and other vars. I am

RE: [PHP] Hacker?

2002-08-11 Thread RPS Internet
What about all the users of his web site that are requesting his php scrpts that are compiling through my server? -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 11, 2002 4:15 PM To: RPS Internet Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker?

[PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread danny
thanks it works fine! :-))) Danny [EMAIL PROTECTED] schreef in berichtnieuws [EMAIL PROTECTED] hi, I already posted this message but the time on my computer was wrong (26/07 so i post it again). I am new on MySQL and PHP. I'm making a on-line dictionary. I use PHP and a MySQL Database.

[PHP] mkdate error?

2002-08-11 Thread jc
The following bit of code completely baffles me as to why it doesn't work. I am doing a very simple validation where I check to see if the end date field of an inputted record is an older date than the start date. I checked this by putting in the same date for both end and start dates. Yet

RE: [PHP] mkdate error?

2002-08-11 Thread RPS Internet
Your working with strings right? Would your if command be: if ($start_dts gt $end_dts) { echo This function thinks the end date is older than the start date.; } else { echo Whoah, it actually worked.; } In string you should use the gt comparitive instead of the . See if this works for

Re: [PHP] Hacker?

2002-08-11 Thread Tyler Longren
So what? You don't want him using your stuff anyway do you? tyler On Sun, 11 Aug 2002 16:33:17 -0600 RPS Internet [EMAIL PROTECTED] wrote: What about all the users of his web site that are requesting his php scrpts that are compiling through my server? -Original Message- From:

RE: [PHP] mkdate error?

2002-08-11 Thread chyunj
At 05:08 PM 8/11/2002 -0600, RPS Internet wrote: Your working with strings right? Would your if command be: if ($start_dts gt $end_dts) { echo This function thinks the end date is older than the start date.; } else { echo Whoah, it actually worked.; } In string you should use the

Re: [PHP] mkdate error?

2002-08-11 Thread Bas Jobsen
YOU use $parsed_date[2] in stead of $parsed_end_date[2] Op maandag 12 augustus 2002 00:01, schreef jc: The following bit of code completely baffles me as to why it doesn't work. I am doing a very simple validation where I check to see if the end date field of an inputted record is an older

[PHP] Free 'search engine' code

2002-08-11 Thread Edgard Berendsen
Hello, where can I find the best source for a search engine and a counter in PHP ? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating files in OS X

2002-08-11 Thread David Rice
Hi Paul: Thanks, that worked. Cheers, David On Sunday, August 11, 2002, at 07:11 PM, Paul Colcutt wrote: Hi, you need to set the permissions for the directory youre creating the file in. Try typing (or copy and paste): chmod 777 /Library/WebServer/Documents/dev into Terminal...

Re: [PHP] mkdate error?

2002-08-11 Thread chyunj
Oh my God. I had redone and ripped this apart for hours. Errors like this make me realize how stupid I truly am. Thank you for your help. :) I can go on with life now. J. Chyun At 12:30 AM 8/12/2002 +0200, Bas Jobsen wrote: YOU use $parsed_date[2] in stead of $parsed_end_date[2] -- PHP

Re: [PHP] Free 'search engine' code

2002-08-11 Thread Justin French
That would depend on what you want. What sort of counter? Hidden? Text file or database based? Images or text on screen? Per page? Per site? What sort of search engine? Are you searching and indexing text files or text in a databases? Are there categories and search methods, or just

Re: [PHP] Free 'search engine' code

2002-08-11 Thread Pushkar Pradhan
I just got a decent search engine from phpclasses.org ( I downloaded the one by BasicA). I modified it a little to add different page types to be returned and other directories. That would depend on what you want. What sort of counter? Hidden? Text file or database based? Images or text on

Re: [PHP] Free 'search engine' code

2002-08-11 Thread Edgard Berendsen
What sort of counter? Hidden? Text file or database based? Images or text on screen? Per page? Per site? Hidden or not hidden, database or no database based, with or wtithout images, per page or per site. What sort of search engine? Are you searching and indexing text files or text in a

[PHP] Re: Random mirrors and download quota

2002-08-11 Thread Julio Nobrega
Seems good to me, only this part: and it will be checked if the mirror is randomly selected and if it is above 1200, will randomly select another server It's better to select those under 1200 right from the start. If you have 10 servers, you might make 9 checks before selecting the last

Re: [PHP] Free 'search engine' code

2002-08-11 Thread salamander
Edgard, Check www.hotscripts.com for your needs - there is usually something there you can use or modify. Best regards, Andrew On Sunday, August 11, 2002, at 08:24 PM, Edgard Berendsen wrote: What sort of counter? Hidden? Text file or database based? Images or text on screen? Per

[PHP] Case Sensitivity

2002-08-11 Thread Rich Hutchins
I've had a web site under development on my Win2k box at home. I built and tested everything with PHP 4.2.2 and Apache 1.3.24. Now, I have transitioned everything up to my host who is using a Linux box, PHP 4.2.2 and Apache 1.3.26. One of the pages I designed has code that retrieves a list of

Re: [PHP] Case Sensitivity

2002-08-11 Thread Andrew Brampton
Linux file systems are case sensitive... So the file Hello.php is different to hello.php... Both can exist at the same time and contain different content, but they are different...On the windows file system files aren't case sensitive so Hello.php would be the same as hello.php... So I suggest

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
The problem may be due to the fact that my environment is Apache Unix. I spent about two hours today pouring over the php on-line manual include spec and trying dozens of combinations. http://www.php.net/manual/en/function.include.php There must be at least 20 user contributed notes at the

[PHP] Stoopid Question - PHP.ini path?

2002-08-11 Thread Wee Keat
Hi.. Sorry to ask such a stoopid question here... but I really could not find anything on this... How do I change the path of the php.ini file on Windows XP pro? I'm using IIS... I just installed PHP on my web server and the path of the php.ini is c:\winnt but my is on c:\WINDOWS . So, how

[PHP] Re: Random mirrors and download quota

2002-08-11 Thread B.C. Lance
how about using the counter to store an id of the mirrors instead of randomly picking one? this will provide you a sequential traverse through all mirror sites. if there are 10 sites, the counter will always be from 0 - 9. this way each mirror site will have equal share on hits. so if the

Re: [PHP] Case Sensitivity

2002-08-11 Thread Rasmus Lerdorf
Filesystems are meant to be case-sensitive, and yes, URL's are as well. It's an abomination that Windows and old-style Mac filesystems are not. You need to keep track of that in your code. 'a' and 'A' are just as different as 'a' and 'b'. -Rasmus On Sun, 11 Aug 2002, Rich Hutchins wrote:

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Rasmus Lerdorf
What does include have to do with DirectoryIndex? And what exactly is your problem with include? The only trick is setting the include_path which doesn't seem all that obtuse to me. -Rasmus On Sun, 11 Aug 2002, Al wrote: The problem may be due to the fact that my environment is Apache Unix.

[PHP] Re: passing an array in a link

2002-08-11 Thread Bogdan Stancescu
Ok, I don't know if you already solved this, but you might want to do something like $SerKeylist=rawurlencode(serialize($keylist)); print a href=\/myscript.php?SerKeylist=$SerKeylist\link/a; on the source end and $keylist=unserialize($_GET[SerKeylist]); at the destination. This of course

[PHP] mysql_fetch_array problem

2002-08-11 Thread Jonni
hi everyone! i'm new here (and new to php) and have a question. i'm trying to run a simple blogger type script but am running into a problem i can't seem to troubleshoot. first, the three items i put into the database aren't showing up on my page and then when i try to go to the archive for

[PHP] Re: Case Sensitivity

2002-08-11 Thread Bogdan Stancescu
Subscribing 100% to the reply you got from Rasmus above, I'll just add that typically that's not a problem anyway because the files are generally created programatically (by the code) and once you set it right, you don't have to bother - although yes, it does seem odd when you first bump into

[PHP] POST fields through CURL

2002-08-11 Thread Mike Mannakee
Hi all, I'm setting up a curl operation with post fields, and I'm hoping someone can tell me how the post fields are formatted. I'm looking to pass a string to curl_setopt( $ch, CURLOPT_POSTFIELDS, $string), but the specifications don't tell one HOW to format the string. Is it just like a GET

[PHP] Re: mysql_fetch_array problem

2002-08-11 Thread Bogdan Stancescu
Hi Jonni! You should consider wrapping mysql_fetch_*() functions into a personalized function which also takes care of errors - at least for debugging. Your problem is typical - your query has some problems and mysql_run_query() returns a null result, which is indeed not a valid MySQL result

[PHP] Re: POST fields through CURL

2002-08-11 Thread Bogdan Stancescu
Yes, the strings are formatted exactly like GET strings, but you'll have to build the whole HTTP header in front of them in order to get a valid HTTP request. So then, your code should look something like $myvar1=rawurlencode($myvar1); $myvar2=rawurlencode($myvar2);

Re: [PHP] Hacker?

2002-08-11 Thread Julio Nobrega
What about all the users of his web site that are requesting his php scrpts that are compiling through my server? Contact him and ask to stop. If he doesn't, block. It will be him that will lose customers, not you. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Rps

[PHP] Please someone help me!

2002-08-11 Thread Gandalf
Hello! First of all, i am trying to solve this problem for more then a week now, i looked through php.net for hours and have posted on numerous boards but nobody could come up and tell me what is going wrong. Basically, i have two multidimensional arrays, and i want to compare those two

RE: [PHP] Re: POST fields through CURL

2002-08-11 Thread Jonathan Rosenberg
Are you sure that the HTTP header should be on there? I don't believe that is correct. It is the use of CURLOPT_POSTFIELDS with the curl_setopt function that indicates that a POST is being made. I just checked the code I used for credit card clearing it does NOT include the HTTP headers.

[PHP] including a php file in an html doc

2002-08-11 Thread Alexander Ross
I have a .php file whose purpose, ultimately, is to set one variable; $hotspot. Now I want to include that var in a bunch of places in my html page (it must remain html). So this was my thought. In the head include the following: script language=php src=hotspot.php/script and then anywhere

Re: [PHP] Re: POST fields through CURL

2002-08-11 Thread Bogdan Stancescu
Duh, yes, of course, I'm stupid - I forgot you were talking about Curl - I never used it so it may be the way you say it is. The piece of code I sent you was a part of what I used to build a full HTTP request (connecting to the server and sending it - everything done by hand), and Curl may be

Re: [PHP] Please someone help me!

2002-08-11 Thread Rasmus Lerdorf
First of all, which OS and PHP version? On Mon, 12 Aug 2002, Gandalf wrote: Hello! First of all, i am trying to solve this problem for more then a week now, i looked through php.net for hours and have posted on numerous boards but nobody could come up and tell me what is going wrong.

[PHP] Re: use data-ba_se

2002-08-11 Thread David Robley
In article [EMAIL PROTECTED], list+php- [EMAIL PROTECTED] says... Hi, I just noticed a little problem(?) while using databases. Some time ago I wrote myself a little class that made it easier to handly my mysql-tasks. The class connected to a database and used a query like use $database

Re: [PHP] Please someone help me!

2002-08-11 Thread Rasmus Lerdorf
You really should also do a bit of work to make it easy for people to help you. I just spent 5 minutes decyphering your text file so I could reproduce your problem using this script: ? $array1 = array( array(aus_name=Videografik, aus_id=1), array(aus_name=Webdesign,

Re: [PHP] Win PHP Editor...

2002-08-11 Thread Lord Loh.
www.phpide.de An excellent PHP IDE for windows. Color coding, Syntax hints(tool tips type), auto indent etc... Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php