[PHP] turning on error reporting

2001-05-02 Thread BigVeggie
Could any one tell me how I can turn on error reporting. The server i use has it turned off and when there is an error on one of my scripts the page goes blank, and i have know idea where or what type the error is. Can it be done using a .htaccess file? if it can how? clint -- PHP General M

[PHP] Weird error...

2001-05-02 Thread elias
For some reason, whenever i run my script for the first time in the browser, the static source file get parsed and produces errors My script have JavaScript in it, and also my script calls the "session_start();" Now first time the script is beeing run, i view source and see in my static part

Re: [PHP] hmm sockets (again)

2001-05-02 Thread Joseph Blythe
Mukul Sabharwal wrote: > Hi, > > I might have missed a follow up or your original > message, but have you tried socket_set_blocking() Mukul, Yes, socket_set_blocking does not work with the new socket functions, it is for the network functions, one must use set_nonblock() which to the best o

Re: [PHP] turning on error reporting

2001-05-02 Thread elias
in php.ini, this session ;; ; Error handling and logging ; ;; key name is "error_reporting", set it to E_ALL while developing... -elias http://eassoft.cjb.net "BigVeggie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Hosts.

2001-05-02 Thread elias
I'm not sure if www.f2s.com offer Perl5+ but it does offer MySql and Cgi and PHP i guess. -elias http://eassoft.cjb.net "David Bruce" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My host is Windows 98, Xitami and unstable MySQL and Perl/CGI. > > I'm looking

[PHP] Something like PHP-SHOP-NUKE?

2001-05-02 Thread José León Serna
Hello: Somebody knows if there are something similar to PHP-Nuke but for a virtual shop? Best Regards. - VCLCrawler.com, your VCL search engine http://www.vclcrawler.com W2Kwm, Windows 2000 interface for XWindow http://www.vclcrawle

Re: [PHP] Reporting from Database

