[PHP] New mailing list
http://betterphp.org The Better PHP mailing list is available for anyone who wants to learn how to write secure, efficient web applications. We focus on the LAMP (Linux-Apache-MySQL-PHP) platform but welcome other questions. This list is intended for people who use PHP, and who want feedback on code style, security, and other more advanced PHP topics. Please note: this list is moderated. Anything you can find in standard documentation will not be forwarded to the list, as we are trying to keep the discussion about style, not syntax. Everyone is welcome to join and learn, the goal is to get programmers thinking about security. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Why Can't I get this to work
Hello all, I have a php script that reads a flat text file with fields seperated by a space. I explode them into an array just fine, but when I try then to load that array into a mysql database, it doesn't work. Here is my script: for ($i=0; $i<$number_of_alerts; $i++) { // Split each line $line = explode(" ", $ipfwlog[$i]); $line[1] = intval($line[1]); $IPFWsql = "INSERT INTO Firewall_Logs (month, date, time, fw_name, kernel, fw_engine, rule_number, action, protocol, src $results = mysql_query($IPFWsql) or die ("Could not execute query"); } Any ideas why this does not work? I am completely stuck. Thanks in advance, RonC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Why Can't I get this to work
OK, normally I do not respond to my own posts, but I have been shown that I did not get the whole script. So here it is: for ($i=0; $i<$number_of_alerts; $i++) { // Split each line $line = explode(" ", $ipfwlog[$i]); $line[1] = intval($line[1]); $IPFWsql = "INSERT INTO Firewall_Logs (month, date, time, fw_name, kernel, fw_engine, rule_number, action, protocol, src_ip_port, dst_ip_port, direction, via, interface) VALUES ('$line[0]', '$line[1]', '$line[2]', '$line[3]', '$line[4]', '$line[5]', '$line[6]','$line[7]', '$line[8]', '$line[9]', '$line[10]', '$line[11]', '$line[12]')"; $results = mysql_query($IPFWsql) or die ("Could not execute query"); } Again, any help with this issue is appreciated. Thanks, Ron Clark "Ron Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I have a php script that reads a flat text file with fields seperated by a > space. I explode them into an array just fine, but when I try then to load > that array into a mysql database, it doesn't work. Here is my script: > > for ($i=0; $i<$number_of_alerts; $i++) { > // Split each line > $line = explode(" ", $ipfwlog[$i]); > > $line[1] = intval($line[1]); > > $IPFWsql = "INSERT INTO Firewall_Logs (month, date, time, fw_name, kernel, > fw_engine, rule_number, action, protocol, src > $results = mysql_query($IPFWsql) or die ("Could not execute query"); > > } > > Any ideas why this does not work? I am completely stuck. > > Thanks in advance, > RonC > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing variable question
Hello all, I have a php script that reads all the files in a directory (pictures), the outputs each picture as a link to be displayed in the main frame of the html page. All of that works fine. I want to be able to "pretty up" the picture out put by placing the picture into a html table so it is centered, add color, etc. But I cannot seem to figure out how to pass the variable from the menu page to the main frame page without using a goofy gray button form. Anyone know how to pass a variable on just a link alone? Thanks, Ronnie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML to PHP help
Hello all, Does anyone have a script, or know where to find a working script to pull backend.php files from a site, parse them into a html type file, and display them correctly? I have been working on one for my site for some time now, and I cannot sem to get it right. I want to see the structure of a working script and compare it to my own. Thanks, Ron Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-4.1.1 and pspell
I have a problem that I would be thankful if someone could help with. When php-4.1.1 is compiled using pspell-.12.2 and apache-1.3.22 with mod_ssl-2.8.22 apache core dumps when trying to start. Using the same configure options with php-4.0.6 and apache-1.3.22 and mod_ssl-2.8.22 everything works fine. Does anyone know if this is a bug with php-4.1.1. Operating system is solaris-8 on a sun enterprise 450 Thanks in advance, -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- 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] Re: Computer Science and PHP
py wrote: > > Do you guys really think PHP should be in computer science curriculum? > > In my curriculum (in canada) I learned C/C++, Software Design (database > architecture and OO Design), SQL, Unix and Networks (OSI, TCP-IP and HTTP > mainly) > > There was no Perl, Python, PHP, ASP, JSP and even no VB... > I think it's more important to learn Programming than it is to learn PHP. I > know for a fact that some of our > teachers knew about PHP, but still they decide to teach the class in C. And > I happy they did. > > Now if your school has no PHP server, why don't you suggest and offer to > install it? > That's what we did, we made it run on a small machine on Linux first than > with the > help of the university sys admin, we installed it on a Unix server. The sys > admin is > now very happy to do his web stuff in PHP instead of Perl :) > > just my canadien 2 cents... (1.14 cent US ;) ) > py > > At 03:46 AM 1/18/2002 -0200, you wrote: > >Hello, > > > >Francesco Gallarotti wrote: > > > > > > I am a student in a college in NY state. Here we have several servers and > > > dozens of courses on computer science. No server is PHP ready and no course > > > instructor knows anything about PHP. Why do you think this is happening? I > > > really like PHP and I am using it in my personal website to work with some > > > text files and a small database. Why PHP is so not popular in the computer > > > science teaching area? > > Most University CS departments prefer to teach programming using a more structured language with stronger type casting. It is much easier to move from a structured language to a language like perl or PHP than the reverse after graduation. At our university we offer special topics courses that are not on the curriculum when requested by students - courses on PHP perl visual basic. Maybe you should talk to the CS department head about special topic classes or department sponsored user discussion groups. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- 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] Parse error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I am getting the following error trin to use the mysql_connect command in a script: Parse error: parse error in /usr/home/rclark/phptest/addrecord.php on line 19 Here is line 19: $connection = mysql_connect("localhost","phpkid","d0wn") or die ("Could not connect to server"); Anyone have any ideas?? I am so stuck and running out of hair to pull out! Thanks in advance, Ron Clark -BEGIN PGP SIGNATURE- Version: PGP 7.1 iQA/AwUBPF7Th0SpEYIqgLQzEQInoACeOGf5f1LhIowxzrkwlbQGbp9Vnj4AoKwA XAnhNaQx7p4TqMbX/BHDc68h =obAs -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie Question about PHP / MySQL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello All: How do I read all of the data from just one column, then develop a count based on those items? I think I start with mysql_fetch_field(), but right there I get stuck. Any ideas to point me in the right direction? Thanks in advance, Ron C. -BEGIN PGP SIGNATURE- Version: PGP 7.1 iQA/AwUBPGQIlESpEYIqgLQzEQIzeQCg/JWV1gTtsr0msG3FyUsLK3oaHL8AoNls m6KXlfmfZPhEIJOdvTX4VBRw =71Ww -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Syntax ???
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all again, Here is my line in my script: $ynumber = mysql_query("SELECT COUNT(*) FROM responses WHERE response=y"); But it returns a blank or empty. How do I convert this MySQL command to PHP? mysql> SELECT COUNT(*) FROM responses WHERE response="y"; In other words, how do I specify the "y" at the end without messing up PHP? Thanks, RC -BEGIN PGP SIGNATURE- Version: PGP 7.1 iQA/AwUBPGQbIESpEYIqgLQzEQJr4wCeNiIhqHZYloLJWsvNr2ODustuPU0AoPw6 ROvim3yCO9Z9GlyReg6pyMa9 =D1uC -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with showing tables in DB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Consider the following: mysql_select_db($db_name); $result = mysql_query("show tables"); while ($rows = mysql_fetch_object($result)) { echo $rows; } So why does this not return the Table names? I have even tried "echo rows->Table" and "echo rows->Tables" to no avail. So how do I fix this? Thanks in advance, Ron C. -BEGIN PGP SIGNATURE- Version: PGP 7.1 iQA/AwUBPHv32kSpEYIqgLQzEQISfQCeLVinx7oQc4Gmudv1MJbb17dGCPoAnA7S yRR86rJUwHsXGJlU0yVckVyK =2bva -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to remove ^M characters from a directory?
Balaji Ankem wrote: > > Hi, > I have moved my php files to linux system. > Now it z showing (control+M)(^M) characters in the file. > How can I remove those characters? > > Any help would be appreciable. > > Thanks and Regards > Balaji > > >Name: Wipro_Disclaimer.txt >Wipro_Disclaimer.txtType: Plain Text (text/plain) >Encoding: 7bit > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php NAME dos2unix - convert text file from DOS format to ISO format SYNOPSIS dos2unix [ -ascii ] [ -iso ] [ -7 ] originalfile conver- tedfile DESCRIPTION The dos2unix utility converts characters in the DOS extended character set to the corresponding ISO standard characters. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] system command
I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check the return value and if it is not a 0, I want to create a custom message. The problem is, when using system the output of the call is flushed to the browser before I can write the custom message so I have the uvscan message and then my custom message. This is my code. $uvscan_cmd = "/usr/local/bin/uvscan " . $_FILES['file']['tmp_name']; $output = system("$uvscan_cmd" , $retval); if ( $retval != 0) { print "A virus was found in your file $output"; exit; } This results in the following sent to the browser. /var/tmp/phpBFaaIa Found the W32/[EMAIL PROTECTED] virus !!! A virus was found in your file. Found the W32/[EMAIL PROTECTED] virus !!! How can get rid of the first line and still have data $output? I tried adding a 2 > &1 to the system call and tried redirecting the output to /dev/null. This got rid of the first line but also resulted in $output not having an output. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] system command
John Holmes wrote: From: "ron clark" <[EMAIL PROTECTED]> I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check the return value and if it is not a 0, I want to create a custom message. The problem is, when using system the output of the call is flushed to the browser before I can write the custom message so I have the uvscan message and then my custom message. You can use output_buffering to capture the output, or use a different method to make the call, i.e. backticks or exec(), which allow you to capture the output before it's displayed. ---John Holmes... Thanks John. Was a simple fix. Turn output buffering on to prevent the output of the system command going to the browser. Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] system command
Daniel Schierbeck wrote: Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer Didn't need the contents of the buffer. All I needed was the last line which was contained in $output = system(). -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Free news feeds
On Thu, 10 Jun 2004, Ben Ramsey wrote: > Tim Winters wrote: > > Thanks for the reply. They actually don't have free feeds anymore. > > They actually say in the FAQ that they don't do that anymore. > > Bah! They do have free feeds, still. I can't remember how I found this > link, but I went through an old backup of a bookmarks file to get it for > you, and it still works. The RSS feeds unbelievably still work, too. > > If I got to this page from their homepage without a login, then I don't > imagine they care too much about people using them. > > There is one thing I would suggest, though: to keep traffic down to > their feeds, set up an automated script (through cron or something) to > download the feed(s) once a day or once every other hour. Then, on the > page you want to display the feed(s), just point to your locally > downloaded copy. This way you don't tax Moreover's servers and they > don't get too mad about people using the feeds. > > The link: > http://w.moreover.com/categories/category_list_rss.html > > -- > Regards, > Ben Ramsey > http://benramsey.com Attached is a text file containing a list of rss and xml news feeds we use in our portal. You have to write the code to convert the xml to plain text. -- Ron Clark sysadmin/webmaster Armstrong Atlantic State UniversityFaculty / Staff Applications|Information Retrieval|IR| Faculty / Staff Applications|MetaApp|meta| Faculty / Staff Applications|Utilities|utilities| ||| CIS|CIS Cove Developer Info|cove_developers| ||| Registrar Applications|Degree Program (Major) Process|degch| ||| Pirates' Cove|Armstrong Announcements|Announcements| Pirates' Cove|Pirates' Cove Information|cove_info| Pirates' Cove|Savannah Weather|weather| Pirates' Cove|Search Cove|search| Pirates' Cove|Stock Ticker|stocks| ||| Science and Tech|ABC News SciTech|ABC_News_SciTech|http://my.abcnews.go.com/rsspublic/scitech_rss093.xml Science and Tech|Advogato|advogato|http://www.advogato.org/rss/articles.xml Science and Tech|Apache Week|Apache_Week|http://www.apacheweek.com/issues/apacheweek-headlines.xml Science and Tech|BBC World News Science and Nature|BBC_World_News_Science_and_Nature|http://news.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss091.xml Science and Tech|BBC World News Technology|BBC_World_News_Technology|http://news.bbc.co.uk/rss/newsonline_world_edition/technology/rss091.xml Science and Tech|Christian Science Monitor Sci/Tech|csm_scitech|http://csmonitor.com/rss/scitech.rss Science and Tech|Desktopian|desktopian|http://desktopian.org/includes/headlines.xml Science and Tech|ExtremeTech - Core Tech|extremeTechCore|http://rssnewsapps.ziffdavis.com/extreme.xml Science and Tech|Extreme Tech - Reviews|extremeTechReview|http://rssnewsapps.ziffdavis.com/extremetechreviews.xml Science and Tech|Freshmeat|freshmeat|http://freshmeat.net/backend/fm.rdf Science and Tech|GameDev|GameDev|http://www.gamedev.net/xml/ Science and Tech|Humorix|Humorix|http://i-want-a-website.com/about-linux/headlines.rdf Science and Tech|IceWalkers|IceWalkers|http://www.icewalk.com/backend/netscape_channel.txt Science and Tech|Javable|Javable|http://www.javable.com/eng/rss.shtml Science and Tech|Linux Game Tome|The_Linux_Game_Tome|http://happypenguin.org/html/news.rdf Science and Tech|Linux Security|Linuxsecurity|http://www.linuxsecurity.com/linuxsecurity_articles.rdf Science and Tech|Linux Today|Linux_Today|http://linuxtoday.com/backend/my-netscape.rdf Science and Tech|Mac News Network|macnn|http://www.macnn.com/macnn.rdf Science and Tech|MultiAgent Systems|MultiAgent_Systems|http://www.multiagent.com/mynetscape.rdf Science and Tech|Perl News|Perl_News|http://www.news.perl.org/perl-news-short.rdf Science and Tech|PHP Net|PHP_Net|http://www.php.net/news.rss Science and Tech|Security Focus|Security_Focus|http://www.securityfocus.com/topnews-rss.html Science and Tech|Slashdot|slashdot|http://slashdot.org/slashdot.rdf Science and Tech|SourceForge Project News|SourceForge_Project_News|http://sourceforge.net/export/rss_sfnews.php Science and Tech|Squishdot|Squishdot|http://squishdot.org/rdf Science and Tech|The Register|The_Register|http://www.theregister.co.uk/tonys/slashdot.rdf Science and Tech|WebDEV - German Language Web Developer's Resource|WebDEV|http://webdev.khm.de/xml/scriptingNews2.xml Science and Tech|WebReference|webreference|http://www.webreference.com/webreference.rdf Science and Tech|Wired|wired|http://www.wired.com/news_drop/netcenter/netcenter.rdf Science and Tech|Yahoo! News Science|yahoo_science|http://rss.news.yahoo.com/rss/science Science and Tech|Yahoo! News Technology|yahoo_tech|http://rss.news.yahoo.com/rss/tech ||| Money and Finance|ABC News Business|ABC_News_Business|http://my.abcnews.go.com/rsspublic/business_rss093.xml Money and Finance|BBC World News Business|BBC_World_News_Business|http:/
Re: [PHP] 404 After Setting session.save_path to /tmp
Mark Sargent wrote: Chris wrote: Big security issue - don't do it. >ps au | grep apache root /usr/sbin/apache htdocs /usr/sbin/apache htdocs /usr/sbin/apache My apache is running as "htdocs". So as root create a temp folder and chown it to "htdocs": mkdir /my_temp_dir chown htdocs. /my_temp_dir Hi All, ok, created dir, added htdocs user/group and changed ownership of dir to them. Thing I'm gettin is, every time I make an adjustment to either php.ini or httpd.conf, and do a restart, I keep getting a 404 error for all pages. Which only corrects when doing a reboot of the box. This was happening before I just followed your last steps. Thoughts? Cheers. Mark Sargent. I thought you said in earlier email that your apache was running as user daemon. The tmp directory has to be owned by the user running apache. If you want to run apache as user apache group apache then you will have to edit httpd.conf and change the User and Group directives. Otherwise chown chgrp the tmp directory to the user/group that is listed in the httpd.conf file. -- Ron Clark System Administrator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] order of elements in $_POST super global
Ben Liu wrote: Hi Dave, No, that is definitely a possibility. Right now I am using a foreach loop to iterate over the $_POST array and determine if each checkbox is checked or not, if it is checked, than a related piece of data is written into the text file. This makes for pretty compact code. I could as you suggest, simply check each element in the array manually using the associative keys rather than using a loop, that way I could do it in any order I wished, but the code gets rather long with a line for each checkbox. I anticipate this set of checkboxes/boolean responses may increase in the future also, so having the loop allows for some future-proofing. - Ben On 6/8/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: On 08/06/06, Ben Liu <[EMAIL PROTECTED]> wrote: You can access the values in the $_POST array in any order, so if you know the checkbox names why not output them in the order you want? Or I am being dumb here? why not create an array with the keys in the order you want ( $array= array(value1,value2,). Then loop through the array and use the values as keys to the $_POST variable and perform your processing that way. foreach ($array as $value) { if (isset($_POST[$value]) { do something; } } -- Ron Clark System Administrator Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a question about the PHP manualB
At 09:56 AM 12/9/2004, Eakin, W wrote: >Hello, >As I'm studying, and learning, PHP, I use certain resources again and > again. A few books I've bought, some web sites, this mailing list, and > the PHP manual. I've taken the often repeated 'RTFM' to heart, and I > attempt to google or RTFM before considering a post to the list with a > question, but now I have a question about the manual itself. >I've noticed that most of the replies to the questions on this list, when >they refer to a part of the manual, point to the same few sections over >and over. Such as arrays, strings, sessions, objects, and a few others. >My question is this, when I'm reading the manual, is just that I should be >concentrating on a few sections (and if so, which?), or should I be giving >equal attention to all the sections, including some (I suppose) I might >never use. I have found that when learning a new language that it is a good idea to read the whole manual it time permits, even it there are sections that you don't think you will ever need. Later on when programming you may need to do something and remember that function that you never thought you would need. It never hurts to no what's available even if you don't think you will need it. Ron Clark System Administrator Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] How to argue with ASP people...
On Tue, 4 Jan 2005, Richard Davey wrote: > Hello John, > > Tuesday, January 4, 2005, 2:52:27 PM, you wrote: > > JN> Standard comment in HTML, but it has another use with Apache, and I > JN> didn't find any reference to this type of syntax for ASP. > > > > and > > > > are both perfectly valid ASP syntax that will work on **IIS** > > Obviously you can do the usual stuff as in PHP, with: > > <% > filen = "header.inc" > %> > When you do %> then you have broken out of ASP and are now writing HTML. You then do <%=filen%> to go back into ASP to get the value of the variable into the HTML code that you wrote. ASP is not including the file, it is only supplying a file name for SSI includes whether apache SSI or IIS SSI. The server parsing the HTML recognizes the HTML comment is sentax for server side include and includes the suppplied file name. Ron Clark Sysadmin/Webmaster Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[3]: [PHP] How to argue with ASP people...
On Tue, 4 Jan 2005, Richard Davey wrote: > Hello Ron, > > Tuesday, January 4, 2005, 5:59:31 PM, you wrote: > > RC> You then do <%=filen%> to go back into ASP to get the value of the > RC> variable into the HTML code that you wrote. ASP is not including the file, > RC> it is only supplying a file name for SSI includes whether apache SSI or > RC> IIS SSI. The server parsing the HTML recognizes the HTML comment is > RC> sentax for server side include and includes the suppplied file name. > > Perhaps this is a better example for you: > > script1.asp > <% > StrName = "bob" > %> > > script2.asp > > <% > Response.Write "Hello " & StrName > %> > > Clearer now? I understand what you're saying perfectly, but in the > context of ASP scripts I am afraid it's wrong. > > Best regards, > > Richard Davey > -- With this new example you are still using SSI from the web server to include an ASP file. ASP itself is not including the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[3]: [PHP] How to argue with ASP people...
On Wed, 5 Jan 2005, Jay Blanchard wrote: > [snip] > ...stuff... > [/snip] > > I think we can all agree that PHP and ASP can do the same things, so the > one glaring difference is COST. An efficient Apache / PHP server can be > set up for much less than an IIS / ASP server, even if you take the same > 'box' to do it with. Given the same 'box' you will find the Apache / PHP > server to be much more efficient. > I totally agree and would add more secure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php