Re: [PHP] can we know hard disk no via a php script?
Can we know clients' hard disk number with a phpscript. If yes what is the code? what do you mean by clients' hard disk number ? you simply can't because PHP runs on the server-side, maybe you can know it using javascript, but this - if it was available - will not be cross-browser or cross-platform. since it will be a browser-sepcific API. and i would like to know the use of knowing such a thing within a PHP script :-) Thank you. _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] file_exists() question
because you can't directly use the $annrow[id] within single quotes, you should use double quotes to do so. file_exists(cherpdocs/$annrow[id].doc) or file_exists('cherpdocs/'.$annrow[id].'.doc') or file_exists(cherpdocs/.$annrow[id]..doc) Note: i heared it's prefered to always use the . when including variables within strings. Regards, Khalid Al-Kary http://creaturesx.ma.cx/kxparse/ Can anyone tell me why this code does not return true when the file in the directory cherpdocs/ with the file (which I see as being there) does exist? if(file_exists('cherpdocs/$annrow[id].doc')){ echo br /a href=\cherpdocs/$annrow[id].doc\Funding details paper/a; } This is a path relative to the file calling it, should it be otherwise? Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no phun intended!!!
sorry, but if PHP (a great piece of knowledge) worths a wet girl for you, so you don't know how to appreciate knowledge. Both PHP and mod_perl are knowledge, science that's more honourful than a wet girl Regards, Khalid Al-Kary http://creaturesx.ma.cx/kxparse/ http://www.fingers.co.za/arb/mod_perl.jpg If this starts a flame war, I'm going to be rather disappointed at people that's not able to take a joke :P I think it's hilarious though... -- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Php +Xml?
try this parser, it would be useful. http://creaturesx.ma.cx/kxparse/ Regards, Khalid _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php as shell script
maybe, but not sure, you need to replace ? with ?php, just try it! maybe it works Hi, I am trying to run php as shell script. I have this: helloworld.php: ? echo Hello World.; ? I run php helloworld.php then I got this: Hello World. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 I am using Redhat 8, anyone knows what is the problem is? Thanks, David __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysq_connect()
is PHP configured with --with-mysql ? Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that after testing different scripts, php is working, except when I make an MySQL call like mysql_connect() or mysql_pconnect(). The call is as follows: $link = mysql_connect('localhost', 'user1', 'passwd') or exit(); mysql_select_db ('mydb') or exit (); $result = mysql_query ('SELECT COUNT(*) FROM clients') or exit (); if ($row = mysql_fetch_array ($result)) . etc .. The message I get is: Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. Thanks Cesar Rodriguez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] regexps
I need to use regular expressions, but i found that the current Perl-compaitable API unuseful in my case, infact i need to get the positions of every match to the pattern and i found nothing in the Manual that does so, does any one know a way to do this (the only one i found is specific to PHP 4.3.0) Thanx in advance :) Regards, Khalid Al-Kary. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regexps
using any of the string functions on the output would ofcourse cause a performance drawback (do you agree with me?), i had used a combination of string functions to do instead of regexps, which one will be faster as you think ? where can i suggest such a function on the current regexps API ? Thanx, Khalid Al-Kary _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Php's future with Asp .NET?
leave PHP, work with ASP .NET and let Microsoft gain more domination and say bye bye for your freedom, then let develpment go and work as a machine that does like Microsoft wants oh, i forgot, remember to submit ASP .NET bug reports to their site, to get a reply after 5 months :) Open-Source Regards, Khalid Al-Kary _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mysql/php database performance question
the thing that may make difference in performance (as i think) is whether you make it a fixed -CHAR- or a variable -VARCHAR- it's preferable that you make separate char columns, so that PHP will not have to explode every record! Regards, Khalid Al-Kary, Hi, I got a question about using Mysql databases. I load textdata in VARCHAR colums up to size 50. I have about 5 of those columns. The last columns often contain empty cells. (data are wordmeanings, many words have only a 1 or 2meanings) What would be faster/better: - putting everything in a big varchar column (size 5x50) and PHP parsing them by comma after fetching or - keeping those 5 columns with a lot of empty cells in the last columns? Thanks, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mysql/php database performance question
Oh, sorry, i should have remarked that all of the columns should be fixed width (CHAR) for this optimization to take effect, since if even one of the columns is variable width (VARCHAR) the whole row will be variable width, and it will be no use to change to CHAR. Regards, Khalid seems to be a little bit more complicated: CREATE TABLE `aa` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `aaa` CHAR( 50 ) NOT NULL , `bbb` CHAR( 50 ) NOT NULL ); both aaa and bbb are char now CREATE TABLE `aaa` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `aaa` CHAR( 50 ) NOT NULL , `bbb` VARCHAR( 255 ) NOT NULL ); aaa will be varchar anyway CREATE TABLE `aaa` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `aaa` CHAR( 50 ) NOT NULL , ); aaa is char ALTER TABLE `aaa` ADD `bbb` VARCHAR( 250 ) NOT NULL ; aaa in now VARCHAR Seems like one cannot mix char and varchar columns in one table Matt Schroebel wrote: -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:45 AM To: Matt Schroebel Cc: Simon Dedeyne; [EMAIL PROTECTED] Subject: Re: [PHP] Mysql/php database performance question Sure, just tried it (32-bit platform, might be 7 for 64-bits). I have a feeling it is somewhere in the manual. How'd you try it? I created a 1 column 42 char record in phpMyAdmin. Everytime I add a row, regardless of size the dataspace increases by 42. With a second table, with 1 column varchar(42), each 4-5 char insert resulted in 20 bytes of space (must be some minimum overhead), and a full 42 resulted in 44 bytes of dataspace used. I'm curious here, as it seems the trade off is speed of access with char [and the overhead of removing trailing spaces on each retrieval] vs storage size in varchar [and it's improved strip right spaces on storage only happening once]. That's what the man page I pointed to last time said. There are some examples of truncating data to 4 bytes on that page but no mention of storing char as varchar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and asp
Maybe you mean that PHP can use COM on windows platforms and load .NET modules http://www.php.net/manual/en/ref.com.php (com) http://www.php.net/manual/en/ref.dotnet.php (.NET) Regards, Khalid Hello all I seem to recall php being able to provide some suport for asp. How would I turn this feature on? is it a line in the php.ini or is it a compile time option? -- Jerry M. Howell II -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Editors
PHPEdit i use it personally www.phpedit.net I'm running Apache 2.0 as a service and PHP (like a module) onto a Windows Advanced Server. I´m looking for a good and free Editor to use with PHP (With debugging features). Can anyone with experience guide me? Thanks. Janine. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regular expression help
why don't you just use str_replace ? I'm a bit useless at regular expressions so i thought i ask. i need to turn all [link url=http://www.site.com] link to site [/link] in a string into html a href= ...etc and back again. thanks adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Code contents of a function
although i never needed to do such a thing, but you can open the PHP file with the file system functions fopen,fread,fgets ... and work with it using string functions strpos(),substr() ... File system functions: http://www.php.net/manual/en/ref.filesystem.php String functions: http://www.php.net/manual/en/ref.strings.php good luck! Regrads, Khalid Al-Kary What??? I want to read the code from the function into a string! Peter Houchin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... so put it in a if or switch statement eg if ($var){ myfunction(); } else { sumotherfunction(); } etc -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: Friday, 3 January 2003 12:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Code contents of a function I have a script with some functions and within the script I want to read the code from one of the functions into a string. Example: function myfunction() { echo something; echo something else; someotherfunction(); } I want to read: echo something; echo something else; someotherfunction(); into a string. Any ideas??? TIA -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie q: how to count words in a file
Use file system functions to get the contents of the file in a string, then us substr_count() on that string. Filesystem: http://www.php.net/manual/en/ref.filesystem.php substr_count: http://www.php.net/manual/en/function.substr-count.php Regrads Khalid Al-kary Hi ! I'm new to php and I have not found a solution for my problem (dumb me) ok.. here we go... I have a file.. it's content is: hello, ello, llo and so on and so on ok.. and now I want to know how many hello words are in that file.. how can I arrange it ?:) Thanks Tauntz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-Performance
Performance related issues depend on too many factors infact, however, PHP is known to be fast in itself (as an apache module), oracle is also known to be fast just like MySQL, but still it depends on what your app will do with the database, and how would you manage both your database and application in order to get good performance, one of the most important sides, is your hardware, single server, multiple servers, dual processors or more? , and so on ... your connection? However PHP, Oracle, Apache, Linux (prefered) is a good group. Regrads, Khalid Al-kary Do you know any resource about php performance? I wonder that can I use php+apache+oracle for a web site serving to many clients ( such as 10.000 ) at the same time? Fatih Üstündað Yöre Elektronik Yayýmcýlýk A.Þ. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing a string
check explode() ;) http://www.php.net/manual/en/function.explode.php Regrads, Khalid Al-kary Hi- I'd like to parse the string returned by popen(uptime, r);. The string that is returned is: 9:47am up 37 days, 16:24, 1 user, load average: 0.09, 0.02, 0.00 What I'd like is 5 strings...the first contains 37 days, 16:24, the second 1 user, the third 0.09, the fourth 0.02, and the fifth 0.00. Any easy way to do this? Thanks very much in advance! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP intereferes with my Javascript
two problemes here, off-topic, and i didn't see the code to figure out the error but maybe you forgot to remove the htmlhead... parts from each include except the header? regards, Khalid Al-Kary I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? ANY help is much appreciated. -- Adam Wilson __ Webmaster 123Doc Ltd www.123doc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSLT Transformation
Hi, Do you mean that the XSL style sheet is printed instead of the transformation result? if that's the case, i have faced the same problem, and at that time it was because of the xsl: namespace check it to verify it's correct, there's a deprecated on of it that you may be using and sablotron doesn't use it anymore! the correct namespace is: http://www.w3.org/1999/XSL/Transform good luck! Regards, Khalid Al-Kary http://creaturesx.ma.cx/kxparse/ Hello php-general, I have a problem with XSLT Transformation. I have in one page HTML that is in my php page and one $result - where i transform one XSLT file. When php show HTML - no problems but when i print $result after HTML iyt can be read. In XSLT and XML i use UTF-8 ecnoding after transformation i tray to use utf8_decode and encode functions but all in $result can be read! Please Help me ! Best regards, Boris mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 limited-time offer: Join now and get 3 months FREE*. http://join.msn.com/?page=dept/dialupxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_newmsn8ishere_3mf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] xml_parse and xml entities
hi Russ, why don't you just str_replace the , and with their entities and when they get extracted the parser will normally replace them with their original form, won't it? Regards, Khalid Al-Kary Hi all, I'm writing a guestbook and message in the guestbook might containso to make sure this wasn't a problem I was advised to great entities in my xml file like so !DOCTYPE guestbook [ !ELEMENT message (name, email, date, text) !ATTLIST message id CDATA #REQUIRED !ELEMENT name (#PCDATA) !ELEMENT email (#PCDATA) !ELEMENT date (#PCDATA) !ELEMENT text (#PCDATA) !ENTITY lt #60; !ENTITY gt #62; !ENTITY amp#38; ] and when I write to my xml file if I convert allcharacters to amp; lt; gt; problem solved. I'm having trouble though. My guestbook works fine until you enter a character. This will get written to the xml file, writes fine, I can view the file in a text editor and it looks good. Parse the file back in and say the field contained... Hello Russ Jim the parser would only hold... Jim when it writes to the array I parse into. Another example... Hello Jim Russ becomes... so basically if a field holds an entity the last element of the field (be it text after an entity or an entity itself) is the only part parsed. Makes no sense to me :( I would upload my source and xml file for you to check but they are big and ugly and you won't want to. Thanks very much Russ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: xml_parse and xml entities
Hi, If you are going to use this output in HTML pages, it won't matter at all, because HTMl only cares about br(s), so the additional line-feeds and even additional spaces(except the first space) won't be taken care of by the browser ;) or you have something additional to say ? Regards, Khalid Al-Kary, Another problem I have is I did $message = str_replace(\n,br, $message); and instead of getting textHelo lt;lt;brgt;lt;brgt;Heylt;brgt;Hey/text I have textHelo lt; lt;brgt; lt;brgt;Hey lt;brgt;Hey/text Any ideas please? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help on OOP
hi, a function can be defined from inside another function! this works here: ?php function howru() { function hi() { echo hi,; } hi();echo how r u; } howru(); hi(); ? this gives the same result: ?php function hi() { echo hi,; } function howru() { hi();echo how r u; } howru(); hi(); ? It seems that even calling the function again from any place works! Regards, Khalid al-kary _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help on OOP
hi again, about functions wholly, here is the php manual functions section http://www.php.net/manual/en/functions.php about classes and objects: http://www.php.net/manual/en/language.oop.php Note: an object is an instance of a class! Regards, Khalid Al-kary _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help on OOP
hi, right, this is exactly what i mean Khalid _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] First PHP
hi, how about the manual? http://www.php.net/manual/en/history.php#history.php :) Regards, khalid _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 2D Array
hi, which is faster; filling two array elements with two values, or making a two dimensional array to handle the two values in one element ... which is better for Memory usage as well ? (considering that both of them serve well in my situation) thanx in advance Regards, Khalid Al-Kary _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing XML files, logic involved...
hi, If you are sure that all your files come with attributes double quoted (not single quoted) you may want to use this parser class: http://creaturesx.ma.cx/kxparse/ hint: use the function has_attribute() to verify whether an attribute is available Regards, khalid _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php teleprogramming -- How to avoid being ripped off ?
hi, don't be so unhappy withit, because you won however, money comes and goes knowledge stays, through this experience you learned much, right? so you didn't lost much! :-) _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to obtain unique XML Elements
hi, you can get this parser http://creaturesx.ma.cx/kxparse/ if you want only this limited functionality (take an old version) 0.2 for example, you may also want to take only particular functions from it this is valid in all cases (as i think), except that you are developing another parser :) khalid _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Display character 'x' times
hi, $numtimes=400; for ($i=1;$i=400;$i++) { echo 'd'; } ---Or--- $numtimes=400; for ($i=1;$i=400;$i++) echo 'd'; -Or $numtimes=400; for ($i=1;$i=400;$i++) {?d?} _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP search engines
hi, It depends on the data storage system you use, and the more you get deeper with it the more you get it more customized for your own site, i mean that when you do it with the natural PHP APIs it's better rather than obtaining a ready-made search system, however if you want to use a ready-made one check ht://Dig(http://www.htdig.org/), it's the one used by PHP.net in the site search (whole site search) ... good search :) khalid _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] STRICTLY CONFIDENCIAL
oh i caught you, i'll go before you :-) _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strings and php.ini
hi, infact i'm un able to obtain a copy of my hosting company's php.ini thanx _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strings and php.ini
hi, the script infact never used register_globals because it's a class that has nothing to do with the direct script input, but there's an idea that came to my mind, maybe the company compiled its own PHP? may this change anything? generally is Linux different from windows in String functions? encoding for example? thanx edwin, and sorry for writing so unpercise questions khalid _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strings and php.ini
hi, i was asking if there should be difference in functionality of PH string functions (not mb_) between the two following configurations: the company: PHP 4.2.1, Apache 1.3.20, linux me: PHP 4.2.3, Apache 1.3.24, windows my confthe company's conf thread safety Enabled Disabled allow_call_time_pass_reference off On implicit_flush on off log_errors off on magic_qoutes_gpc off on register_globals off on thanx khalid _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] something like array_walk?
hi, just remove the from the first argument of array_walk, the function then operates on a copy of the array. this is written in the PHP manual, check there khalid _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strings and php.ini
hi, are there any php.ini directives that control the PHP string functions? sorry i'm not percise but infact i have a 1200 lines script that acts well on a windows machine with PHP 4.2.3 Apache 1.3.24, but on a linux machine with PHP 4.2.1 (keep it secret :)) and Apache 1.3.20 it acts bad but the script wholly depends on string functions nothing more! thanx in advance khalid _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Including without a file
hi, if no one suggested a better way, i suggest that you write your data to a file stream and then include it, but this will be time consuming (as i think) so you should check a better way khalid _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Including without a file
hi, you may use chown, chgrp, chmod _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML into PHP
hi, do you want to show the whole XML content (including tags and other things) or you want to extract data (tag text and attribute vaules) from it? khalid _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML into PHP
hi, try this parser http://creaturesx.ma.cx/kxparse/ (not stable) _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How good is PHP to ASP?
oh man you missed a great opportunity, through the last few days some one posted a message saying convince the boss containing a list of well-known websites running PHP, go check the list archive it will be available there _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submit hitting enter problem
well, you are right they may work, but according to the sepcification qoutes should be added, you should follow it, because you don't know the hidden browsers out there which you didn't test, and IE, Opera, NS can't guarantee that they will support this behaviour in future releases _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] confusion in session vars
hi, did any one face a prob when session vars get mixed from a website to another when you use the same browser window ? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen() using non-standard port
hi, i suggest that you use CURL, check the PHP manual if CURL did't help you can use the lower-level PHP sockets extension also check the PHP manual khalid _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] big include
hi, I wanted to ask about if big include files affect the speed of the script ? Normally, it should, but i heared that PHP stores the parsed result of scripts in memory since the first run for next usage, is that true? and if not, does parsing 21 KB very time, really affects the speed? thanx khalid _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] big include
hi, thanx ernest, infact every line in the code has a comment (maybe a long comment) directly above it :) and you are right i may be also able to remove some functions when they are not needed thanx khalid _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] re: W3C and PHP
hi, just use amp; instead a href=mypage.php?name=khalidamp;age=d/a _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Convince teh boss
hi, thanx for that list it's really convincing for these Microsofts :) just something i wanted to ask about, is it a good thing or better for security to hide the script name from the address bar, through that list i found all the PHP pages hidden with HTML names, i don't know the technique exactly, but is it useful? Note: I have found simens website using JSP ;) don't worry i won't tell any one :) khalid _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php help for project!!
hi, check the PHP Manual about MySQL functions: http://www.php.net/manual/en/ref.mysql.php you can also check for HTML forms (including checkboxes) here: http://www.w3schools.com/html/html_forms.asp and tables (for the reports): http://www.w3schools.com/html/html_tables.asp if you face a particular problem, send here again khalid _ Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array()
hi, this one worked well, but to print the array you must use print_r() instead of echo print_r($test); khalid _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array()
sorry ... big said the right, but you must use print_r() if you want to print the array _ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] arrays
hi, the function array is for making a new array. Observe this code and you will get the point (assuming that you won't to loop for five times) $myarr= array() for ($i=0;$i=5;$i++) { $myarr[$i]=$i; } //you can then get the values of the array echo $myarr[0]; echo $myarr[1]; //and like that note that this loop simply assigns a number to every array index, this is not so useful, but you would probably do something with $i to store a particular value. khalid _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Kxparse 0.2
hi, i want to just tell you about the new release of Kxparse (a XML parser) you can find everything about the new release here http://creaturesx.ma.cx/kxparse/ khalid _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Threads
hi, i would like to ask about PHP threads support, is there any threads support, how powerful, please redirect me to the right place thanx khalid _ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fgets()
hi, i want to open a remote file using fopen() i tried both of these ways $filename=http://www.domain.com/filename.txt;; $file=fopen($filename,r); $filecontents=fread($file,filesize($filename)); this one didn't work because it's apparent that the file isn't in the local file system so filesize($filename) won't work ... the second way was this: $filename=http://www.domain.com/filename.txt;; $file=fopen($filename,r); $filecontents=; while (!feof($file)) { $filecontents.=fgets($file); } this one worked well with PHP4.2.3 but with versions under PHP 4.2.0 it didn't work So what else can i try to just get the whole contents of the file into a string? thanx khalid _ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a new XML Parser!
hi, just now i have finished a website showing a XML parser which i wrote, do you want to have a look? come in, it's free! :)) http://creaturesx.ma.cx/kxparse/ yours, khalid _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] test
hey it's a PHP mailing list, people here are developers, you must send something with action inside it like this Testing 5 Testing 5 Testing and awaiting for server response even if youa ren't awaiting Loading ... :)) _ Get faster connections -- switch to MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to user select multiple=true
hi, If i have a form that has a select with multiple=ture how would i be able to retireve it's multiple values in the PHP script, i tried the $_REQUEST['fieldname'] it gave me only the last selected value note: multiple selection is done by holding ctrl :) khalid _ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to send POST info without a form?
hi, you can make a hidden form l like this form style=visibilty:hidden;position:absolute;top:0px;left:0px; action=yourpage.php method=post id=myform .. form fields /form //in javascript you can use this myform.submit() and your form will be submited khalid _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML Parser
hi, i have developped an XML parser that's easy to use and very fast, and i have run two websites using it. http://creaturesx.ma.cx http://creaturesx.ma.cx/osman/jokes/index.php (not complete website) the question comes now what's best way to contribute this parser to the PHP community without losing my ownership rights? _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML Parser additional
hi, i wanted to add something, i want to receive contribtions from developers as well to make the parser be better _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Configure php for windows
Hi, why do you want to run it from a cd, PHP doesn't pass the 6 MB limit! i suggest for reliability reasons that you run PHP from your disk, i don't think Apache would do okay if it didn't fine the PHP path (in case that you eject the cd) do you have special reasons? khalid _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] parse html code
hi, you have two things to do here, first obtain the file, second get urls inside it ... about the first you can get the file so easily using the functions fopen, fread and fclose int fopen ( string filename, string mode [, int use_include_path [, resource zcontext]] ) //for example (this will open for writing only) $file=fopen(http://www.anydomain.com/index.html,w;); //follow the other php file system functions to read the file and obtain a string from it. http://it3.php.net/manual/en/ref.filesystem.php about getting URLs from the file this could be done through string functions (by applying them on the returned string) refer to functions strpos, substr, substr_count, strlen in the php manual http://it3.php.net/manual/en/ref.strings.php hopefully this will help yours, khalid _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] slashes added before '
this code snippet: function save($file) { $my_file=fopen($file,wb); $my_status=fwrite($my_file,$text); fclose($my_file); } is intended to overwrite a file or create a file and write to it from a string that's already containing text. the problem is the after the script writes the file i find \ before all single and double qoutes in the whole file this problem occured on red hat linux but in windows it didn't happen. can any one help? khalid _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Configure php for windows
hi, please tell me about your Apache version, PHP version, the changes you made to the httpd.conf and error messages of returned thanx _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php