2001-05-02 Thread Richard Lynch
You should be able to test the ending time field in PHP and output different display based on that... Show a snippet of source code. PS You've tackled a really hard problem as a beginner -- Calenders *look* simple, are have all sorts of hidden complexities, as you've discovered. -- WARNING [EM

Re: [PHP] mailing list

2001-05-02 Thread Richard Lynch
> start sending email (this process would take many minutes). However before > this script finished, another copy of the same script started, and this new > copy was sending emails to the same users again. The original script > continued. Result: duplicate emails Wild Guess: You are using cron a

Re: [PHP] how to measure databases

2001-05-02 Thread Richard Lynch
You could maybe write a shell script owned by mysql, but executable by world, that looks at the file sizes. -- WARNING [EMAIL PROTECTED] address is not working -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusi

Re: [PHP] Browser Detection

2001-05-02 Thread Richard Lynch
> Is it possible with PHP (3.0.16) to detect which browser a user has and > then load an image based on the browser type? I've found the get_browser() > command in the manual, but it doesn't look like that does what I want, or I > could just be looking at it wrong. > > Has anyone tried this befor

[PHP] session_register()

2001-05-02 Thread Jennifer
I have been racking my brain with this for hours and I am not getting anywhere. session_register doesn't seem to be registering my variables. Several questions to see if I am even on the right track. Do you need to register a variable with the session before you assign it a value? session_re

[PHP] FTP

2001-05-02 Thread E K L
Hi all, I'm facing this serious problem where i can not ftp to my server. Any idea to help to solve the problem? It could be possibly caused by the ownership of the ftp folder. But, i don't know which folder is the right ftp folder for me to change mode. Please help. E K

Re: [PHP] session_register()

2001-05-02 Thread Richard Verstegen
Maybe this example will help you: Program 1: Program 2: Richard "Jennifer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have been racking my brain with this for hours and I am not > getting anywhere. > > session_register doesn't seem to be registe

Re: [PHP] Weird error...

2001-05-02 Thread Richard Verstegen
Check your php.ini [SESSION] url_rewriter.tags = . Richard ""elias"" <[EMAIL PROTECTED]> wrote in message 9coco0$uq8$[EMAIL PROTECTED]">news:9coco0$uq8$[EMAIL PROTECTED]... > For some reason, whenever i run my script for the first time in the browser, > the static source file get parsed

[PHP] RE: session array :-/

2001-05-02 Thread Tim Ward
every time you run mainpage.php, the array is being reinitialised. Lose the line "$myArray=array();". Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message

[PHP] RE: split and array logic

2001-05-02 Thread Tim Ward
depends how reliable the format of the string you're splitting is. If they are all like your examples then ... foreach ($stuff as $key=>$element) { $dummy = explode(" ", $element); $stuff[$key] = array(); $stuff[$key]["user"] = $dummy[0]; $stuff[$key]["browser"] = $d

RE: [PHP] SQL Query time?

2001-05-02 Thread Anuradha Ratnaweera
I wonder if using microtime() gives _actual_ time spent for the query while explain gives _processor_ time. Anuradha On Thu, 26 Apr 2001, Maxim Maletsky wrote: > what about microtime() ? > > you can do it your self: > > $start = microtime(); > mysql_query()... > $stop = microtime(); > > $to

Re: [PHP] date list

2001-05-02 Thread James Holloway
Jon, Try this ... I know the code could be trimmed down, but I wrote it this way for ease of reading. "; echo "$month/$day/$year"; echo "\n"; $startperiod = $startperiod + 86400; } ?> Basically just uses mktime() and getdate() The 86400 is the number of seconds in the day, and the opti

Re: [PHP] SQL Select Unique() ?

2001-05-02 Thread Anuradha Ratnaweera
On Thu, 19 Apr 2001, James, Yz wrote: > Is there a method of extracting rows from a MySQL table Uniquely (as in only > once) ?. For example, when a user performs a search, using two words, > it may return the same row twice if the search is spread over two or more > SQL "selections". An exa

Re: [PHP] LDAP Authentication

2001-05-02 Thread Richard Lynch
>I am trying ot understand how could a PHP script authenticate against a LDAP tree (NDS) that >is not in the same host? > >Anyone has an example about that? No sample code, but I assume you just pass in the IP or hostname of the remote server for http://php.net/manual/en/function.ldap-connect.php

[PHP] Sending information between pages???

2001-05-02 Thread Vanden Eynde Pascal
Hello, I have a page A with a combobox. Next to the combobox I have a link to another page (B). The idea is that I select a value in my combobox, then click the link and the value of the selected value in the combobox should be send to the page B. Is this possible with php and html? I've tried som

Re: [PHP] Problem with Sablot/PHP4

2001-05-02 Thread ReadOnly
On 30 kwietnia 2001 at 18:23:04 Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > I don't use the extension, but XML assumes UTF-8 charcode. If you > have problem with ISO-8859-2, how about convert it to UTF-8 using > iconv module? XML assumes that parameter "encoding=ISO-8859-2" should work correctly,

[PHP] utfdecode() and ISO-8859-2

2001-05-02 Thread ReadOnly
I found that utfdecode() can extract only ISO-8859-1. I need to convert from UTF-8 to ISO-8859-2? Will it be possible soon? -- Yarek -- 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] String Type Unknown

