[PHP] Please point me in the right direction
Hi All, I have a CGI application written in Delphi web services and I want to port it to the Linux environment. I was going to use Kylix but I'm concerned that Borland isn't keeping up with the fast paced Linux development (ie they are still on Redhat 7.2 and Redhat is about to release version 9.0 next month). The current CGI is a little complicated and relies heavily on OOP data structures. It processes the data then sends a stream to the web server for display in the browser. It's very fast and I am happy with the performace, but I must port it over to Linux. As I am very unfamiliar with the PHP environment, can someone point in the right direction? If I use PHP for the front-end, what is the best tool to create the CGI? I was considering using Python, but would Pearl be better? Any direction to get me started and headed in the right direction would be very appreciated Thanks, Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: requesting sites running OS X
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Michael Geary) wrote: > I have been asked by a rep at a large software dev company about any > websites live-to-the-world running OS X. We are, but we're not exactly > huge (max hits/day = approx. 1000, mostly internal). > > So, what sites are you aware of? They don't even have to be running PHP. > Please let me know. We're running our search engine on OS X Server (http://spike.sandiego.edu/); it's great--there's practically no system administration that needs to be done (that's all handled by Apple), and I can concentrate on the search engine software (we use ht://Dig). We do use PHP on it, but for legacy links--I've got a PHP script that translates requests to the old search engine into requests that ht://Dig understands. We've just purchased an XServe to replace our main web server, but have not yet installed it. That will use PHP extensively. We're also using OS X Server to handle our mysql databases. (http://www.sandiego.edu/ac/classes/ to see one front end to one of the databases) Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sessions: what to do when browser won't accept cookies?
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jean-Christian Imbeault) wrote: > How can I get around the problem of not having the SID in the URL of the > first page to my site the user comes to? It kind of a chicken-or-the-egg > problem ... I kind of hate it when sites do this, but you could have the first page reload itself if it doesn't have an SID, and add an SID to itself. This way, if they use the back button, the first "first page" they come to has the SID. You might then be able to use window.forward() in Javascript first, before giving them an SID. If they used the back button to get to you, window.forward() moves forward to a page that has an SID (which should look exactly like the page they thought they wanted that didn't have an SID). If they didn't use the back button to get to you, window.forward shouldn't do anything. As a fall-back, you would probably want to have a warning on the front page that says, if the front page has no SID, that if they used the back button get here, use the forward button to go back or they might lose their session data. This depends on your audience, of course. If you did that to me as a general browser, I probably wouldn't ever visit your site again :*) Note that some sites do come right out and tell you not to use your back button to get around. You might just do this, and if they use their back button anyway, they get a new session. Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Import & Stamp PDF's
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miles Thompson) wrote: > Each evening I distribute a newsletter to approx 500 subscribers, and I > want to stamp each copy I send with the name, email address and subscriber > number of the recipient. I've not done any programmatic PDF manipulation, > but could this be done using PDFlib? I receive the newsletter as a PDF from > the publisher, it's not generated on my system. I envision it running as > follows: You might want to simplify the problem into two steps: 1. Create a PDF file with the stamp information; 2. Append one file to the other. PDFLib could certainly do the former. I'm not sure about the latter. I have a similar problem (to step 2); we have a phone directory that employees can download, but the front matter and the directory itself come from different departments. They each ftp their parts, as PDF, to a central repository. I have a Perl script on my desktop computer (Mac OS X) that checks this repository for new versions, downloads them when it finds them, and then calls an AppleScript which calls Adobe Acrobat to combine the two files into a single file, then uploads the single file to our web site. It works fine, except that I do have to be logged into my computer for it to work (Adobe Acrobat, being a GUI app, requires that a GUI be started up). I'd love to be able to replace that step with a completely command-line combination routine. You might also check out the Yahoo PDFLib group. It looks fairly active. http://groups.yahoo.com/group/pdflib/ Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and SSI
Is it possible to use SSI with PHP? If so, where can I learn how to do this? TIA, Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-DB] Dynamic Website Question!
Hi, I am not familiar with DHTML and how it can be used to talk to PHP to update a certain part of a page. That is all I need, is one section of the page, not the entire page, to be refreshed. The part is just text from a database. However on the page I want backgrounds, images etc but I don't want these to refresh, just the text from the database. What you have said below seems exactly what I want. But I have never used DHTML. Could you show me a example of both frames (just the source) of how one talks to another please? Jerry --- Bronislav Klucka <[EMAIL PROTECTED]> wrote: > > I want to have a PHP website that feeds > information > > off a mysql database. But generally changes > occour > > and instead of asking users to refresh the page to > get > > the updates is there a way to provide the updates > > without them needing to refresh the page? > > > > E.G. For like shooping Carts, Chat rooms, etc... > > > > Is there a way in PHP or something to make updates > > show up live as they happen instead of the yucky > meta > > refresh tag in HTML? > > > > Thanks for your time in advance. > > I'm sorry, I always dissapoint you, but what ever > you want to send to > browser must be demend by the browser. I mean you > can tell browser to reload > part of the page, browser has to ask for it, you can > send more information > to the browser and then use DHTML to provide the > showing, or hiding... > > There is only one way how to do, what you want (but > it always ask the > server, only user will not see reloading). The way > is to have 2 frames: 1st > for showing the content and the second to refresh > every 1 min. (or as you > want), receive informations and using DHTML change > the content of the first > frame, the secomd frame could be at the bootom of > the browser, 1pixel > height, to be "invisible" > > > > Brona > http://personals.yahoo.com.au - Yahoo! Personals New people, new possibilities. FREE for a limited time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-DB] Dynamic Website Question!
Hi, Okay let me explain what I want to do. Now I have a variety of queries to do to the database and echo's to echo out and how to output on the PHP page. But I am not sure how to get my code (below) sucessfully to work in the example in the previous email. (found lower) Could someone point me in the right direction please? I need the echo's shown in the queries to be outputed on the page as it says. But I need only that part of the page to be refreshed once every 5 seconds and not the enitre page to reload.. Just the data from the database. Here is my code: '$username'"; $result=mysql_query($sql, $conn); // toon lijst met users while ($myrow = mysql_fetch_array($result)) { // show name of friend echo "$myrow[naam]"; // count all mesages for this user $sql = "SELECT count(*) as aantal FROM message where recipient = '$username' AND sender = '$myrow[naam]'"; $messageresult=mysql_query($sql, $conn); // toon aantal messsages per vriend $myrow2 = mysql_fetch_array($messageresult); if ($myrow2[aantal] <> 0) { // kijk of er nog nieuwe messages zijn $sql = "SELECT isread FROM message where recipient = '$username' AND sender = '$myrow[naam]' AND isread=0"; $readmessageresult=mysql_query($sql, $conn); $myrow3 = mysql_fetch_array($readmessageresult); echo " "; if ($myrow3[isread] == null) { echo "(". $myrow2[aantal] . ")"; }else{ echo "(". $myrow2[aantal] . ")"; } } // show online/offline status if ($timestamp - totime($myrow[lastlogin]) > $isonlineseconds) { echo " $langisoffline"; }else{ echo " $langisonline"; } // give admin delete possibility if ($adminloginname == $username) { echo " x"; }else{ echo ""; } } ?> Now maybe I need to do each query seperately to work in the example below? But how.. And remembering to output the echo's and not what the database provides. As I need it to be formated as in the echo. Unless I remove the echo's and put the results as defined in the example below. > function DoOnLoad(){ > ele=PSGetElementById(parent.frames[0],"text"); > ele.innerHTML=""; ^ With "myrow['whatever']" I'm not sure, new to this stuff, but thought I'd post my code, maybe someone could whack up a code that functions The code of the refreshing part is below with all pages relevant to it. (please note i emailed the person that gave me the code below and replied with my code but they have not replied as of yet of how to get it to function so that is why i posted on here also.) Jerry --- Bronislav Klucka <[EMAIL PROTECTED]> wrote: > index.php > >frameborder="no"> > > > > > first.php > > > > > > second.php > > >content="10;URL=second.php"> > > function PSBrowser(){ > this.ns4 = (window.document.layers); > this.ie4 = (window.document.all && > !window.document.getElementById); > this.ie5 = (window.document.all && > window.document.getElementById); > this.ns6 = (!window.document.all && > window.document.getElementById); > this.op = > window.navigator.appName.indexOf('Opera')!=-1; > } > > function PSGetElementById(frame,id){ > var b=new PSBrowser(); > var new_obj=null; > if(b["ns4"]){ > new_obj=frame.document.layers[id]; > } else if(b["ie4"]){ > new_obj=frame.document.all[id]; > } else if(b["ie5"] || b["ns6"]){ > new_obj=frame.document.getElementById(id);
Re: [PHP] RE: [PHP-DB] Dynamic Website Question!
I am using frames. As mentioned in the email(s)... If you read it it shows 3 different php files. One is the index to display 1 frame and hide the second frame. The displaying frame has the outputed information and a section defined to be refreshed by the hidden frame. The hidden frame consists of the parameters to refresh frame showing and tell frame showing to update a set area with updated information. The email(s) state that, read all emails. Jerry --- Jason Sheets <[EMAIL PROTECTED]> wrote: > JeRRy wrote: > > >Hi, > > > >Okay let me explain what I want to do. > > > >Now I have a variety of queries to do to the > database > >and echo's to echo out and how to output on the PHP > >page. But I am not sure how to get my code (below) > >sucessfully to work in the example in the previous > >email. (found lower) Could someone point me in > the > >right direction please? I need the echo's shown in > >the queries to be outputed on the page as it says. > >But I need only that part of the page to be > refreshed > >once every 5 seconds and not the enitre page to > >reload.. Just the data from the database. > > > >Here is my code: > > > > > > >require('header.php'); > > > >// delete user if user=admin and action=deleteuser > > > >if ($username == $adminloginname AND > $action > >== "deleteuser") > > > >{ > > > >$sql = "DELETE from user WHERE > >naam='$delname'"; > > > >mysql_query($sql, $conn); > > > >//also delete his/her messages > > > >$sql = "DELETE from message WHERE > >sender = '$delname' OR recipient = '$delname'"; > > > >mysql_query($sql, $conn); > > > >} > > > > > > > >//get all users > > > >$sql = "SELECT naam, lastlogin FROM > >user where naam <> '$username'"; > > > >$result=mysql_query($sql, $conn); > > > >// toon lijst met users > > > >while ($myrow = > >mysql_fetch_array($result)) > > > >{ > > > >// show name of friend > > > >echo " >href=send.php?recipientname=" . > >htmlentities(urlencode($myrow[naam])) . "> >color=\"$linkcolor\">$myrow[naam]"; > > > >// count all mesages for this user > > > >$sql = "SELECT count(*) as > >aantal FROM message where recipient = > >'$username' AND sender = '$myrow[naam]'"; > > > > > >$messageresult=mysql_query($sql, $conn); > > > >// toon aantal messsages per vriend > > > >$myrow2 = > >mysql_fetch_array($messageresult); > > > >if ($myrow2[aantal] <> 0) > > > >{ > > > >// kijk of er nog nieuwe messages > zijn > > > >$sql = "SELECT > isread > >FROM message where recipient = > >'$username' AND sender = '$myrow[naam]' AND > isread=0"; > > > > > >$readmessageresult=mysql_query($sql, $conn); > > > >$myrow3 = > >mysql_fetch_array($readmessageresult); > > > >echo " >href=\"messages.php?sender=" . > >htmlentities(urlencode($myrow[naam])) . "\">"; > > > >if ($myrow3[isread] > == > >null) > > > >{ > > > >echo " >color=\"$oldmessagecolor\">(". > >$myrow2[aantal] . ")"; > > > >}else{ > > > >echo " >color=\"$newmessagecolor\">(". > >$myrow2[aantal] . ")"; > > > >} > > > >} > > > >// show online/offline status > > > >if ($timestamp - > >totime($myrow[lastlogin]) > $isonlineseconds) > > > >{ > > > >
Re: [PHP] I love/hate FrontPage - need another HTML editor.
In article <008301c0803a$ff59af20$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Murph") wrote: > But, you know, the look and feel of a site is pretty important and an > HTML editor goes a long way toward managing that part. If you can > find an editor that helps you set up some style sheets that carry > across all your pages without you having to type in all the code for > every page, you're golden. Why would you type in style sheet code on every page if you do it by hand? Doesn't that defeat half the purpose of style sheets? Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- 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] Re: PHP connecting to FIlemaker Database
In article <20010118202212.PEYN8655.femail8.sdc1.sfba.home.com@localhost>, [EMAIL PROTECTED] (Michael Stearne) wrote: > True, but what if the poster has a FMP front-end to be used with the Web > version? mySQL is non-existent on the desktop. And FMP makes building > front-ends for destop apps very easy. This is extremely true; FMP's front end is extremely easy to use, to the point that almost the most naive users can create reports at their leisure, instead of waiting on user support to create reports for them, comment on the reports, have the comments acted on, etc. We are in the process of moving all FMP databases that don't require a user-friendly front end to mySQL, but there are some where we just have to bite the bullet and keep FMP until there is a comparable SQL front end for the Macintosh. We have at least two databases that are served via print as well as via the web. In FileMaker it is trivial to make a very nice catalog of records (classes, for example), and easy to make a calendar of classes. And if our documentation person needs to make a new report for displaying a condensed form of classes, or a 3-fold report, they can just do it, without even knowing that what they're doing is called a "report" and requires a "front end". :*) Are there any easy to use SQL front ends for Unix? Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- 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: hotmail settings POP and SMTP under Mozilla
It's not a PHP question, is it ? I didn't test it with Mozilla, but with MSIE it works: Go to your Hotmail Inbox, and bookmark it. For me it was working only with M$ Windows XP not previous versions... Jerry Ger wrote: > hi guys , > Does anybody know how to set up my mail reader (Mozilla ) to > be able to read and send mail with my HOTMAIL account ? > What should I put in POP ? and SMTP servers ? > I wasn't be able to find this information .. > Thanks in advance > Ricardo -- 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] Connect to IBM DB2
To connect to Microsoft SQL 7 I'm using the following script which works fine: 0){ print "Number of rows: $number"; while($i < $number){ $dateval = mssql_result($result,$i,"dateval"); echo "$dateval"; $i++;} } ?> Now, how to connect to a DB2 database server without ODBC ? My config is: Web Server: IIS on windows 2000 Server Database Server: IBM DB2 V7.1 on windows 2000 Server PHP4 for windows Thanks. Jerry -- 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] Integer in PHP
Hi, I'm new in PHP, coming from JavaScript. In JavaScript you had the function parseInt which was really useful. For example parseInt("2.05") will return 2... How can I do that in PHP ? Thanks. Jerry -- 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: Speed comparison of PHP vs. PERL (not conclusive)
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Daniel Grace) wrote: > Comments? I was expecting the numbers to be very similiar -- rather shocked > that the PERL ended up being about 2.5x as fast as PHP was. As Rasmus says, one of the things Perl was designed for was speed. The Perl designers really take speed seriously for things like this, because Perl tends to be used for things like looping over a few million lines of text. I resisted Perl for a long time because of its somewhat odd syntax, but the first time I programmed in it seriously, the main thing that wasted my time was that I didn't believe my program was working; I was re-writing a log analysis program; the previous version, in a different language (which did other things very well but wasn't designed for looping at all) took about 6 hours to complete an analysis. It was getting to where I could foresee that the daily log analysis was going to take longer than a day! I couldn't get the Perl program to do anything. It seemed to work on the short test data, but on the full file I'd type the command and it would just drop right back to the command line. Of course the program was working fine--Perl was doing its work almost instantaneously. Each language has its advantages; I tend to use PHP for web pages, but there are times I'd like to easily switch back and forth between PHP and Perl on the same page. Perl makes great filters. Jerry -- http://www.hoboes.com/jerry/ "Give a man a fish and you feed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees (http://www.hoboes.com/jerry/Murder/) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and IBM DB2 / odbc_connect failed
Hello All, I have IBM DB2 v7.2 FP5 on a Windows 2000 Server A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install on it. When I try to use odbc_connect($dbname, $user,$password); I received the message: "Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z@ in SQLConnect in /svr/jerry/web/myphppage.php" But on the Linux server from the command line I don't have any problem to connect to the database... Do you have any idea what is the problem and how to solve it ? Thanks. Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and IBM DB2 / odbc_connect failed
Which version of Apache did you installed to solve the problem ? "Alexander Weber" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Jerry wrote: > > I have IBM DB2 v7.2 FP5 on a Windows 2000 Server > > A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install on it. > > When I try to use odbc_connect($dbname, $user,$password); > > I received the message: > > "Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z@ in SQLConnect in /svr/jerry/web/myphppage.php" > We had a similar problem connecting to Adabas via ODBC. We installed a > newer Apache version and then it worked. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and IBM DB2 / odbc_connect failed
Good news problem solved ! It was an incorrect modules somewhere and an error of settings (a missing backslash) by our Linux Expert. Jerry "Jerry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > I have IBM DB2 v7.2 FP5 on a Windows 2000 Server > A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install on it. > When I try to use odbc_connect($dbname, $user,$password); > I received the message: > "Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z@ in SQLConnect in > /svr/jerry/web/myphppage.php" > But on the Linux server from the command line I don't have any problem to > connect to the database... > Do you have any idea what is the problem and how to solve it ? > Thanks. > Jerry . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and IBM DB2 / odbc_connect failed
Good news problem solved ! It was an incorrect modules somewhere and an error of settings (a missing backslash) by our Linux Expert. Jerry "Dan Vande More" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I had the exact same problem too, reference here and you will find the answer, I assure you: http://www.phpbuilder.com/forum/read.php3?num=3&id=105752&thread=104455 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] INSERT IMAGE INTO DATABASE / PHP
Hi, I have a windows 2000 Database Server with IBM DB2 V7.2 FP5 I have a linux web server with Apache/PHP I installed IBM DB2 IMAGE Extender and enable my database for it. Now I'm uploading a file to the server and I want to copy this file in the database. I'm using the following script: $userfile=str_replace("","\\",$userfile); $TableName="imgdb"; $FieldName1="imgname";$FieldValue1="'".session_id()."'"; $FieldName2="imgval";$FieldValue2="'".$userfile."'"; $insOS="Insert Into $TableName ($FieldName1,$FieldName2) values($FieldValue1,MMDBSYS.DB2IMAGE('MyDatabase',$FieldValue2,'ASIS',1,'Thi s my image'));"; $resultOSins=odbc_exec($conn,$insOS); $userfile is the file uploaded by the user using an INPUT type=FILE I received the following error: Warning: SQL error: [IBM][CLI Driver][DB2/NT] SQL0443N Routine "MMDBSYS.DB2IMAGE" (specific name "DB2IMAGEIMPORTF1") has returned an error SQLSTATE with diagnostic text "Can't resolve import file. ". SQLSTATE=38686 , SQL state 38686 in SQLExecDirect in /svr/myfile.php But if I have $userfile="C:\myimage.jpg"; it will work (of course if the file is present on the C drive...) My question is How can I insert an image in the database without using its file name ? Can I directly send the image object to the database ? Thanks Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MSSQL DB Connect
Hi I have PHP on windows 2000 web server I would like to remote to a MS SQL database on another web server. I tried something like: But it didn't work. Please help me. Jerry -- 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] fopen wierdness
im trying to fopen a url with something like to following : fopen("something.com/something.txt", r); this returns a "0" now when i rename the doc to something.htm, ill get the contents? Jerry Bonner Systems Analyst / Web Development - email: [[EMAIL PROTECTED]] icq : [34572902] phone: [507.344.1514] fax : [507.385.6017] - Prairie Lakes Internet -- 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] fopen wierdness
acutally i found my problem, what was happening was that script1 that was on the server that file resides had that file open at the same time that scirpt2 was trying to open via http, when i change that files name, the permissions changed, and script1 was unable to open the file, and so script2 was able to :p my bad. but it leads me to another question, is there a way to get the file size of something opened via httpd? Jerry Bonner Systems Analyst / Web Development - email: [[EMAIL PROTECTED]] icq : [34572902] phone: [507.344.1514] fax : [507.385.6017] - Prairie Lakes Internet On Thu, 5 Apr 2001, Steve Werby wrote: > "Jerry" <[EMAIL PROTECTED]> wrote: > > im trying to fopen a url with something like to following : > > > > fopen("something.com/something.txt", r); > > > > this returns a "0" > > If you're trying to open an external file make sure you prepend the URL with > 'http://'. If that's a local file and it's not finding the file, make sure > the path is correct. > > > now when i rename the doc to something.htm, ill get the contents? > > Which document - the one being called by fopen() or the one containing the > PHP script? > > -- > Steve Werby > President, Befriend Internet Services LLC > http://www.befriend.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] RE: iCal parser and importing iCal to database
Just drop on over to http://phpicalendar.sourceforge.net/nuke/ and I think you'll find what you are looking for. Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Powerpoint presentations?!?
Do a search for other applications that write PPT files. I have used a number of others in the past. Perhaps they are scriptable and run in your environment. Perhaps openOffice? Example: Apple's new presentation product. I does write PPT. Their products are normally very scriptable. Also OFFICEx PowerPoint for OSX should be fairly scriptable. Apple's OSAX is very easy to understand and use. Also powerpoint plays quicktime and wm files. Might it be possible to build the file in that format and then have played back in PP? (or as alternative to PP)? Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed
How about you can get a the world's fastest PC, a 64bit server that handles 8gig of memory that can run cicles around any wintel based machine and still use all the *nix software without having rewrite anything for say $3k. That's with 10/100/1000 ethernet ports. It already has hugely more installed base than Linux (7 million) and can still run all your favorite MS software even Windows OS if so inclined-- as an additional application. There is no server/user license fees from the manufacturer. For bigger projects, thing like Oracle are available. It doesn't require a whole new staff of certified (READ $) staff to manage and maintain. In fact, $1k a year can buy you 30min 24/7 phone response and 4hr business hours on-site response time factory service. For $6k you can put fibre channel 1.25T of raid data. If you really need a GUI for all the *nix stuff and perhaps don't care to unload or compile from source, a "Server" option for $500 will give you all kinds of GUI interfaces to the settings, again- unlimited users. Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: OT-best PDF creation tool
MacOSX! Any Document, from any application... Method 1- hit command-shift-4 then spacebar and use the camera to highlite the screen, menu, dock whatever and click, a PDF will appear on your desktop of the selected. Good for lower res. Method 2- Select print from whatever application and in the print services dialog, choose output and select pdf. High resolution. Method 3- Use Acrobat, you know, the real FULL application. It has all the bells and whistles you or your client could want, hyperlinks, forms, even authentication. Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: publishing php > mysql website on cd-rom
Mike, What makes you think I would allow you to setup http services on my machine on the fly and potentially open it up to the outside world for attack? I consider that a bad idea. I would really need to know you very well to consider such privileges. Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] trans-id enabled not working?
I am experiencing a problem with NN6.2. When I link to a url from a popup the session id is not being appended to the url. The destination page check session variables and redirects to an error page. If I add the query portion "?PHPSESSID=,?php session_id() ?>" to the link string it works. However, if I use Omniweb or IE 5.2 I do doesn't redirect and session variables appear in the page as expected. I do notice that sometimes the ID string is appended and sometines it isn't. Each page's first line is session_start(). Are there some rules as to when the url rewriter intercepts the call? Jerry Artman interactivemedianet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: trans-id enabled not working?
UPDATE! I tried NN7 last night and it works without the phpsessid. Perhaps I should go back to NN4.7 and try it? I'll double check the cookie settings on all. Since my project is for schools everyhting needs to work without cookies. Jerry Artman interactivemedianet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session Variables Disappear and Reappear
New to PHP and I've checked previous posts and haven't seen similar problem. Any ideas would be appreciated. Have encounted an odd problem. Using session variables to allow users to log in and out of my site. I've created a test system on my laptop. Apache 2.0.48, PHP 4.3.4, MySQL and Windows 2000. On my test system everything works perfectly. Sessions are created and maintained as long as the browser is open. I can also destroy sessions. However when I load everything up to my site via FTP the results are very sporadic. Sessions seem to drop and reappear. While a user is logged in I display a "Logged in as: X" message at the top of the page. I can continually refresh the page and occassionally the "Logged in as" X" message will disappear showing the "Please Login Form". If I refresh again (without logging in) the page shows the user is again "Logged in". Here's the script that I use to log users in: "; mysql_select_db("xx_salkehatchie",$conn) or die(mysql_error()); //create and issue the query $sql = "select userid, password, privs from userlist where userid = '$_POST[userid]' AND password = '$_POST[password]'"; //echo "USERID is $_POST[userid]"; //echo "PASSWORD is $_POST[password]"; //echo "SQL is $sql"; $result = mysql_query($sql,$conn) or die(mysql_error()); //echo "Result is $result"; $rows = mysql_num_rows($result); //echo "Number of Rows are $rows"; //get the number of rows in the result set; should be 1 if a match if (mysql_num_rows($result) == 1) { //if authorized, get the values set the $_SESSION Variables -- userid, password and privs $_SESSION[userid] = $_POST[userid]; $_SESSION[password] = $_POST[password]; $_SESSION[privs] = mysql_result($result, 0, 'privs'); //Direct user to members page header("Location: Salkehatchie_Members_Home.php"); exit; } else { //redirect back to login form if not authorized header("Location: Salkehatchie_Home.php"); exit; } ?> I start off each webpage with the following script: http://www.salkehatchiehuntersville.com/Salkehatchie_Home.php and log in using test/test as userid/password. When logged in go back to the home page and then continually refresh that page. You will see that that the user moves in and out of a logged in status. This will also show up on other pages but since this site is under construction it's safest to stick to the HOME page. Other possibly helpful information. Web Hosting site is BlueDomino. Thanks for your help. Jerry Kita -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Session Variables Disappear and Reappear
For those interested I was able to get to the bottom of this issue. My hosting supplier uses multiple servers to do load balancing. As such the folder in which the session variables were stored was stored in a /tmp file on each of the servers. That explained why the session variables would randomly disappear and reappear. It also explained why my single-server "test" system experienced no problems. The solution was to set up a /tmp folder for the session variables in my public_html folder. When I did this everything worked perfectly. I'm not a professional programmer. I started this website very recently on behalf of a project we do at our church. I'd be interested in others opinions and thoughts regarding how other hosting services handle this issue. Should I have expected to create the /tmp folder within my public_html folder or do other hosting services provide a different approach? Thanks and Happy New Year to everyone. Jerry Kita "Jerry Kita" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > New to PHP and I've checked previous posts and haven't seen similar problem. > Any ideas would be appreciated. > > Have encounted an odd problem. Using session variables to allow users to log > in and out of my site. I've created a test system on my laptop. Apache > 2.0.48, > PHP 4.3.4, MySQL and Windows 2000. On my test system everything works > perfectly. Sessions are created and maintained as long as the browser is > open. > I can also destroy sessions. > > However when I load everything up to my site via FTP the results are very > sporadic. Sessions seem to drop and reappear. While a user is logged in I > display a "Logged in as: X" message at the top of the page. I can > continually refresh the page and occassionally the "Logged in as" X" > message will disappear showing the "Please Login Form". If I refresh again > (without logging in) the page shows the user is again "Logged in". > > Here's the script that I use to log users in: > > error_reporting (E_ALL ^ E_NOTICE); > //check for required fields from the form > if ((!$_POST[userid]) || (!$_POST[password])) { > header("Location: Salkehatchie_Home.php"); > exit; > } > session_start(); > //connect to server and select database > $conn = mysql_connect("x.x.x.x", "xx", "x") or > die(mysql_error()); > //echo "Connection is $conn "; > mysql_select_db("xx_salkehatchie",$conn) or die(mysql_error()); > //create and issue the query > $sql = "select userid, password, privs from userlist where userid = > '$_POST[userid]' AND password = '$_POST[password]'"; > //echo "USERID is $_POST[userid]"; > //echo "PASSWORD is $_POST[password]"; > //echo "SQL is $sql"; > $result = mysql_query($sql,$conn) or die(mysql_error()); > //echo "Result is $result"; > $rows = mysql_num_rows($result); > //echo "Number of Rows are $rows"; > //get the number of rows in the result set; should be 1 if a match > if (mysql_num_rows($result) == 1) { >//if authorized, get the values set the $_SESSION Variables -- userid, > password and privs >$_SESSION[userid] = $_POST[userid]; >$_SESSION[password] = $_POST[password]; >$_SESSION[privs] = mysql_result($result, 0, 'privs'); >//Direct user to members page >header("Location: Salkehatchie_Members_Home.php"); >exit; >} else { >//redirect back to login form if not authorized >header("Location: Salkehatchie_Home.php"); >exit; > } > ?> > > I start off each webpage with the following script: > > //Check for existence of Valid Login ID > error_reporting (E_ALL ^ E_NOTICE); > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); > header("Cache-Control: no-store, no-cache, must-revalidate "); > header("Cache-Control: post-check=0, pre-check=0", false); > header("Pragma: no-cache"); > session_start(); > if (isset($_SESSION[userid])) { >$validlogon = "YES"; >} else { >$validlogon = "NO"; >} > echo $validlogon //test to see if user has previously logged on > > This all works perfectly on my test system but creates problems at my site. > If anyone would like to see this for themselves go to the following site: > > http://www.salkehatchiehuntersville.com/Salkehatchie_Home.php > > and log in using test/test as userid/password. When logged in go back to the > home page and then continually refresh that page. You will see that that the > user moves in and out of a logged in status. This will also show up on other > pages but since this site is under construction it's safest to stick to the > HOME page. > > Other possibly helpful information. Web Hosting site is BlueDomino. > > Thanks for your help. > > Jerry Kita > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] more shopping cart crap
I've searched high and low for a pre- built cart that suites my needs, and as of yet have been unsuccessful, so now I am looking to build a shopping cart using php3 and MySQL, I'd like to use php4, but as of the moment, it isn't an option. if anyone knows of any tutorials or anywhere to get started, please let me know. Regards, Jerry Lake -- 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] How can I get a random number
We may as we set it up in space to minimalize gravity and friction -can't be adding any predictable forces ;) Jerry Lake -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 3:19 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How can I get a random number Through recognition technologies this will work nicely, am looking forward to it. The key is using oversized ping pong balls as to allow oversized letters, about a 8" radius ping pong ball will work. Be sure to use black ink. Also, keep in mind that ink increases weight so use balancing ink, similar to what one uses for tires (although tires use lead, not ink). The balancing ink should be transparent as to create a square plot, this way the ink will be evenly distributed on each ping pong ball as to create a truly random result. Granted it's a subtle difference but we DO want a random result. The trick is getting the camera to read the ping pong ball, read the manual on that. Some have inserted transmitters within the balls but that creates needless costs so it's not suggested. philip On Wed, 10 Jan 2001, Cal Evans wrote: > Put a web cam on it and we've got a winner! :) > > Cal > > -Original Message- > From: Monte Ohrt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 10, 2001 4:21 PM > To: [EMAIL PROTECTED]; Brandon Orther > Subject: Re: [PHP] How can I get a random number > > > You can blow some ping pong balls around in an enclosure and pick one, > that's pretty random :) > > For the next best thing to "random", you can use the rand() function in > PHP. > > Brandon Orther wrote: > > > > How can I get a random number > > > > Thank you, > > > > > > Brandon Orther > > WebIntellects Design/Development Manager > > [EMAIL PROTECTED] > > 800-994-6364 > > www.webintellects.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] > > > > -- > 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] -- 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] How can I get a random number
I'll go ahead and get that investment money rolling, as soon as I see my return from mindpixel...haha! I hear that MIR can be had for about the cost of a decent case of vodka though Jerry Lake -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 3:36 PM To: Jerry Lake Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How can I get a random number Good idea! I hear MIR is for sale. This could make a good PHP random function, one that always works! Let's pool our resources and get on it. Great thing is, no need for these mysterious seeds. philip On Wed, 10 Jan 2001, Jerry Lake wrote: > We may as we set it up in space > to minimalize gravity and friction > -can't be adding any predictable forces ;) > > Jerry Lake > > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 10, 2001 3:19 PM > To: Cal Evans > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] How can I get a random number > > > > Through recognition technologies this will work nicely, am looking forward > to it. The key is using oversized ping pong balls as to allow oversized > letters, about a 8" radius ping pong ball will work. Be sure to use black > ink. Also, keep in mind that ink increases weight so use balancing > ink, similar to what one uses for tires (although tires use lead, not > ink). The balancing ink should be transparent as to create a square > plot, this way the ink will be evenly distributed on each ping pong ball > as to create a truly random result. Granted it's a subtle difference but > we DO want a random result. > > The trick is getting the camera to read the ping pong ball, read the > manual on that. Some have inserted transmitters within the balls but that > creates needless costs so it's not suggested. > > philip > > On Wed, 10 Jan 2001, Cal Evans wrote: > > > Put a web cam on it and we've got a winner! :) > > > > Cal > > > > -Original Message- > > From: Monte Ohrt [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 10, 2001 4:21 PM > > To: [EMAIL PROTECTED]; Brandon Orther > > Subject: Re: [PHP] How can I get a random number > > > > > > You can blow some ping pong balls around in an enclosure and pick one, > > that's pretty random :) > > > > For the next best thing to "random", you can use the rand() function in > > PHP. > > > > Brandon Orther wrote: > > > > > > How can I get a random number > > > > > > Thank you, > > > > > > > > > Brandon Orther > > > WebIntellects Design/Development Manager > > > [EMAIL PROTECTED] > > > 800-994-6364 > > > www.webintellects.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] > > > > > > > > -- > > 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] > > > > -- > 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]
RE: [PHP] ik
l Jerry Lake -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] ik k - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, January 11, 2001 5:01 PM Subject: [PHP] ik j -- 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]
[PHP] advise (MyCart)
I'm currently working on an installation of rosenet's MyCart and I am curious if anyone has used this cart and modified it to include product options, size color etc.. my intended end product is an online ordering system for a pizza place, so essentially my options will be pizza sizes and toppings, if anyone has any ideas on how to go about what I'm trying I'd appreciate it. Jerry Lake -- 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] CodeCharge
Does anyone know if CodeCharge create SQL dump files as well as the code, or do you have to create them for your specific needs? Jerry Lake -- 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] regex
is it possible with regex to change one or more text characters followed by a space into the same characters followed by a tab? Jerry Lake -- 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] regex
and how would I go about that? Jerry Lake -Original Message- From: Cynic [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:10 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: Re: [PHP] regex yes At 23:54 12.1. 2001, Jerry Lake wrote the following: -- >is it possible with regex to >change one or more text characters >followed by a space into the same >characters followed by a tab? > >Jerry Lake > > >-- >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] --end of quote-- Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [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]
RE: [PHP] regex
I have a small phone directory bust the name listings are combined for example Schwartz Bob & Amelia 555-1212Oxford Scirkin Bill555-1213Brooks I need to add a tab or a comma after the lastname so I can have as a separate field when I dump it into MySQL and there is about 3500 records and I'd hate to have to do it by hand any ideas? Jerry Lake- [EMAIL PROTECTED] -Original Message- From: Cynic [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:25 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: RE: [PHP] regex depends. is the set of strings preceeding the space limited and known, or is it something like [^abc]{3,12} ? At 00:13 13.1. 2001, Jerry Lake wrote the following: -- >and how would I go about that? > >Jerry Lake > >-Original Message- >From: Cynic [mailto:[EMAIL PROTECTED]] >Sent: Friday, January 12, 2001 3:10 PM >To: Jerry Lake; [EMAIL PROTECTED] >Subject: Re: [PHP] regex > > >yes > >At 23:54 12.1. 2001, Jerry Lake wrote the following: >-- >>is it possible with regex to >>change one or more text characters >>followed by a space into the same >>characters followed by a tab? >> >>Jerry Lake >> >> >>-- >>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] >--end of quote-- > > > > >Cynic: > >A member of a group of ancient Greek philosophers who taught >that virtue constitutes happiness and that self control is >the essential part of virtue. > >[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] --end of quote-- Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [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] -- 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] regex
Bolgrihn Michael555-5566142 Hillyer St Oxford Bollenbach Gary V 555-5078315 Freedom Rd Oxford Bonaguidi Daniel555-5155N4663 10th Av Montello Bonnett Agatha & John 555-5363547 Fawn Ct Oxford Bonnett Bernard & Norma 555-4360116 E Ormsby St Oxford Bonnett Bob & Eleanor 555-5627527 Fern Av Oxford Here is a sample from the listing there are numbers in the address as well. $NewString = ereg_replace("([[:alpha:]]+) ", "\\1".",", $test); that works to an extent, except that it adds the comma after every word that is followed by one space and not just the first occurance Jerry Lake -Original Message- From: Cynic [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:41 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: RE: [PHP] regex looks like you need to find all the spaces _before_ the _first_ digit on the row, and _after_ the _last_ digit on the row. does that fit your data? are there no other numbers than the telephone ones? At 00:29 13.1. 2001, Jerry Lake wrote the following: -- >I have a small phone directory >bust the name listings are combined >for example >Schwartz Bob & Amelia 555-1212Oxford >Scirkin Bill555-1213Brooks > >I need to add a tab or a comma after the >lastname so I can have as a separate field >when I dump it into MySQL and there is about >3500 records and I'd hate to have to do it by hand >any ideas? > >Jerry Lake- [EMAIL PROTECTED] > >-Original Message- >From: Cynic [mailto:[EMAIL PROTECTED]] >Sent: Friday, January 12, 2001 3:25 PM >To: Jerry Lake; [EMAIL PROTECTED] >Subject: RE: [PHP] regex > > >depends. is the set of strings preceeding the space limited >and known, or is it something like [^abc]{3,12} ? > > >At 00:13 13.1. 2001, Jerry Lake wrote the following: >-- >>and how would I go about that? >> >>Jerry Lake >> >>-Original Message- >>From: Cynic [mailto:[EMAIL PROTECTED]] >>Sent: Friday, January 12, 2001 3:10 PM >>To: Jerry Lake; [EMAIL PROTECTED] >>Subject: Re: [PHP] regex >> >> >>yes >> >>At 23:54 12.1. 2001, Jerry Lake wrote the following: >>-- >>>is it possible with regex to >>>change one or more text characters >>>followed by a space into the same >>>characters followed by a tab? >>> >>>Jerry Lake >>> >>> >>>-- >>>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] >>--end of quote-- >> >> >> >> >>Cynic: >> >>A member of a group of ancient Greek philosophers who taught >>that virtue constitutes happiness and that self control is >>the essential part of virtue. >> >>[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] >--end of quote-- > > > > >Cynic: > >A member of a group of ancient Greek philosophers who taught >that virtue constitutes happiness and that self control is >the essential part of virtue. > >[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] > > > >-- >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] --end of quote-- Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [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]
[PHP] looping
excuse my density today my brain is still in weekend mode how would I make this loop put 4 or 5 items (haven't decided) per line instead of just one item and the checkbox on each line? echo ""; while($myrow = mysql_fetch_array($result2)) { $name = $myrow["name"]; $personal_cost = $myrow["personal_cost"]; $small_cost = $myrow["small_cost"]; $large_cost = $myrow["large_cost"]; $category = $myrow["category"]; echo ""; echo ""; echo $name; echo ""; echo "".$cost.""; echo ""; } echo ""; Jerry Lake -- 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] looping
Thanks, (Ignacio) I came up with this $counter++; if ($counter > "4") { $counter = "1"; echo ""; } Jerry Lake -Original Message- From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 1:22 PM To: Jerry Lake Cc: PHP List Subject: Re: [PHP] looping On Mon, 15 Jan 2001, Jerry Lake wrote: > excuse my density today > my brain is still in weekend mode > > how would I make this loop put 4 or 5 items (haven't decided) > per line instead of just one item and the checkbox on each line? > > > echo ""; > > while($myrow = mysql_fetch_array($result2)) > { > $name = $myrow["name"]; > $personal_cost = $myrow["personal_cost"]; > $small_cost = $myrow["small_cost"]; > $large_cost = $myrow["large_cost"]; > $category = $myrow["category"]; > > echo ""; > echo ""; > echo $name; > echo ""; > echo "".$cost.""; > echo ""; > } > echo ""; > > > Jerry Lake > Join the club :) "; echo ""; $i=0; $numrows=mysql_num_rows($result2); while($myrow = mysql_fetch_array($result2)) { ++$i; ... echo ""; ... echo ""; if (!($i%PERLINE) and ($numrows!=$i)) { echo(""); }; }; echo ""; echo ""; ?> -- Ignacio Vazquez-Abrams <[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]
[PHP] checkboxes into MySQL
I know this has been discussed, but it messing with me. in a script I'm working on I pull out an array of checkboxes from a database, how do I store what people select back to the DB all I end up with is the last selection of the array. Jerry Lake -Original Message- From: jeremy brand [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 1:57 PM To: WreckRman2 Cc: 'Php-General@Lists. Php. Net' Subject: Re: [PHP] Array... for ($i=100; $i>0; $i++) print "\n"; But, I presume you would rather do this: for ($i=100; $i>0; $i++) print "\n"; because I can't imagine why you would want to escape double quotes in HTML. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "" -- Quoted from Yahoo! homepage, http://www.yahoo.com On Mon, 15 Jan 2001, WreckRman2 wrote: > Date: Mon, 15 Jan 2001 16:48:21 -0500 > From: WreckRman2 <[EMAIL PROTECTED]> > To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]> > Subject: [PHP] Array... > > > How can I do an array like below 100-1? > > > > > > > to > > > > > > WreckRman2 > Combat Flight Center > http://www.combatfs.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] -- 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] checkboxes into MySQL(trying again)
sorry about that, I forgot to erase the old post info here is a chunk of the code I am using //inclusion of pizza toppings from DB $query = ("SELECT * FROM toppings"); $result2 = mysql_db_query($DBName, $query) or die("Error in MySQL query"); echo ""; echo ""; $colors = array( '#e4e4e4', '#ff' ); $i = 0; while($myrow = mysql_fetch_array($result2)) { $counter++; if ($counter > "4") { $counter = "1"; echo ""; } $name = $myrow["name"]; $personal_cost = $myrow["personal_cost"]; $small_cost = $myrow["small_cost"]; $medium_cost = $myrow["medium_cost"]; $large_cost = $myrow["large_cost"]; $category = $myrow["category"]; echo "\r\n"; echo "".$name.""; echo "\r\n"; } if ($counter < 3) { while ($counter < 3) { echo " "; $counter++; } } echo ""; echo ""; // memory flush mysql_free_result($result2); //end topping section Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] RE: if php is so great, why is it so hard to make it work?
That is probably a good way not to get much help however, there are install kits out there that do all of the work for you. phpTriad is one. Jerry Lake -Original Message- From: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: [PHP] if php is so great, why is it so hard to make it work? if php is so great, why is it so hard to make it work? please...someone ...for win2000 nt 5.0 ...I have apache, iis installed ...nothing's working, did changes to php.ini, my registry...httpd.conf nothing! nothing! nothig!!! -- 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]
RE: [PHP] string replace
Here is a bad way to do it, but it works Jerry Lake -Original Message- From: Tait Grove [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:01 PM To: PHP GENERAL Subject: [PHP] string replace How can I strip everything past a certain character in a string? i.e.: $foo = "test.gif"; // strip past the .gif $foo = "test"; // again $foo2 = "test.jpeg"; // strip past the .jpeg $foo2 = "test"; Tait -- 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] MySQL and Array Problem
I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass"); $name = implode(",", $name); mysql("$DBName","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')"); this works fine, it stores the comma delimited info into the table. however when I extract it and try to count($name) it comes back as 1 and if I try to implode it it says Warning bad argument to implode() and if I do this echo "".$name.""; $name_test = explode("," $name); echo $name_test; the names item1,item2,item3 is returned, but I get a parse error on the explode, what am I missing...? Jerry Lake -- 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] MySQL and Array Problem
Never mind, I caught my syntax error it works fine now. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL and Array Problem I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass"); $name = implode(",", $name); mysql("$DBName","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')"); this works fine, it stores the comma delimited info into the table. however when I extract it and try to count($name) it comes back as 1 and if I try to implode it it says Warning bad argument to implode() and if I do this echo "".$name.""; $name_test = explode("," $name); echo $name_test; the names item1,item2,item3 is returned, but I get a parse error on the explode, what am I missing...? Jerry Lake -- 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]
RE: [PHP] Ultimate Editor
I just installed Bluefish a few days ago. I haven't had a lot of time to mess with it, but it seems like a Linux variety of homesite (which is great with me) I'll give it a week or two and see what I think. anyone else? Jerry Lake -Original Message- From: Scott Gerhardt [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:06 PM To: [EMAIL PROTECTED]; Chris Aitken Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Ultimate Editor Has anyone tried Bluefish for Linux? > -Original Message- > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:02 PM > To: Chris Aitken > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Ultimate Editor > > > look into nedit. > > It does very well on linux, and I hear there's a Windows port. > I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg > > nedit website is http://www.nedit.org/ > > It doesn't have a publish directly to the web function, nor does > it have a built in server- but I just use thttpd compiled with > php support for that- and enable directory listings so I can > browse my working directory and select the file i want to view in action. > > Publishing directly to the web is nice- and I may look into > adding it to nedit (I'm planning to add some features- though I > am NOT the maintainer) but i personally never liked all in one > products. Maybe a button to interface with the scp already on the > users system... > > On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > > > At 06:47 PM 18/01/2001, you wrote: > > > > >What I'd like an editor to do for me is help out with how the > page looks. > > >One I set up a page that looks half-way decent - even if I use stock > > >templates or style sheets - I can always plop the code in > later by hand and > > >that's no biggie. It's just that initial setting up of tables > and stuff that > > >is kind of tedious and I want to get away from that so I can > concentrate on > > >the code. > > > > > > Personally, I would love to find an editor which had colour coded code > > ability, a nice windows cut/paste/undo/redo feature, much akin to say > > Homesite, but the most important thing would be that it can simulate a > > telnet connection (or any connection for that matter) to the > web server im > > working on and use it just like the current editors > view/use/display the > > local hard drive. When you save a file, it instantly saves it on the > > server. Ive seen some editors which have a supposed publish > option but they > > are either very lame, or made by microsoft (nuff said). > > > > I like the ability to have a simple keystroke(s) to instantly > update the > > file so I can reload it direct off the webserver and test it > out. Infact, I > > didnt mind how nedit worked when I was running my FreeBSD box > at home, but > > it too couldnt allow me to work on remote files live. > > > > > > > > Chris > > > > > > -- > > 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] > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Michael A. Peters > Abriasoft Senior Developer > > (510) 623-9726x357 > Fax: (510) 249-9125 > -- > 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] -- 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] date format for MySQL
I have a field in my MySQL DB that is "DATE" on the form that populates this field, various people will by typing in dates in various formats how to I convert say 2/21/01 or 02-21-2001 etc... to 2001-02-21(MySQL Format) Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] archive location
What is the newsgroup archive location ? marc.themaesgroup.something ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] php quit working
I just installed php as an apache DSO module on the first try of a phpinfo(); it worked just as it should, then I loaded phpmyadmin and now when I make a request for a php file it tries to download, my httpd.conf file seems to be in order...any ideas? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] php quit working
I used a .php extension which phpmyadmin uses also it is rather odd, it worked until I loaded phpmyadmin (i unloaded it, but nothing fixed) Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 3:32 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: Re: [PHP] php quit working Addressed to: "Jerry Lake" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Jerry Lake" <[EMAIL PROTECTED]> Mon, 26 Feb 2001 12:58:35 -0800 > > I just installed php as an apache DSO module > on the first try of a phpinfo(); it worked > just as it should, then I loaded phpmyadmin > and now when I make a request for a php file > it tries to download, my httpd.conf file seems > to be in order...any ideas? What file extension did you use on your phpinfo() attempt? What file extension does phpMyAdmin use? Are they different> You may need to add php3 to the AddType application/x-httpd-php declaration somewhere in your Apache configuration. Rick Widmer Internet Marketing Specialists http://www.developersdesk.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]
[PHP] regex help
how do I select the first space after some alpha-numeric characters? I can ^\D\s to get the characters and the space, but how can I select the space only? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] regex frustration
I've tried and tried to no avail, can someone assist I need to select the first space in a line like the following Nelson Bob and Mary, 123 Street st., Ashton, 555-1212 I need to replace the space between Nelson and Bob with a comma so I can separate the first and last names in my DB ^\D*\s will select the first name and the space, but I just need the space. any ideas? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] on the list yesterday regarding mysql time
I know this was on the list yesterday, but I for some reason erased it. I have an online form that I would like to have record the time submitted and recorded into a MySQL date field, how the hell do I use the date and mktime functions to make the date compatible with the MySQL -00-00 format? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: george [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] passing variables again not really sure I understand, but what I want to do is take the HTML generated in step 3 and place it between the tags in the last page where the code is displayed ie Title mr mrs Missnameaddressaddress2message that is the code from step 3 how do I get that to display on the next page. TIA george -- 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]
[PHP] RE: on the list yesterday regarding mysql time
never mind anything below my signature I forgot to erase it, damn non-thread capable email... Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] on the list yesterday regarding mysql time
Thanks, that worked great. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: John Huggins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 2:49 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: RE: [PHP] on the list yesterday regarding mysql time Forget about the PHP functions and do this: $query = "INSERT INTO tablename "; $query .= "SET field1 = '$field1', "; $query .= "field2 = '$field2', "; $query .= "datesubmitted = NOW(); Let MySQL simply do this for you with the NOW() SQL command. > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 07, 2001 5:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] on the list yesterday regarding mysql time > > > I know this was on the list yesterday, > but I for some reason erased it. > > I have an online form that I would like > to have record the time submitted and > recorded into a MySQL date field, how > the hell do I use the date and mktime > functions to make the date compatible > with the MySQL -00-00 format? > > Jerry Lake- [EMAIL PROTECTED] > Web Designer > Europa Communications - http://www.europa.com > Pacifier Online - http://www.pacifier.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] populate select box with contents of a file?
I would like to be able to populate the options of a select box with the contents of my images directory online so I can select the image I want to go with the form I am filling out. what functions do I need to look into to figure this one out? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] populate select box with contents of a file?
Ok, I am using this modified code from the manual. It works great, but how do I modify it further to only show .jpg files ? "; while (false!==($file = readdir($handle))) { if ($file != "." && $file != "..") { echo ""; echo $file; echo "\n\r"; } } echo ""; closedir($handle); ?> http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Sean R. Bright [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 4:50 PM To: 'Jerry Lake'; 'Henrik Hansen'; 'php general' Subject: RE: [PHP] populate select box with contents of a file? Take a look at dir() and readdir(). Those along with echo() should help you out. Sean > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 07, 2001 7:40 PM > To: Henrik Hansen; php general > Subject: [PHP] populate select box with contents of a file? > > > I would like to be able to populate > the options of a select box with the > contents of my images directory online > so I can select the image I want to > go with the form I am filling out. > what functions do I need to look into > to figure this one out? > > Jerry Lake- [EMAIL PROTECTED] > Web Designer > Europa Communications - http://www.europa.com > Pacifier Online - http://www.pacifier.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] -- 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] populate select box with contents of a file?
Thanks, that works great. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 10:13 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] populate select box with contents of a file? "; while (false!==($file = readdir($handle))) { // new code here $cExt = explode( ".", $file ); // and here if ($file != "." && $file != ".." && ( strtolower( $cExt[1] ) == "jpg" ) { echo ""; echo $file; echo "\n\r"; } } echo ""; closedir($handle); ?> At 10:04 AM 3/8/01 -0800, Jerry Lake wrote: >Ok, I am using this modified code from the >manual. It works great, but how do I modify >it further to only show .jpg files ? > > >$handle=opendir('.'); > echo ""; >while (false!==($file = readdir($handle))) { > if ($file != "." && $file != "..") { > echo " echo "value=".$file.">"; > echo $file; > echo "\n\r"; > } >} > echo ""; >closedir($handle); >?> > >Jerry Lake- [EMAIL PROTECTED] >Web Designer >Europa Communications - http://www.europa.com >Pacifier Online - http://www.pacifier.com > > >-Original Message- >From: Sean R. Bright [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, March 07, 2001 4:50 PM >To: 'Jerry Lake'; 'Henrik Hansen'; 'php general' >Subject: RE: [PHP] populate select box with contents of a file? > > > >Take a look at dir() and readdir(). Those along with echo() should help you >out. > >Sean > > > -Original Message- > > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, March 07, 2001 7:40 PM > > To: Henrik Hansen; php general > > Subject: [PHP] populate select box with contents of a file? > > > > > > I would like to be able to populate > > the options of a select box with the > > contents of my images directory online > > so I can select the image I want to > > go with the form I am filling out. > > what functions do I need to look into > > to figure this one out? > > > > Jerry Lake- [EMAIL PROTECTED] > > Web Designer > > Europa Communications - http://www.europa.com > > Pacifier Online - http://www.pacifier.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] > > > >-- >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] -- 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] $HTTP_POST_VARS
You're not setting a value for the first variable ie.."Name" unless you put something in the text box to represent the variable it will come across as empty. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: mat t [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP] $HTTP_POST_VARS Please can you help: I can't send duplicate input types to $HTTP_POST_VARS For example: ---HTML--- First person: NAME Phone No. Second Person: NAME Phone No. --- Then when I use : reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo "$key => $val\n"; } Here is the output Output-- Name => Name_type => textbox Phone => Phone_type => textbox What happened to the Second person? How can I stop it ignoring duplicates and insert in the array 1 by 1? _ Pick up your email anywhere in the world ---> http://www.remail.net -- 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]
RE: [PHP] RNV PHP=o.k.....Apache=o.k..... So... What the "#$$% : )
view the php file through localhost on your browser with apache running http://localhost/whateverfile.php make sure the file is somewhere in your document root. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Rodolfo NAva [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: [PHP] RNV PHP=o.k.Apache=o.k. So... What the "#$$% : ) Hi. I installed Apache... no problem... the classic MSDOS window with... Apache running and the path for Php4. Php installed, I made a Hola and saved it as test.php then... I went to MsDos... c: php test.php [Enter] I got a large list with html tags... ok... so PHP running well But if I want to run it from windows... I mean, two clicks to test.php then comes that hateful window with... with which program would you like to open this file? So I can´t get an answer of html What´s wrong...I changed the httpd.conf file... something wrong there? I hope you can help me... if I can make this thing working... maybe I will hold my job and maybe my boss's job... :0) thank you. Rodolfo Nava __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.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]
[PHP] file upload tutorial.
Anyone know where I can find a file upload tutorial ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] file upload tutorial.
With the info in the manual (thanks) I keep getting this error Warning: Unable to create '/www/htdocs/uploads': Is a directory in /www/workbox/htdocs/upload.php on line 4 I have the directory chmoded to 777 what is my problem, aside from general idiocy... Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Aaron Tuller [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 1:17 PM To: Jerry Lake; [EMAIL PROTECTED] Subject: Re: [PHP] file upload tutorial. does anyone look at the manual anymore? there's TONS of info at: http://www.php.net/manual/en/features.file-upload.php -aaron At 1:10 PM -0800 3/9/01, Jerry Lake wrote: >Anyone know where I can find a file upload >tutorial ? > >Jerry Lake- [EMAIL PROTECTED] >Web Designer >Europa Communications - http://www.europa.com >Pacifier Online- http://www.pacifier.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]
RE: [PHP] Advanced PHP
The chicken did. as the Chicken is an actual chicken and the egg is a potential chicken. Actuality precedes potentiality Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Keith Vance [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 3:14 PM To: Kath Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] Subject: Re: [PHP] Advanced PHP What came first the chicken or the egg? Keith On Fri, 9 Mar 2001, Kath wrote: > Yeah. I even see some PHP book authors, like Julie Meloni here on this > list. > > There is never a question, no matter how retarded, that this list or #php on > irc.openprojects.net has never been able to answer. > > - Kath > > > - Original Message - > From: "Krznaric Michael" <[EMAIL PROTECTED]> > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, March 09, 2001 5:11 PM > Subject: RE: [PHP] Advanced PHP > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > Mike > > > > > > -Original Message- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 4:54 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Advanced PHP > > > > > > Does anyone know of any other lists that are a little more advanced, > > And has a little less traffic? I am not the end all be all by any means > of > > programming or PHP. I just want to know where the big boys hang out > > and learn some secrets that require some understanding. > > > > Rick > > ## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ## > > > > > > -- > > 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] > > > > > -- > 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] -- 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] Advanced PHP
I'm nearly certain they came from smallish chicken shaped rocks Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Rick St Jean [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 4:20 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Advanced PHP Of course... where did you think they came from... monkeys? At 04:01 PM 3/9/01 -0800, Keith Vance wrote: >Where did the chicken come from, God? > >Keith > >On Fri, 9 Mar 2001, Jerry Lake wrote: > > > The chicken did. > > > > as the Chicken is an actual chicken > > and the egg is a potential chicken. > > Actuality precedes potentiality > > > > Jerry Lake- [EMAIL PROTECTED] > > Web Designer > > Europa Communications - http://www.europa.com > > Pacifier Online - http://www.pacifier.com > > > > > > -Original Message- > > From: Keith Vance [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 3:14 PM > > To: Kath > > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > > Subject: Re: [PHP] Advanced PHP > > > > > > What came first the chicken or the egg? > > > > Keith > > > > On Fri, 9 Mar 2001, Kath wrote: > > > > > Yeah. I even see some PHP book authors, like Julie Meloni here on this > > > list. > > > > > > There is never a question, no matter how retarded, that this list or #php > > on > > > irc.openprojects.net has never been able to answer. > > > > > > - Kath > > > > > > > > > - Original Message - > > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > > Sent: Friday, March 09, 2001 5:11 PM > > > Subject: RE: [PHP] Advanced PHP > > > > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > > > Mike > > > > > > > > > > > > -Original Message- > > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, March 09, 2001 4:54 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] Advanced PHP > > > > > > > > > > > > Does anyone know of any other lists that are a little more advanced, > > > > And has a little less traffic? I am not the end all be all by any > means > > > of > > > > programming or PHP. I just want to know where the big boys hang out > > > > and learn some secrets that require some understanding. > > > > > > > > Rick > > > > ## > > > > # Rick St Jean, > > > > # [EMAIL PROTECTED] > > > > # President of Design Shark, > > > > # http://www.designshark.com/ > > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > > # Tel: 905-684-2952 > > > > ## > > > > > > > > > > > > -- > > > > 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] > > > > > > > > > > > > > -- > > > 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] > > > > > > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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]
[PHP] upload file problems
Using this code I keep getting the following error. the directory exists and is chmoded to 777, what am I doing wrong ? Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in /www/workbox/htdocs/upload.php on line 4 Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] write form data to a text file
How can I write the form data a user fills out and send it to a text file? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 12:13 PM To: Pierre-Yves Lemaire Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Getting path of script Hi, Thanks for all the suggestions. I worked out a fix in the meantime: $path = strstr(strrev($SCRIPT_FILENAME), '/'); echo strrev($path); Cheers, Jord On Tuesday 13 March 2001 12:35, you wrote: > check out, > dirname() // Returns directory name component of path > > py > > - Original Message - > From: Hardy Merrill <[EMAIL PROTECTED]> > To: Jordan Elver <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, March 13, 2001 5:21 PM > Subject: Re: [PHP] Getting path of script > > > How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"] > > like this: > > > >echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"] > > . > > "]"; > > >if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"], > > $matches)) { > > > echo "Found $matches[1]"; > >} > > > > HTH. > > > > -- > > Hardy Merrill > > Mission Critical Linux, Inc. > > http://www.missioncriticallinux.com > > > > Jordan Elver [[EMAIL PROTECTED]] wrote: > > > Hi, > > > I want to get the path of a script. I know about > > > HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: > > > > > > /phpcode/misc/phpinfo.php > > > > > > But I want to strip off the file name and just have the directory path, > > like: > > > /phpcode/misc/ > > > > > > Any ideas? > > > > > > Jord > > > > > > -- > > > 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] -- 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]
RE: [PHP] write form data to a text file
This goes along with my previous question I don't see a php function to make a file I am trying to use an online form to create an addweb profile.ini file to in turn be emailed to my customer service dept. so they can save the file into the addweb batch directory for an import and autorun thus saving the time of re-typing all of the form information. when my form gets filled out I need to be able to create a new file, write text to it from the variables and then email it to a CSR any ideas on where to start with this are greatly appreciated. Thanks, Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] write form data to a text file How can I write the form data a user fills out and send it to a text file? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 12:13 PM To: Pierre-Yves Lemaire Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Getting path of script Hi, Thanks for all the suggestions. I worked out a fix in the meantime: $path = strstr(strrev($SCRIPT_FILENAME), '/'); echo strrev($path); Cheers, Jord On Tuesday 13 March 2001 12:35, you wrote: > check out, > dirname() // Returns directory name component of path > > py > > - Original Message - > From: Hardy Merrill <[EMAIL PROTECTED]> > To: Jordan Elver <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, March 13, 2001 5:21 PM > Subject: Re: [PHP] Getting path of script > > > How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"] > > like this: > > > >echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"] > > . > > "]"; > > >if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"], > > $matches)) { > > > echo "Found $matches[1]"; > >} > > > > HTH. > > > > -- > > Hardy Merrill > > Mission Critical Linux, Inc. > > http://www.missioncriticallinux.com > > > > Jordan Elver [[EMAIL PROTECTED]] wrote: > > > Hi, > > > I want to get the path of a script. I know about > > > HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: > > > > > > /phpcode/misc/phpinfo.php > > > > > > But I want to strip off the file name and just have the directory path, > > like: > > > /phpcode/misc/ > > > > > > Any ideas? > > > > > > Jord > > > > > > -- > > > 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] -- 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] -- 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] attach file from server to an email
Ok, I created a form handler that writes the .ini file that I need for an auto-import, now what should I look at attach it to an email the file is just ascii text Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] email a file from server
Is there an easy way to email a file that resides on the server to a given email address ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] How do you keep your scripts secure?
Actually, I think the best thing is to offer good service and value to your customer . Then why would anyone want to invest the time to decompile your work to change it? On 3/14/01 8:30 PM, "Jack Dempsey" <[EMAIL PROTECTED]> wrote: > Murph wrote: >> >> Hi. >> >> So, I've written all this nifty code and I'd like to do what I can from >> having it pilfered. >> >> What do you do to keep your stuff safe? >> >> Murph >> >> www.murphatnight.com >> __ >> Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 - (978) 725-6654 -- 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] where to learn to make a shopping cart
What are some good resources I can look at to learn how to make a shopping cart, that will function with php3/MySQL ? I know of the one at Devshed, but any other resources are certainly appreciated. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] where to learn to make a shopping cart
Now that I take a look, the one at devshed assumes PHP4... of course. and that would be great if I could get my sysadmin to upgrade. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] where to learn to make a shopping cart What are some good resources I can look at to learn how to make a shopping cart, that will function with php3/MySQL ? I know of the one at Devshed, but any other resources are certainly appreciated. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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]
[PHP] Reynolds & Reynolds - php use
Has anyone here ever had to work with a Reynolds and Reynolds system ? they make auto dealer management software. It is a closed system, but apparently sites like autotrader.com access them from various dealers to extract inventory data...autotrader appears to use jsp, so I assume that I can use php as well. if any one has any experience with anything remotely like this, please let me know Thanks, Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 4:59 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Importing Data from Text File Use file() to read the file up into an array (we'll call it $array). Then I would personally use: foreach ($array as $val) { trim($val); $arr = explode("\t", $val); // "\t" means tab, but it will not work if it's only spaces instead of a real tab $stock_name = $arr[0]; $stock_desc = $arr[1]; $stock_length = $arr[2]; $stock_qty = $arr[3]; $stock_price = $arr[4]; // Do your insert/update SQL query right here, before the ending bracket. } There you go. Now inside that loop you have 5 variables with the values they should have, ready for you to do whatever you'd like with them. If your wondering, trim() is used to remove the newline characters and extraneous spaces from the begining and end of the string. As long as they are using an actual "tab" button between each piece of data, and only ONE tab, it works. Tell me if this works for you. If it doesn't I can rethink it :) -- Plutarck Should be working on something... ...but forgot what it was. "Chris Aitken" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Everyone, > > Ive been asked to do a task here at my work and its something ive never > done before. I was hoping you guys could point me in the right direction so > I can research some more and discover how in the hell im gonna do this :) > > Basically, I have been issued a TAB delimited text file which I need to > process and insert all the data into a table. Here is a basic example of > what I need to do.. > > Say the text file had the following lines (thousands of them, 1 record per > line) > > Screw Big 12 200 1.99 > Screw Big 10 400 1.50 > > And I wanted to import each line into a table (Mysql DB) that had 6 fields > (5 for each of the above plus an autoincremented ID field > > stock_id > stock_name > stock_desc > stock_length > stock_qty > stock_price > > > Any suggestions and direction pointing will be greatly appreciated. > > > > > -- >Chris Aitken - Webmaster/Database Designer - IDEAL Internet > email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 > > >Unix -- because a computer's a terrible thing to waste! > > > -- > 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] -- 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] php install issues on IIS
Some of my co-workers are trying to install php and when I run phpinfo() I get this error, any ideas ? I've only setup php on unix systems, so I am at a loss here. HTTP Error 403 403.1 Forbidden: Execute Access Forbidden This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please contact the Web server's administrator if the problem persists. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] cell iterations in loop
Thanks, that worked with the removal of the first " Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 1:18 PM To: [EMAIL PROTECTED]; Jerry Lake Subject: RE: [PHP] cell iterations in loop I'm a little unclear as to what you're trying to do, but here's my interpretation: problem 2: if it ends on a complete row... solution: put the echoing of the first and last tr's inside your conditional. When $x is initialized to 0, the if will return true, and you will output the very first tr...same at the end...so i'd have something like this: \n"; } echo "".$x."\n"; if ($x % 5 == 0) { echo "\n"; } } #also added in if($length % 5 != 0){ { #then we know that it did not end completely, so echo you're final echo "\n"; } #no need for an else block because it would do nothing ?> Now if it ends on a complete row, you're fine! problem 1: what about if it ends at 42 or something, with just a closing ? solution: make a final check to see if you need that closing That is the if statement after you're loop... I hope this helps. -jack -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] cell iterations in loop I've got some code that I am creating that creates a table with a loop. and it works fine for what it is, but my question is how do I compensate for rows that aren't divisible by 5 ? i.e. the empty cells at the table. additionally if it ends on a complete row (divisible by 5) I end up with an additional empty row at the end of the table, I can see why it does, I'm just trying to get around it. no big hurry on this, I'm just trying to learn more. ".$x."\n"; echo "\n\n"; } else { echo "".$x."\n"; } } ?> Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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]
RE: [PHP] cell iterations in loop
Thanks, that worked with the removal of the first if clause for part 2 of my question, as far as part one, I will try to explain better. if you view the chunk of code in a browser you will get a table with borders number 1-43 however there will be a blank space at the end where 44 & 45 would be. how can I make the loop echo enough " " lines to show empty cells instead of blank space regardless of the number of cells I am creating ? Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 1:18 PM To: [EMAIL PROTECTED]; Jerry Lake Subject: RE: [PHP] cell iterations in loop I'm a little unclear as to what you're trying to do, but here's my interpretation: problem 2: if it ends on a complete row... solution: put the echoing of the first and last tr's inside your conditional. When $x is initialized to 0, the if will return true, and you will output the very first tr...same at the end...so i'd have something like this: \n"; } echo "".$x."\n"; if ($x % 5 == 0) { echo "\n"; } } #also added in if($length % 5 != 0){ { #then we know that it did not end completely, so echo you're final echo "\n"; } #no need for an else block because it would do nothing ?> Now if it ends on a complete row, you're fine! problem 1: what about if it ends at 42 or something, with just a closing ? solution: make a final check to see if you need that closing That is the if statement after you're loop... I hope this helps. -jack -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] cell iterations in loop I've got some code that I am creating that creates a table with a loop. and it works fine for what it is, but my question is how do I compensate for rows that aren't divisible by 5 ? i.e. the empty cells at the table. additionally if it ends on a complete row (divisible by 5) I end up with an additional empty row at the end of the table, I can see why it does, I'm just trying to get around it. no big hurry on this, I'm just trying to learn more. ".$x."\n"; echo "\n\n"; } else { echo "".$x."\n"; } } ?> Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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]
RE: RE: [PHP] cell iterations in loop
Right, I understand that if I use it is blank space if I use it is an empty cell right now $length is set at 42 (this is arbitrary) and there needs to be two empty cells at the end of the last row. if length is 41 I will need 3 and 40 will need 4. but if I don't know what the value of $length is going to be on a dynamic page such as showing "x" amount of images from a folder. I need for the loop to know how many " " to echo out at the end depending on the $length; I apologize if I am not explaining this very well. I usually am quite concise. Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:00 PM To: Jerry Lake Cc: [EMAIL PROTECTED] Subject: Re: RE: [PHP] cell iterations in loop ok, again, trying to understand "blank space"...but, try this: if you print out you'll get something i think you're referring to as blank space... try using a nonbreaking space in there...either or a space in the code; this will force the "emptiness" to show up... -jack - Original Message - From: "Jerry Lake" <[EMAIL PROTECTED]> Date: Thursday, April 26, 2001 4:54 pm Subject: RE: [PHP] cell iterations in loop > Thanks, that worked with the removal > of the first if clause for part 2 of > my question, as far as part one, I will > try to explain better. if you view the > chunk of code in a browser you will get > a table with borders number 1-43 however > there will be a blank space at the end > where 44 & 45 would be. how can I make > the loop echo enough " " lines > to show empty cells instead of blank space > regardless of the number of cells I am > creating ? > > Jerry Lake- [EMAIL PROTECTED] > Interface Engineering Technician > Europa Communications - http://www.europa.com > Pacifier Online- http://www.pacifier.com > > > -Original Message- > From: Jack Dempsey [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 1:18 PM > To: [EMAIL PROTECTED]; Jerry Lake > Subject: RE: [PHP] cell iterations in loop > > > I'm a little unclear as to what you're trying to do, but here's my > interpretation: > > problem 2: if it ends on a complete row... > solution: put the echoing of the first and last tr's inside your > conditional. When $x is initialized to 0, the if will return true, > and you > will output the very first tr...same at the end...so i'd have > something like > this: > > > > $x = 0; > #different here for later reason > $length = 42; > while ($x <= $length) >{ >$x++; >if ($x % 5 == 0) >{ >echo "\n"; >} >echo "".$x."\n"; >if ($x % 5 == 0) >{ >echo "\n"; >} > >} > > #also added in > if($length % 5 != 0){ > { >#then we know that it did not end completely, so echo > you're final >echo "\n"; > } > #no need for an else block because it would do nothing > ?> > > > > Now if it ends on a complete row, you're fine! > > problem 1: what about if it ends at 42 or something, with just a > closing? > solution: make a final check to see if you need that closing > That is the if statement after you're loop... > > I hope this helps. > > -jack > > > > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 2:32 PM > To: [EMAIL PROTECTED] > Subject: [PHP] cell iterations in loop > > > I've got some code that I am > creating that creates a table with > a loop. and it works fine for what > it is, but my question is how do I > compensate for rows that aren't divisible > by 5 ? i.e. the empty cells at the table. > additionally if it ends on a complete row > (divisible by 5) I end up with an additional > empty row at the end of the table, I can > see why it does, I'm just trying to get around > it. no big hurry on this, I'm just trying to > learn more. > > > > > $x = 0; > while ($x <= 42) >{ >$x++; >if ($x % 5 == 0) >{ >echo "".$x."\n"; >echo "\n\n"; >
RE: RE: RE: [PHP] cell iterations in loop
Ok, after a few hours of messing here and there I've got it to work. you can adjust for any number of columns, and the pictures and it makes solid tables. Thanks, for all of the help \n"; for ($x=1; $x<=$pictures; $x++) { echo "".$x."\n"; if ($x % $columns == 0) { $loopcount++; if ($loopcount < $x ) { echo "\n"; } else { echo "\n"; } } } $test = (($loopcount + 1) * $columns); $td = (($loopcount + 1) * $columns) - ($x -1); if($td != $columns) { for ($x=0; $x<$td; $x++) { echo "EMPTY\n"; } } #also added in if($x % $columns != 0) { #then we know that it did not end completely, so echo you're final echo "\n"; } ?> Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:26 PM To: Jerry Lake Cc: [EMAIL PROTECTED] Subject: Re: RE: RE: [PHP] cell iterations in loop ah, i got it... ok, try this: $length is arbitrary... $x is your counter... do the loop as before, but each time through the loop, $loopcount++; So, if you do the loop 5 times, $loopcount == 5. Then, at the end, $length - ($loopcount*$x) gives you the amount of 's to echo. Put another for loop with these parameters after you've printed your normal td's...you could do this all in one for loop, and would just need some more if statements... i think this is what you need...let me know how it goes... -jack - Original Message - From: "Jerry Lake" <[EMAIL PROTECTED]> Date: Thursday, April 26, 2001 5:20 pm Subject: RE: RE: [PHP] cell iterations in loop > Right, I understand that > if I use it is blank space > if I use it is an empty cell > > right now $length is set at 42 (this is arbitrary) > and there needs to be two empty cells at the end of > the last row. if length is 41 I will need 3 and 40 > will need 4. but if I don't know what the value of > $length is going to be on a dynamic page such as > showing "x" amount of images from a folder. I need > for the loop to know how many " " to > echo out at the end depending on the $length; > > I apologize if I am not explaining this very well. > I usually am quite concise. > > Jerry Lake- [EMAIL PROTECTED] > Interface Engineering Technician > Europa Communications - http://www.europa.com > Pacifier Online- http://www.pacifier.com > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 2:00 PM > To: Jerry Lake > Cc: [EMAIL PROTECTED] > Subject: Re: RE: [PHP] cell iterations in loop > > > ok, again, trying to understand "blank space"...but, try this: > if you print out you'll get something i think you're > referring to > as blank space... > try using a nonbreaking space in there...either or a space in the > code; this will force > the "emptiness" to show up... > > -jack > > - Original Message - > From: "Jerry Lake" <[EMAIL PROTECTED]> > Date: Thursday, April 26, 2001 4:54 pm > Subject: RE: [PHP] cell iterations in loop > > > Thanks, that worked with the removal > > of the first if clause for part 2 of > > my question, as far as part one, I will > > try to explain better. if you view the > > chunk of code in a browser you will get > > a table with borders number 1-43 however > > there will be a blank space at the end > > where 44 & 45 would be. how can I make > > the loop echo enough " " lines > > to show empty cells instead of blank space > > regardless of the number of cells I am > > creating ? > > > > Jerry Lake- [EMAIL PROTECTED] > > Interface Engineering Technician > > Europa Communications - http://www.europa.com > > Pacifier Online- http://www.pacifier.com > > > > > > -Original Message- > > From: Jack Dempsey [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 26, 2001 1:18 PM > > To: [EMAIL PROTECTED]; Jerry Lake > > Subject: RE: [PHP] cell iterations in loop > > > > > > I'm a little unclear as to what you're trying to do, but
RE: [PHP] apache toolbox
Just out of curiosity, what problems did you have ? Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Chris Schneck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: [PHP] apache toolbox This might be a useful link for some people who are having problems with the combination of apache + ssl / php / mysql. I've used it and I had a couple problems, but after I actually read the README, everything was smooth :) www.apachetoolbox.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]
[PHP] install issue with 4.0.5
I've just tried to compile and install php 4.0.5 with apache and when I try to restart apache I get the following. I added the location of libphp4.so to ld.so.conf and ran ldconfig and then make clean and re-compiled php etc... any ideas as to what is going on ? [root@localhost bin]# ./apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined symbol: uncompress ./apachectl start: httpd could not be started Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] user authentication
Does anyone know of a good user authentication/sessions tutorial for php 4? I've looked through the ones at phpbuilder and they are not quite as in-depth as I would like. Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] ereg issues
I'm feeling a bit stupid today how do I truncate a string to the first two [a-zA-Z] characters ? this sure isn't working $test = "jerry"; $test = ereg_replace("^\w*", "^[a-zA-Z]{2}" ,$test); Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] ereg issues
Cool, thanks Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack Dempsey Sent: Thursday, May 10, 2001 12:39 PM To: scott [gts] Cc: Php-General Subject: Re: [PHP] ereg issues print preg_replace('/^(.*?)([a-zA-Z]{2})(.*)/','\\2',$blah); try that -jack "scott [gts]" wrote: > > oh yeah. sorry... > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack > > Dempsey > > Sent: Thursday, May 10, 2001 3:15 PM > > To: ..s.c.o.t.t.. [gts] > > Cc: Php-General > > Subject: Re: [PHP] ereg issues > > > > > > isn't a \w a word character, meaning a-zA-Z_0-9 (in perl)? > > if so, that wouldn't match the a-zA-z he originally intended... > > am i missing something? > > > > -jack > > > > "..s.c.o.t.t.. [gts]" wrote: > > > > > > print preg_replace('/(.*?)(\w{2})(.*)/', '\\2', $blah); > > > > > > works for: > > > > > > $blah = "*9 scott 777zxsdf"; > > > and > > > $blah = "scott"; > > > > > > > -Original Message- > > > > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > > > > Subject: [PHP] ereg issues > > > > > > > > I'm feeling a bit stupid today > > > > how do I truncate a string to the > > > > first two [a-zA-Z] characters ? > > > > > > > > this sure isn't working > > > > > > > > $test = "jerry"; > > > > $test = ereg_replace("^\w*", "^[a-zA-Z]{2}" ,$test); > > > > > > > > > > -- > > > 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] > > > > -- > 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] -- 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] coding brain fade
umm, what am I missing ? I can't get the userfile to name itself when copying... "; echo $userfile; copy($userfile, "c:/apache/htdocs/".$userfile); } else { echo "Possible file upload attack: filename '$userfile'."; } ?> Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] cell iterations in loop
I've got some code that I am creating that creates a table with a loop. and it works fine for what it is, but my question is how do I compensate for rows that aren't divisible by 5 ? i.e. the empty cells at the table. additionally if it ends on a complete row (divisible by 5) I end up with an additional empty row at the end of the table, I can see why it does, I'm just trying to get around it. no big hurry on this, I'm just trying to learn more. ".$x."\n"; echo "\n\n"; } else { echo "".$x."\n"; } } ?> Jerry Lake- [EMAIL PROTECTED] Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] Image problem
This is how I fixed that same issue in the head of my page if (ereg ("new", $PHP_SELF)) { $header = " then call the header in in the appropriate place in your html Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Michael O'Neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 10:14 AM To: php Subject: [PHP] Image problem Hi, I'm still pretty new to PHP, and would like help on a solution for a problem I have. I have a website that has 6 different sections. (about, news, buying, selling, community, and relocation) Each of the sections has it's own subfolder in the root directory of the website. (/about, /news, etc...) Each of the sections also has a header image and footer image associated with that section. (hdr_txt_about.gif, ftr_txt_about.gif, hdr_txt_news.gif, etc..) I want to use PHP to "know" what section of the website the user is in, and load the appropriate header/footer image. I know that I need some sort of if/then statement, and I know that it has to use the URL to see where it is, but I don't know where to implement it, and I'm not quite sure how. The website is setup with an included header that has most of the html/javascript, a mostly text file for the content, and an included footer that takes care of the rest. Any help with this would be greatly appreciated. Thanks, mto Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmango.com [EMAIL PROTECTED] p-303.442.1821 f-303.938.8507 -- 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]
[PHP] again with the regex
I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890 or something else that at least breaks them up a bit. any help is appreciated, Thanks, Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] again with the regex
Thanks folks, much better now. Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 3:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] again with the regex Jerry, try sprintf(). Here's an example: sprintf("(%s) %s-%s", substr($GLOBALS["appPhoneHome"], 0, 3),substr($GLOBALS["appPhoneHome"], 3, 3),substr($GLOBALS["appPhoneHome"], 6, 4)) Kirk > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 4:48 PM > To: [EMAIL PROTECTED] > Subject: [PHP] again with the regex > > > I hate to keep asking regex stuff, > but it is really evasive for me.. > I'm pulling phone numbers out of a DB > in the format of 1234567890, I would > like to format them like (123) 456-7890 > or something else that at least breaks them > up a bit. > > any help is appreciated, > Thanks, > > Jerry Lake > Interface Engineering Technician > Europa Communications - http://www.europa.com > Pacifier Online - http://www.pacifier.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] -- 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] Discussion board
I like Phorum http://phorum.org/ Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: James Atkinson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 12:23 PM To: Thomas Deliduka; PHP List Subject: RE: [PHP] Discussion board http://www.phpbb.com :) - James > -Original Message- > From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] > Sent: May 22, 2001 12:10 PM > To: PHP List > Subject: [PHP] Discussion board > > > Is there a good PHP alternative for a discussion board or something else > that allows for moderators and other good features that will run on Linux? > > -- > > Thomas Deliduka > IT Manager > - > New Eve Media > The Solution To Your Internet Angst > http://www.neweve.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] -- 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: Does anyone use UltrDev?
Just gave it up for GoLive6 :) The php model never worked well. I even purchased impAKT and Nextensio. The 1.1 version somewhat worked, the 1.2 was DOA. Most of those features are in the GL6. Samples illustrate edit in lists and list and edit areas on same page. Sessions not as easy. MacOSX NATIVE! Jerry Interactivemedianet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php code to fax
I could be wrong, but it would seem easiest to have an an email to fax gateway and use your php to send mail Regards, Jerry Lake Interface Engineering Technician -Original Message- From: Glenn Antoine [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 6:39 AM To: [EMAIL PROTECTED] Subject: [PHP] php code to fax I am working on a project that will require the ability to take input from a web interface and then fax the content out to some of the members. If anyone has had any experience with a similar project, I would greatly appreciate any assistance. Thanks in advance, Glenn -- 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]
RE: [PHP] Portland, Oregon
Rasmus, I'm not sure how I missed that, I would have liked to attend. where were you ? Jerry Lake -[EMAIL PROTECTED] Interface Engineering Technician -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 3:54 PM To: Richard Baskett Cc: PHP General Subject: Re: [PHP] Portland, Oregon > So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP > class, tutorial, anything in this area.. and I would love to attend one :) I was there 2 months ago. -Rasmus -- 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]
RE: [PHP] Hello $variable, whats your name?
$HTTP_POST_VARS Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: JCampbell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 4:06 PM To: Main PHP List Subject: [PHP] Hello $variable, whats your name? I would like to know if there is a way to determine the name of a variable. Example: I have the variable $firstname, with a value of Jon I want to be able to echo name_of_variable : value_of_variable; So the user would see firstname : Jon I want to be able to do this without knowing what variables will be passed to the PHP script in advance. Any help is appreciated in advance. === And shepards we shall be For thee, my lord, for thee For thou hath descended forth from thy hands That our feats may swiftly carry out thy command We will flow a river forth unto thee And teaming with souls shall it ever be... === http://jcampbell.blacklightning.net -- 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]
RE: [PHP] sanity check please
you can put you database connection in a file below the web root and include it into the script. that way it isn't visible in the source. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Les Neste [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 3:01 PM To: [EMAIL PROTECTED] Subject: [PHP] sanity check please Hi, I have a question about security with PHP. I'm building a site with PHP and some of the scripts connect to MySQL. All someone needs to do to get my MySQL passwords is view the PHP source, right? And the recommended approach around this is to use Zend, right? Please correct me if I'm off base here. TIA! Les Neste 678-778-0382 http://www.lesneste.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]
RE: [PHP] How to limit a WHILE statement?
Limit it in your query statement i.e. SELECT * FROM whatever LIMIT 1,20 Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Bob Stone [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How to limit a WHILE statement? Dear PHP Helpers, What is your recommendation on limiting a while statement so that it only iterates a maximum of 20 times? Here is the code snippet: $result = mysql_query($sql, $db); while ($myrow = mysql_fetch_array($result)) { printf("Name: %s %s %s %s\n", $myrow["salutation"], $myrow["first_name"], $myrow["mid_name"], $myrow["user_name"]); Best regards, Bob Stone __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text -- 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]
RE: [PHP] Warning: 1 is not a valid File-Handle resource
I had that same warning the other day and the problem was a slight syntax error in my query statement. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: WK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 8:35 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Warning: 1 is not a valid File-Handle resource ""WK"" <[EMAIL PROTECTED]> wrote in message 9abfvp$v4$[EMAIL PROTECTED]">news:9abfvp$v4$[EMAIL PROTECTED]... > $fp2=fopen ("userdata","r")or die("unable to open file ($userdata)"); > $fp2 is getting a value 1 or 0 > > if ($fp2=fopen ("userdata","r") ) { > lock file > write some stuff unlock file <--forgot this > } > else { > echo ("file would not open"); > } > > wk > > ""Richard Kurth"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am using the newest ver of PHP and newest ver of apache on win98 > > just installed new php and apache yesterday set php up as a module > > > > > Don't know. Code looks good, what version of PHP are you using? Module > or > > > cgi? What version of windows? These are the things the PHP/Zend guys > > > probably need to know. > > > > > > On 4/2/01 4:59 PM, "Richard Kurth" <[EMAIL PROTECTED]> wrote: > > > > > > > What is causing this error > > > > > > > > > > > > Warning: 1 is not a valid File-Handle resource in > > > > c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88 > > > > > > > > This is the cod in question > > > > > > > > $tab = chr(9); // define tabulator > > > > if(file_exists("userdata")) { > > > > $fp2=fopen ("userdata","r")or die("unable to open file ($userdata)"); > > > > flock($fp2, 2); //unless ($use_flock == 0); > > > > while ($data = fgetcsv ($fp2, 1000, $tab)) { <---this is line 88 > > > > $num = count ($data); > > > > $row++; > > > > for ($c=0; $c<$num; $c++) { > > > > > > > > } > > > > > > > > > > > > > -- > > > 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] > > > > > > -- > 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] -- 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]