[PHP] Hebrew websites transition with php3 ..
Hey! I've just joined this mailing-list, therefore, first of all, I would like to say hello to everybody. Now, regarding the issue.. As some of you might know, handling with Hebrew websites is rather difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' instead of 'html'). I'm working on a php3 script which would help me do the following - Load an existing HTML file which consists Hebrew words (as well as English words and HTML tags), then reversing the Hebrew words back to order. The problem I'm dealing with is how to reverse only the Hebrew words and not the entire document, which contains HTML tags and English words as well. The function 'hebrev()' does the process of reversing, but it reverses tags as well. I would really appreciate it, if anyone will find some spare time to help me. Thank you in advance - Aviv Revach XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Hebrew websites transition with php3 ..
Hey! Thank you for the quick reply. I do have some questions regarding your answer. From what I know and have seen so far, there are more than just 3% Internet users in Israel which use Netscape 4.x (I use it myself...). Are you sure that I should just ignore these people, and just use logical Hebrew? Also, quite a lot of people started using Opera lately.. (ain't speaking about Israeli users). Does Opera supports Logical Hebrew? If so, from which version? Best Regards - Aviv Revach At 15:20 28/02/01 +0200, Boaz Yahav wrote: >Hi Aviv > >Let me give you a small tip about Hebrew on the net. > >The proper Hebrew code which was adopted by the Israeli Institute of >Standards >is the Logical standard. This standard is automatically supported by IE 4.x >and 5.x >and also by Netscape 6.x. > >The percentage of not IE4.x or 5.x users in Israel is less than 3%. > >3 of the major portals in Israel (Walla, Nana and MSN) are already moving to > >logical Hebrew. > >So why use Visual Hebrew? > >In case you decide to go with Visual in any case, did you try hebrevc()? > >Sincerely > > berber > >Visit http://www.weberdev.com Today!!! >To see where PHP might take you tomorrow. > > >-Original Message- >From: Aviv Revach [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 27, 2001 1:43 PM >To: [EMAIL PROTECTED] >Subject: [PHP] Hebrew websites transition with php3 .. > > >Hey! > >I've just joined this mailing-list, therefore, first of all, I would like >to say hello to everybody. > > >Now, regarding the issue.. > >As some of you might know, handling with Hebrew websites is rather >difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' >instead of 'html'). > >I'm working on a php3 script which would help me do the following - >Load an existing HTML file which consists Hebrew words (as well as English >words and HTML tags), then reversing the Hebrew words back to order. > >The problem I'm dealing with is how to reverse only the Hebrew words and >not the entire >document, which contains HTML tags and English words as well. >The function 'hebrev()' does the process of reversing, but it reverses tags >as well. > > >I would really appreciate it, if anyone will find some spare time to help >me. > > >Thank you in advance - > >Aviv Revach > >XOR-Coders Mega Programming Resource Site! - > http://members.xoom.com/xorcoders/ > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Hebrew websites transition with php3 ..
Hey! So what do YOU offer me to do? Should I use visual Hebrew (write a php3 script which will reverse Hebrew words), or should I stick only to Logical Hebrew? Thank you in advance - Aviv Revach At 17:50 28/02/01 -0300, Manuel Lemos wrote: >Hello Boaz, > >How are you doing these days? :-) > >On 28-Feb-01 16:39:35, you wrote: > > >The figures I'm giving you are from one of the two biggest portals in > >Israel. > >it's less than 3%. > >Mind me for jumping in, but I think Aviv question about the truth of the 3% >figure ie very pertinent. > >The way I see it it is a gross mistake to assume that the audience of a >large portal is necessary a reflex of the potential audience of that portal. > >I also work for a large portal company (not for the Hebrew audience though) >and I found people making the same large mistake. They looked at the sites >audience and figure that there is over 90% of Internet Explorer users in a >site that used IE specific DHTML. Needless to say that it didn't show >right in Netscape. > >Given that sites do not show right in certain browsers, it looks obvious >that almost nobody using those browsers would show in the browser audience >rates. > >I even wonder why there are still 3% of users of browsers that do not >support logical Hebrew display that go to your portal. Same for the 10% of >Netscape users that go to that other site in my company portal. Maybe >those are just lurkers that went there and gave up on the site and did not >return because they could not see right what was in there. > >The reality is that it turns out that there is still about 30% os Netscape >users, meaning that if you force a certain type of display that they don't >see right, you loose their audience. > >Just my .02 EUR. :-) > >Manuel Lemos > > > > >I'm not sure about Opera, if you are developing for an Israeli > >audience, you can simply develop for IE 4.x and up. > > >anyone with any other browser can go and get IE :) > > >-Original Message- > >From: Aviv Revach [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, February 27, 2001 4:03 PM > >To: Boaz Yahav; [EMAIL PROTECTED] > >Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > >Hey! > > >Thank you for the quick reply. > > >I do have some questions regarding your answer. > > > From what I know and have seen so far, there are more than just 3% > >Internet users in Israel which use Netscape 4.x (I use it myself...). > >Are you sure that I should just ignore these people, and just use logical > >Hebrew? > > >Also, quite a lot of people started using Opera lately.. (ain't speaking > >about Israeli users). > >Does Opera supports Logical Hebrew? If so, from which version? > > > >Best Regards - > > > Aviv Revach > > > >At 15:20 28/02/01 +0200, Boaz Yahav wrote: > >>Hi Aviv > >> > >>Let me give you a small tip about Hebrew on the net. > >> > >>The proper Hebrew code which was adopted by the Israeli Institute of > >>Standards > >>is the Logical standard. This standard is automatically supported by IE 4.x > >>and 5.x > >>and also by Netscape 6.x. > >> > >>The percentage of not IE4.x or 5.x users in Israel is less than 3%. > >> > >>3 of the major portals in Israel (Walla, Nana and MSN) are already moving > >to > >> > >>logical Hebrew. > >> > >>So why use Visual Hebrew? > >> > >>In case you decide to go with Visual in any case, did you try hebrevc()? > >> > >>Sincerely > >> > >> berber > >> > >>Visit http://www.weberdev.com Today!!! > >>To see where PHP might take you tomorrow. > >> > >> > >>-Original Message- > >>From: Aviv Revach [mailto:[EMAIL PROTECTED]] > >>Sent: Tuesday, February 27, 2001 1:43 PM > >>To: [EMAIL PROTECTED] > >>Subject: [PHP] Hebrew websites transition with php3 .. > >> > >> > >>Hey! > >> > >>I've just joined this mailing-list, therefore, first of all, I would like > >>to say hello to everybody. > >> > >> > >>Now, regarding the issue.. > >> > >>As some of you might know, handling with Hebrew websites is rather > >>difficult. Hebrew words often come-out in reversed order (i.e. 'lmth' > >>instead of 'html'). > >> > >>I'm working on a php3 script which would help me do the following - > >>Load an existing HTML file wh
Re: [PHP] Hebrew websites transition with php3 ..
Hey! Ok, I think that I will stick to logical Hebrew as most of you suggested. But still, I'm interested in knowing how could I take a HTML document which contains HTML tags, Hebrew words and English words, and reveres only the Hebrew words (making them Visual Hebrew) using only php3 functions (the server I'm using doesn't support php4). It would be great if anyone could point of a solution for doing that. By writing a script that will do that, I will both options - show the Hebrew in my website as Logical or use a script to translate it into visual Hebrew for browsers who do not support it. Thank you in advance - Aviv Revach At 16:45 01/03/01 +0200, Meir kriheli wrote: >On Thursday 01 March 2001 09:17, Boaz Yahav wrote: > >I think that Aviv should stick to logical hebrew (which is the standart, as >mentioned by Boaz). > >I don't use IE (I'm using Linux) and I can access all the logical sites with >no problem, including the "" tag and the 'direction: rtl' >style (thank >god for konqueror). > >Netsacpe 6/Mozilla should support logical Hebrew pretty soon so no trouble >there, and if Opera wants to gain market share they shold support the >standart (logical) in here to. > >Altough the 3% estimate seems wrong (as noted by Manuel Lemos - Hi :-) , the >majority of users in Israel are using IE. > >One more problem you'll have with visaul hebrew is the ugly line breaks which >cause the end of the sentence to appear before the start of it. > >I had a long discussion of this subject with Manuel off this mailing list. I >can send you a digest of it if you wish. > >-- >Meir Kriheli > > There's someone in my head, but it's not me - Pink Floyd > > > Hi Manuel, > > > > All is great, working hard to make WeberDev.com a better place > > for the community and trying to make people understand we don't > > make $$$ from it :) > > > > The IE / NN war was one that left no chance for NN in Israel. > > While MS spent millions in making all of their products in Hebrew, > > including the free IE, NN refused to support Hebrew. > > > > While the 3% is correct for Israel, it's far from being true on an > > international basis. > > > > There are 3 large portals in Israel, 1 supports only IE (MSN), > > and the other two that supported NN, until not long ago, started > > to develop for IE only about 4-6 months ago. > > > > This is why there is no reason to support anything other than > > IE in Israel. > > > > With all due respect to people that like other browsers, developing > > for all browsers costs lots of $$$ and as long as portals are free > > and loosing lots of $$$ it's not profitable to develop for all. > > > > Bottom line, as the CTO of one of those portals I say go > > with Logical Hebrew and dump Netscape (In Israel Only). > > > > and don't forget to add the tag at the > > beginning of each page. > > > > Sincerely > > > > berber > > > > Visit http://www.weberdev.com Today!!! > > To see where PHP might take you tomorrow. > > > > > > -Original Message- > > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 28, 2001 10:51 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP] Hebrew websites transition with php3 .. > > > > > > Hello Boaz, > > > > How are you doing these days? :-) > > > > On 28-Feb-01 16:39:35, you wrote: > > >The figures I'm giving you are from one of the two biggest portals in > > >Israel. > > >it's less than 3%. > > > > Mind me for jumping in, but I think Aviv question about the truth of the 3% > > figure ie very pertinent. > > > > The way I see it it is a gross mistake to assume that the audience of a > > large portal is necessary a reflex of the potential audience of that > > portal. > > > > I also work for a large portal company (not for the Hebrew audience though) > > and I found people making the same large mistake. They looked at the sites > > audience and figure that there is over 90% of Internet Explorer users in a > > site that used IE specific DHTML. Needless to say that it didn't show > > right in Netscape. > > > > Given that sites do not show right in certain browsers, it looks obvious > > that almost nobody using those browsers would show in the browser audience > > rates. > > > > I even wonder why there are still 3% of users of browsers that do not > > support logical Hebrew display that go to your portal. Same for the 10
Re: [PHP] Hebrew websites transition with php3 ..
Hey! I'm sending this e-mail only to you, since it's way off-topic from being in the php-general mailing list. I have downloaded Netscape 6, it seems that Logical Hebrew isn't support yet - only Visual. So if Netscape 4.x (except for the 4.61 version developed by IBM), Netscape 6, and Opera does not support Logical Hebrew why should I use it?? What do other Hebrew web sites do regarding this matter? Do they make two versions of the same web site, one for Netscape and one for IE? For conclusion - I'm working on a Hebrew website. I want this website to look ok in both browsers (IE and Netscape), and I want this to be done the easiest way possible. What should I do? Use Logical Hebrew and ignore the fact that Netscape does not support it? or maybe I should use Visual Hebrew (reverse all the Hebrew words using some utility such as - "EasyHEB"), or maybe I should use Logical Hebrew in the HTML itself and turn it to Visual using a PHP script? (doing that would be rather complicated.. hebrev() and hebrevc() aren't enough..) Thank you in advance - Aviv Revach At 17:20 01/03/01 +0200, Meir kriheli wrote: >As Boaz suggested look into hebrev and hebrevc functions. They are the only >ones I can think about right now. > >check > http://php.net/hebrev > http://php.net/hebrevc > >the manual states that this functions are defined in PHP3 and PHP4. > >HTH >-- >Meir Kriheli > > There's someone in my head, but it's not me - Pink Floyd > > >On Wednesday 28 February 2001 17:00, Aviv Revach wrote: > > Hey! > > > > Ok, I think that I will stick to logical Hebrew as most of you suggested. > > > > But still, I'm interested in knowing how could I take a HTML document which > > contains > > HTML tags, Hebrew words and English words, and reveres only the Hebrew > > words (making > > them Visual Hebrew) using only php3 functions (the server I'm using doesn't > > support php4). > > > > It would be great if anyone could point of a solution for doing that. > > By writing a script that will do that, I will both options - show the > > Hebrew in my website as Logical or use a script to translate it into visual > > Hebrew for browsers who do not support it. > > > > Thank you in advance - > > > >Aviv Revach > > > > At 16:45 01/03/01 +0200, Meir kriheli wrote: > > >On Thursday 01 March 2001 09:17, Boaz Yahav wrote: > > > > > >I think that Aviv should stick to logical hebrew (which is the standart, > > > as mentioned by Boaz). > > > > > >I don't use IE (I'm using Linux) and I can access all the logical sites > > > with no problem, including the "" tag and the 'direction: > > > rtl' style (thank > > >god for konqueror). > > > > > >Netsacpe 6/Mozilla should support logical Hebrew pretty soon so no trouble > > >there, and if Opera wants to gain market share they shold support the > > >standart (logical) in here to. > > > > > >Altough the 3% estimate seems wrong (as noted by Manuel Lemos - Hi :-) , > > > the majority of users in Israel are using IE. > > > > > >One more problem you'll have with visaul hebrew is the ugly line breaks > > > which cause the end of the sentence to appear before the start of it. > > > > > >I had a long discussion of this subject with Manuel off this mailing list. > > > I can send you a digest of it if you wish. > > > > > >-- > > >Meir Kriheli > > > > > > There's someone in my head, but it's not me - Pink Floyd > > > > > > > Hi Manuel, > > > > > > > > All is great, working hard to make WeberDev.com a better place > > > > for the community and trying to make people understand we don't > > > > make $$$ from it :) > > > > > > > > The IE / NN war was one that left no chance for NN in Israel. > > > > While MS spent millions in making all of their products in Hebrew, > > > > including the free IE, NN refused to support Hebrew. > > > > > > > > While the 3% is correct for Israel, it's far from being true on an > > > > international basis. > > > > > > > > There are 3 large portals in Israel, 1 supports only IE (MSN), > > > > and the other two that supported NN, until not long ago, started > > > > to develop for IE only about 4-6 months ago. > > > > > > > > This is why there is no reason to support anything other than > > > >
[PHP] Running php code inside of a string within a php script..
Hello! I'm facing a problem. Inside of a php3 script - I have a string that contains html code as well as php3 code. At start, when I tried ECHOing the string to screen, the php commands weren't activated and viewing the source of the generated page allowed me to see that they were just left as they are, without any compilation. How can I make those php3 commands to work as they supposed to? Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running php code inside of a string within a php script..
Hey! At 14:29 02/03/01 -0300, Lucas Persona wrote: >Hy there! > >Aviv Revach wrote: > > How can I make those php3 commands to work as they supposed to? > > Take a look at the eval() function >http://www.php.net/manual/en/function.eval.php > It does exactly what you are looking for... Actually it doesn't. My string does not(!!) contains only php code. It contains HTML tags, text, and php code (called with ). Now, What should I do in order to run both the html tags and the php commands in it? Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hebrew websites transition with php3 ..
Hey! About Netscape's Hebrew support.. soon... but not yet.. >And one more thing, the different browsers on PalmPilots (AvantGo , webClient >etc.) rely on palm's Hebrew support which is only logical, no visual support >in palm). Oh, good to know. >If I'm not out of line here, can you tell me what this site is about, and >what kind of audienece accessing it you excpect ? If it is for the common >people, most of them will use IE, I guess they don't even know how to install >netscape for themself, and most of them even don't know how to change their >homepage :-( Well, I'm building this site for a shop. It's audience will probably be adults between ages of 25 to 55. They won't be Internet wizards, but this shop is rather expensive so they will probably be more than just common people. >There's no easy solution for this and many Hebrew site developers are having >hard time trying to figure out what to do. >Maybe you should run a poll on your site (should be written in visual >encoding - of course) asking the visitors for their opinions. h. I'm getting tired from this Hebrew issue.. This is probably the reason to change my profession.. ;( Still no quick answers.. you chose to ignore Visual-Only browsers. You told me that many Hebrew website developers didn't. What should I do?? Thank you in advance - Aviv Revach XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Good Free PHP Editor?
Hey! PHPEd is free: * Runs under Windows. * Has syntax highlighting. Supports: Html, Perl, Php, SQL, and regular text files. * Can edit multiple files * I'm quite sure it reports line numbers. * It has a very good search & replace functionality. This is obviously what you need!! You can get it from: http://soysal.com/PHPEd/ Best Regards - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting location bar and stripping file-ending of a string..
Hey! I have a few questions: 1. How could I get the browser's location bar value (the full path of the file we are dealing with)? I have index.php3 which include's an external php3 script("ext.php3"), and I need the 'ext.php3' script to get the full path of the main file it was called from - 'index.php3'. 2. Let's say I have a string such as: "http://www.blabla.com/dir1/dir2/file.php3", How can I can strip the file-ending(".php3") out the string? Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Seeking for files ending with '.txt' ..
Hey! I have a directory that contains many files. Some of these files have a '.txt' ending. I would like to know how could I locate each one of the '.txt' files. For each file I find, I need to do a certain action, and should continue the search. Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting name of the main file from external included script..
Hey! I already asked this once before, but nobody seems to answer. That's why I'm re-writing my question. I have a main file named: "main.php3" It includes an external php3 script named: "ext.php3" Inside of the 'ext.php3' script - I need to know the full path of the file which included it (in this case - 'http://www.../dir1/dir2/main.php3'). How could I do that? Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] replacing a line in a file
Hey! I didn't try to analyze your code, but why not using the file() function which opens a file and puts it's content into an array. After doing that, you could seek that array line-by-line for "$data[0]:$shadow[1]" and replace it with $data[0]:$data[1]. Since you're dealing with full lines in your script, file() is the best choice (though, sometimes not the fastest). It will also improve your code by making it much easier to read than when using fopen(), fread(), etc.. as you're doing now. Best Regards - Aviv Revach At 17:29 13/03/01 -0600, enthalpy wrote: >having problems replacing a line in a file. > >need to search the whole document for a string and then replace that line >with a string. > >any ideas? > >this is causing lots of problems now. > >$fpoint3 = fopen ($testshadow, "r+") or die("couldnt open shadow file again"); >$contents = fread ($fpoint3, $shadowfilesize); >fputs ($fpoint3, ereg_replace("$data[0]:$shadow[1]", "$data[0]:$data[1]", >$contents)); >fclose ($fpoint3); > >any ideas? > ><-CoreComm-Internet-Services---http://core.com-> >(Jon Marshall CoreComm Services Chicago) >([EMAIL PROTECTED] Systems Engineer II) >([EMAIL PROTECTED] Network Operations) ><-Enthalpy.org-http://enthalpy.org-> >([EMAIL PROTECTED] The World of Nothing) ><--> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Getting name of the main file from external included sc ript..
Hey! I already tried many ways. I also tried using $PHP_SELF. It returned the included script and not the main script (I echo'ed it to screen in order to be sure). The main file(main.php3) has an inclusion similar to the next one: http://$SERVER_NAME/scripts/ext.php3?LayoutDir=/layout/&LayoutNum=1"); ?> What do you offer me to do? Thank you in advance - Aviv Revach At 16:53 13/03/01 -0700, Johnson, Kirk wrote: >Aviv, I'm not quite sure what you are asking. If you are just doing an >include() or a require() on a chunk of code, then I think the usual server >variables will give you the path of the main file, e.g. $PHP_SELF. If you >are doing a *redirect* to a *different page*, then you could look at >$HTTP_REFERER, or pass the main page name as a GET attached to the URL. > >Hope this helps. > >Kirk > >-Original Message- >From: Aviv Revach [mailto:[EMAIL PROTECTED]] >Sent: Monday, March 12, 2001 4:15 PM >To: [EMAIL PROTECTED] >Subject: [PHP] Getting name of the main file from external included >script.. > > >Hey! > >I already asked this once before, but nobody seems to answer. That's why >I'm re-writing >my question. > > I have a main file named: "main.php3" > It includes an external php3 script named: "ext.php3" > >Inside of the 'ext.php3' script - I need to know the full path >of the file which included it (in this case - >'http://www.../dir1/dir2/main.php3'). >How could I do that? > > >Thank you in advance - > >Aviv Revach > > BRILLIANeT Website - >http://www.brillianet.com/ > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting string's content between two tags..
Hey! Once again, I have a question ;) I have a string that looks like this(I loaded it with a file data): " blabla continue of blabla " I would like to know what's the fastest technique of taking just a specific part in this string(case-insensitive) and putting it into a new string i.e.: from "" to "" or: from "" to "" Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Executing a string with both html and php inside it..
Hey! What should I do in order to execute the next string: $str = "\n" $str .= "blabla\n"; $str .= " \n"; $str .= "blabla\n"; $str .= "\n"; When I tried using 'echo' with the string, but the php code didn't work... Is there any way of doing this without writing this string to a file and include'ing it? (that would be rather slow!) Thank you in advance - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Executing a string with both html and php inside it..
Hey! The function 'eval()' can't be used here. I already tried working with it and failed. eval() is being used for running PHP code. My string contains HTML tags with PHP code inside(in '' tags), not only PHP as eval() requires. Do you have any other suggestion? Thank you in advance - Aviv Revach At 18:54 14/03/01 -0500, Andrew Hill wrote: >Aviv, > >eval() > >http://www.php.net/manual/en/function.eval.php > >Best regards, >Andrew >On 3/13/01 6:35 PM, "Aviv Revach" <[EMAIL PROTECTED]> wrote: > > > Hey! > > > > What should I do in order to execute the next string: > > $str = "\n" > > $str .= "blabla\n"; > > $str .= " \n"; > > $str .= "blabla\n"; > > $str .= "\n"; > > > > When I tried using 'echo' with the string, but the php code didn't work... > > > > Is there any way of doing this without writing this string to a file > > and include'ing it? (that would be rather slow!) > > > > > > Thank you in advance - > > > > Aviv Revach > > > >BRILLIANeT Website - > > http://www.brillianet.com/ > > BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Executing a string with both html and php inside it..
Hey! I would like to thank you and Mark for your quick reply. What am I trying to accomplish is the following: I have created an engine which separates my website's code and design. The code is stored in one file(code.txt) and the design in another(design.txt). The engine loads up parts of each file in order to create the final result, meaning - * It prints the "" etc.. * It prints DESIGN.TXT's head * It prints CODE.TXT's head * It prints "" etc.. * It prints part of DESIGN.TXT's body * It prints CODE.TXT's body * It prints the second-part of the DESIGN.TXT's body * It prints "" That's the general idea of what the engine does, but it's doing other things as well. The engine works the way it does because I wanted to have the entire content and the entire design all in 2 separate files. Most of the engines I've seen so far, used 3 different files for the design, and included them in different places inside their content. I don't wish to do that.. Now, all worked fine until a while go, I used the 'echo' command in order to print the strings that contain content/design HTML code. The troubles began when I added PHP code to my content - The PHP tags were IGNORED... ! Now, after I've told you all the things you should know, I ask for your assistance. What do you suggest me to do? Thank you in advance - Aviv Revach At 13:26 15/03/01 +0100, Christian Reiniger wrote: >On Wednesday 14 March 2001 12:50, you wrote: > > > My string contains HTML tags with PHP code inside(in '' > > tags), not only PHP as eval() requires. > > > > Do you have any other suggestion? > >AFAIK there's no other way than using include(). > >Why do you need that anyway? > > > > > What should I do in order to execute the next string: > > > > $str = "\n" > > > > $str .= "blabla\n"; > > > > $str .= " \n"; > > > > $str .= "blabla\n"; > > > > $str .= "\n"; > > > > > > > > When I tried using 'echo' with the string, but the php code didn't > > > > work... > >-- >Christian Reiniger >LGDC Webmaster (http://sunsite.dk/lgdc/) > >Pretty cool, the kind of power information technology puts in our hands >these days. > >- Securityfocus on probing 3600 hosts for known problems in 3 weeks BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URL / address
Hey! You could easily use the Environment Variables. echo "http://$HTTP_HOST/$PATH_INFO"; will do the trick.. Best Regards - Aviv Revach At 13:45 15/03/01 +0100, Geer wrote: >Hi there, > >Does anyone know how I can read the address of URL the user filled in in >his/her browser??? > > >Greetings, > >Geer > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Executing a string with both html and php inside it..
Hey! Shaun, I'm really glad to say that I finally solved the problem I had with "executing a string that contains both HTML and PHP inside it", and it's all thanks to you! Thank you very much - Aviv Revach At 10:37 15/03/01 -0500, you wrote: >Hey, I glanced over your message, and you can use eval to execute >php/html, but you have to open and close the tags when you use it >because eval is in php mode, not html mode. > >eval('?>" . $htmlandphp . ' > >On Wed, 14 Mar 2001, Aviv Revach wrote: > > > Hey! > > > > I would like to thank you and Mark for your quick reply. > > > > What am I trying to accomplish is the following: > > > >I have created an engine which separates my website's code and design. > >The code is stored in one file(code.txt) and the design in > > another(design.txt). > > > >The engine loads up parts of each file in order to create the final > > result, meaning - > > * It prints the "" etc.. > > * It prints DESIGN.TXT's head > > * It prints CODE.TXT's head > > * It prints "" etc.. > > * It prints part of DESIGN.TXT's body > > * It prints CODE.TXT's body > > * It prints the second-part of the DESIGN.TXT's body > > * It prints "" > > > >That's the general idea of what the engine does, but it's doing other > > things as well. > >The engine works the way it does because I wanted to have the entire > content > >and the entire design all in 2 separate files. > >Most of the engines I've seen so far, used 3 different files for the > > design, and included > >them in different places inside their content. I don't wish to do that.. > > > >Now, all worked fine until a while go, I used the 'echo' command in > > order to print the > > strings that contain content/design HTML code. > > > >The troubles began when I added PHP code to my content - > >The PHP tags were IGNORED... ! > > > > > > Now, after I've told you all the things you should know, I ask for your > > assistance. > > What do you suggest me to do? > > > > > > Thank you in advance - > > > >Aviv Revach > > > > > > At 13:26 15/03/01 +0100, Christian Reiniger wrote: > > >On Wednesday 14 March 2001 12:50, you wrote: > > > > > > > My string contains HTML tags with PHP code inside(in '' > > > > tags), not only PHP as eval() requires. > > > > > > > > Do you have any other suggestion? > > > > > >AFAIK there's no other way than using include(). > > > > > >Why do you need that anyway? > > > > > > > > > What should I do in order to execute the next string: > > > > > > $str = "\n" > > > > > > $str .= "blabla\n"; > > > > > > $str .= " \n"; > > > > > > $str .= "blabla\n"; > > > > > > $str .= "\n"; > > > > > > > > > > > > When I tried using 'echo' with the string, but the php code didn't > > > > > > work... > > > > > >-- > > >Christian Reiniger > > >LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > > >Pretty cool, the kind of power information technology puts in our hands > > >these days. > > > > > >- Securityfocus on probing 3600 hosts for known problems in 3 weeks > > > > > > BRILLIANeT Website - > >http://www.brillianet.com/ > > > > > > > >-- BRILLIANeT Website - http://www.brillianet.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] command that gives current location of script
Hey! You could use 'phpinfo()' to find what you seek. $PHP_SELF does give you the current location of the php script, but with 'phpinfo()' you could read about other values that supply miscellanies related information. Best Regards - Aviv Revach At 22:27 17/03/01 -0700, Andrew V. Romero wrote: >I though in flipping through the manual that I had come across a command >that gives the location of where the script is being run from, but I >have been searching for half an hour and can't find it now. Isn't it >something like $php_self? Anyone kow what I am talking about? >Thanks, > Andrew V. Romero > to reply personally, remove all numbers from address. > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Webhosting
Hey! I'm in the EXACT situation as you.. ;) I too was wondering whether phpwebhosting.com can be trusted. If someone here ever used their services, please let us know. Thank you in advance - Aviv Revach At 12:28 19/03/01 -0600, Angerer, Chad wrote: >Hello, > >I ran across a web hosting service phpwebhosting.com and it seemed like a >good deal, perhaps too good to be true. I searched the newsgroup archive to >find any posts of user experiences. I didn't see anything good or bad >really. I am just wondering if someone else has heard or had any >experience. > >Any input is appreciated. Thanks. > >chad angerer >html programmer > >.. :one man with a club is a hooligan. a thousand men with clubs are a >regiment: .. > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] XOR-Coders Mega Programming Resource Site! - http://members.xoom.com/xorcoders/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]