2001-05-02 Thread Rudolf Visagie
Hi Nathan, With compliments: = "0" AND $LeftHexByte <= "9") { $LeftOffset = 48; } else { $LeftOffset = 55; } $RightHexByte = substr($Txt, $i + 1, 1); if ($RightHexByte >= "0" AND $RightHexByte <= "9") { $RightOffset = 48;

Re: [PHP] Compressing an upload

2001-05-02 Thread Geir Eivind Mork
On Thursday 26 April 2001 00:37, Michael Conley wrote: > I am going to have a page that will be used for visitors to upload a file > to my web server. I already use gzcompress to compress some of the pages Just state that all files should be compressed cause you can't do anything with the file

Re: [PHP] Starting PHP script with crontab

2001-05-02 Thread Anuradha Ratnaweera
If you are not careful, anyone will be able to run the script! Anuradha On Thu, 19 Apr 2001, Bertjan Schrader wrote: > I need tot start a PHP script at night with the crontab. I tried to do it > with lynx (lynx http://www.domain.nl/test.php) as a commandline within the > crontab. Lynx is start

Re: [PHP] template solutions?

2001-05-02 Thread Anuradha Ratnaweera
WML is an easier solution (search freshmeat for wml - website meta language). Anuradha On Sun, 29 Apr 2001, Steven Haryanto wrote: > Does anyone know a rather advanced template solution in PHP? > At least one that supports loop and if (like HTML::Template), > and directives/commands would be n

Re: [PHP] String Type Unknown

2001-05-02 Thread Anuradha Ratnaweera
Since it contains only digits 0-9 and letters a-f, it looks like hexadecimal. Why don't you try to read two characters at a time and either convert them to binary or check their ascii values. There seem to be many ascii values however. Where did you get this from? Anuradha On Mon, 30 Apr 2001,

Re: [PHP] Please review our coding standards

2001-05-02 Thread Anuradha Ratnaweera
Most of your guidelines match with our practices. Here are some comments. On Sat, 28 Apr 2001, Steven Haryanto wrote: > 0.1 We are writing PHP4 application here, not PHP3, nor Perl, Python, etc. > So use PHP idioms. Same here. > 0.3 Consistency matters. > > 0.4 Standards is important. >

Re: [PHP] Emanuel virus

2001-05-02 Thread B. van Ouwerkerk
>Once again, if it got passed to any of you, through me, my apologies. I >wouldn't trust my anti-virus software on this, I could find any reference >to it at Symantec. Maybe it has another name? > >Feeling like a leper - Miles Thompson Look for Navidad or W32/Navidad.e I think you should also

[PHP] open foxpro database

2001-05-02 Thread Benny K. Putera
I used function dbase_xxx to access foxpro database (.dbf) but it's not work. Here is my code : \n"; } } } ?> Everytime I call this page there's a message : Warning: unable to open database /home/benny/test/employee.dbf in /home/benny/htdocs/foxpro.php on line 2 I us

RE: [PHP] String Type Unknown

2001-05-02 Thread Rudolf Visagie
Nathan, Another way to do it (but much less fun): Read Hex dump Rudolf Visagie QEDI -Original Message- From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: 01 May 2001 11:16 To: Rudolf Visagie Subject: Re: [PHP] Stri

[PHP] ImageCopyResampled() -> Php 4.0.6

2001-05-02 Thread JFL
If I want to use ImageCopyResampled(), do I then need Php 4.0.6 ? http://www.php.net/manual/en/function.imagecopyresampled.php -- [ www.eksperten.dk ] Scandinavias biggest IT forum. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: [PHP] SQL Query time?

2001-05-02 Thread PHPBeginner.com
EXPLAIN gives you the time (through processor?) of the clauses translated into WHERE (JOIN, GROUP, etc) if you use 1000 billions of functions in your query, the real time of that query will be somewhat slower, but not for EXPLAIN. microtime() is in php, so it gives you the time of when he called

Re: [PHP] Sort an array

2001-05-02 Thread Geir Eivind Mork
On Monday 30 April 2001 21:19, Brandon Orther wrote: > Is there a way to sort an array alphabetically? two examples sort -- Sort an array natsort -- Sort an array using a "natural order" algorithm -- php developer / CoreTrek AS| Somehow I reached excess without ever Sandnes / Rogal

Re: [PHP] session array :-/

2001-05-02 Thread Richard Lynch
> $myArray=array(); Is this line getting executed that second time?... Also, I think it's better to register a variable *before* assigning any value to it... Whether this is just coding style or it actually matters, I dunno. -- WARNING [EMAIL PROTECTED] address is not working -- Use [EMAIL PRO

[PHP] Help needed with multiple select form element and PHP !

2001-05-02 Thread Nicolas Guilhot
Hi, I've got a select tag with multiple selection enabled. When the user submit the form, I want to pass all options from the select to another page. For this I use javascript to select every element in my select tag. My problem, is that in PHP, to access all selected elements in an array, I need

[PHP] Random number generation...

2001-05-02 Thread Tristan . Pretty
Hi there, A potentially dumb question here. Is there an easy way to display a random number between 1 and 20? I have looked on line, but either I am looking inall teh wrong places, or there isn't this script on-line. Can anyone point me in the right direction? Cheers, Tris... ***

[PHP] How to catch the output of http:// -> text file?

2001-05-02 Thread Kraa de Simon
Hi, PHP newbie. Can anyone help me with the following? Pseudo code: for(i=1;i<2000;i++) { catch the output of http://www.mysite.com/kb.html?kbid= and put the html code in a text file called /www/kb/kbid .html } So the end result is 2000 html f

Re: [PHP] zlib.output_compression - how to turn it on

2001-05-02 Thread Robert Mena
Yasuo, thanks for the reply. Yes I do have zlib support (shows me in phpinfo()). Sorry the stupid question but How do I check the size of the page ? If I access it and use save as I will have the uncompressed version right ? Which .ini directive did you use ? - thanks >>If you want to check

RE: [PHP] COM

2001-05-02 Thread Hassan Arteaga
Thanks !!! I will try... -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -Original Message- From: Iriton Jonath P. Andrade [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 8:31 AM To: Hassan Arte

RE: [PHP] COM

2001-05-02 Thread Hassan Arteaga
Hi Iriton !! I tested but with errors.. 9 Hello("Hi Hassan"); 12 ?> This is only VB component Hello return the string entered as var...I receive this error.. Parse error: parse error in C:\Inetpub\wwwroot\myphp\com.php on line 10 Thanks in advanced !!! -- M. Sc. Hassan Arteaga Rodrígu

Re: [PHP] Random number generation...

2001-05-02 Thread elias
why not use the rand() ? manual says: rand -- Generate a random value Description int rand ([int min [, int max]]) If called without the optional min, max arguments rand() returns a pseudo-random value between 0 and RAND_MAX. If you want a random number between 5 and 15 (inclusive), for examp

RE: [PHP] Random number generation...

2001-05-02 Thread Jon Haworth
Wotcha Tris :-) Try this: mt_srand((double)microtime()*100); $my_random_number = mt_rand(1, 20); HTH Jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 02 May 2001 12:07 To: [EMAIL PROTECTED] Subject: [PHP] Random number generation... Hi there, A p

Re: [PHP] Random number generation...

2001-05-02 Thread Avetis Avagyan
Regards, Avetis [EMAIL PROTECTED] wrote: > Hi there, > A potentially dumb question here. > > Is there an easy way to display a random number between 1 and 20? > > I have looked on line, but either I am looking inall teh wrong places, or there > isn't this script on-line. > > Can anyone point m

[PHP] Next SEMPUG meeting - this Thursday

2001-05-02 Thread Michael Kimsal
Hello all. Our next PHP user group meeting will be held this coming Thursday, May 3rd (the first Thursday of the month) at our office in downtown Ypsilanti, MI. (125 North Huron, #400, to be exact). We normally meet around 7ish for drinks/eats beforehand, and get started at 8. Keith Elder will b

[PHP] $hello ?

2001-05-02 Thread elias
hello, i got myfile.txt saying: i say: $hello now i write a script like: $hello = "hello world"; $lines = join("\n", file("myfile.txt")); method 1: === echo("\$text = \"\$lines\";"); var_dump($text); method 2: $temp = $var; $text = $temp; none of the method assigns

Re: [PHP] $hello ?

2001-05-02 Thread elias
sorry, in method 1 i meant: eval() instead of echo() ""elias"" <[EMAIL PROTECTED]> wrote in message 9cp0io$uuf$[EMAIL PROTECTED]">news:9cp0io$uuf$[EMAIL PROTECTED]... > hello, > > i got myfile.txt saying: > i say: $hello > > now i write a script like: > $hello = "hello world"; > $lines = join

[PHP] About last release

2001-05-02 Thread Hassan Arteaga
Hi all !! I have PHP 4.0.4 on Win98, PWS PC and I would like to install 4.0.5 but is only for CGI ? I installed PHP 4.0.4 with an exe file...I didn't nothing..only double-click.. I need that file again but with PHP 4.0.5 version..Thanks !!! If not ..then I'll read install file. Thanks --

RE: [PHP] Random number generation...

2001-05-02 Thread Jon Haworth
The manual also says: mt_rand -- Generate a better random value I've been using mt_rand() over rand() every time - is there any reason not to? Cheers Jon -Original Message- From: elias [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 00:05 To: [EMAIL PROTECTED] Subject: Re: [PHP] Random

Re: [PHP] Help needed with multiple select form element and PHP !

2001-05-02 Thread elias
try this, line1 line2 line3