[PHP] Can anyone help me on nntp ?
Hi! I want to know if I want to post a message to some newsgroup, is there any sample or function available ? Can you kindly point out where should I go or maybe give me an example for this ? Thanks. James -- 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] "wide open"
Dan Harrington <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Furthermore, Jonathan stated that he didn't "break into" your > > system - you left phpMyAdmin *wide* open, which is frankly > > asking for trouble. Imagine how much fun you'd have had if > > someone with *malicious* intent had found it. > > --in the physical world, if a door is left unlocked, even ajar a couple > inches, the physical act of pushing the door open so that one can enter > the door is defined as "breaking and entering". > > "Harmlessly" pushing an unlocked door open, and walking in and writing on > a whiteboard "Gangstaboy was here" is just as much of a crime as > unauthorizedly logging into a machine, no matter how "wide open" it is, > even if "harm" is not done. I will freely admit I have seen and peeked into "wide open" websites in the past, either through server misconfiguration or faulty scripts. But I have never gone much further than maybe figuring out what was wrong and sending an email to the owner. Most people are pretty receptive if you just send them a kindly worded email. -- Rick Hodger -- 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] passthru environment variables
fpassthru doesn't include the code in your php code. In just dumps the file to output as it runs. Anything defined in PHP (inluding variables and functions) in the file passed through will not be available to the calling program. You need include(); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Rich Puchalsky [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2001 05:52 > To: [EMAIL PROTECTED] > Subject: [PHP] passthru environment variables > > > I'm trying to use passthru in a PHP program to have an > external program > display some data. The problem is that I was trying to have > the external > program's environment pick up the form field variables > automatically passed > into the PHP program as shell environment variables. > > In other words, if a user typed "Smith" into the last_name > field in a form, > the PHP program called by that form starts out with > $last_name = "Smith", > and I would like the external program called by passthru > within the PHP > program to have a shell environment variable last_name = "Smith". > > Does anyone know an easy way to do this? > > > > > -- 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] Can anyone help me on nntp ?
I guess there is a NNTP class avaailable at http://phpclasses.upperdesign.com/ regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "James Hsieh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:53 PM Subject: [PHP] Can anyone help me on nntp ? > Hi! > I want to know if I want to post a message to some newsgroup, is there any > sample or function available ? > Can you kindly point out where should I go or maybe give me an example for > this ? > > Thanks. > > James > > > > -- > 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] comparisons
try this first: if((strlen($pick1)==strlen(pick2))and($pick1==$pick2)) echo 'they are equal'; else echo 'they aren\'t at least in length'; However, it seens to me as a very slicky style ... whay not to make them somehow different let's say using an array, or having a letter instead of 0 ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Curtis Maurand [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 3:48 AM To: [EMAIL PROTECTED] Subject: [PHP] comparisons Hello, I'm having a rather strange problem. I'm trying to compare two values. "01" and "1". The variables names that they are submitted under are pick1 and pick2. i use the following code $mypick1 = strval($pick1); $mypick2 = strval($pick2); I then perform the following comparison: if ($mypick1 == $mypick2) { $error = 1; $errorstring[1] = "Your first pick and second pick are the same."; } However, I get the error that they are equal. If I call the comparison as foloows: if(strval($mypick1) == strval($mypick2) { $error = 1; $errorstring[1] = "Your first pick and second pick are the same."; } I still get the error. Anyone have any ideas? These two valuse mustbe evaluated as different. Thanks in advance Curtis -- 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] afraid !
Yes, or you can use a software written in PHP such as phpMyAdmin (search google) that will be easier , and online.. mySQL is good enough, and believe me, easier then Oracle. the perfect couple (and our best friends) are: Linux, Apache, PHP, mySQL ... this is how most of us live. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: php php [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 4:18 AM To: [EMAIL PROTECTED] Subject: [PHP] afraid ! Hi! i've just joined ur mailing list! i used to work on asp with oracle and access! i'm working on windont NT but i want to publish my site at a provider that has linux? do i have to change my code for that ? do u know any provider that accepts acces and mysql with php4? i'm afraid of using mysql with php cause i'm in hurry and that i discovered that mysql interface is not as good and easy as of oracle and access! is it true that if i want to insert data to a table i have to do it from the commend line? Thanks a lot _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Search & replace text
instead of writing to you the code I'll give you an idea: 1. you open the file and read it line-by-line assigning it to an array, 2. you loop that array parsing it line by line changing it's values with RegEx the way you want. 3. you open the same file and, looping the array writing it down overriding any existing data in the file. You are now set. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: CDitty [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 5:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Search & replace text Hello all. I am trying to search through a text file on my server to replace the user email. I can open the file and read it, but cannot get it to "find" the actual string and replace it. Can someone look over my code and see what the problem is? I am afraid that ereg is not my strongest point. Also, at what point should I start writing the file out? Wouldn't there be a permissions error if I was reading and writing at the same time? Thanks CDitty $oldemail = "[EMAIL PROTECTED]"; $newemail = "[EMAIL PROTECTED]"; $user = "cditty"; $file = fopen("/path/to/the/user/file/$user.dat", "r"); if(!$file){ echo "Unable to open remote file.\n"; exit; }else{ echo "Success"; } while (!feof($file)) { $line = fgets($file, 255); if(eregi($oldemail, $line, $out)) { str_replace($oldemail, $newemail, $line); } echo $line . ""; } fclose($file) -- 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] afraid !
and BTW: get yourself a non-2MB-limited email address... hotmail will stop working for you within approximately .hmm 1 week? there are 5.000 subscribers to this list and it's volume often get's to few hundreds emails a day. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: php php [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 4:18 AM To: [EMAIL PROTECTED] Subject: [PHP] afraid ! Hi! i've just joined ur mailing list! i used to work on asp with oracle and access! i'm working on windont NT but i want to publish my site at a provider that has linux? do i have to change my code for that ? do u know any provider that accepts acces and mysql with php4? i'm afraid of using mysql with php cause i'm in hurry and that i discovered that mysql interface is not as good and easy as of oracle and access! is it true that if i want to insert data to a table i have to do it from the commend line? Thanks a lot _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] To The Hacker: CodeBoy
I agree with Jason, Are you guys nuts? He was just trying to be cool, and in order to be cool he needed to mention: THAT WAS ME!!! He's not a hacker (hey, no offence Jonathon) ... a real hacker will never post any threaten message on a 5000 users mailing list. A beginner(amateur) hacker however will. Don't worry about him Phillip. And you Jonathon erase all these files and contact Phillip *personally* telling him more what his security wholes are, so he'll be grateful to you. Just came to my mind: my Hacking story: I once had a website which was some sort of search engine. The users were submitting their sites and we were validating for credibility. (no fancy homepages ect) One guy submitted a site which when I was validating gave a JavaScript alert. That alert had a button which when you click calls other alert and so on ... my explorer had frozen (on my old win98 1-ed), and I had to reboot my PC completely losing all unsaved data lots of it... of a project I was working for a while... Man, I got mad. I started my PC again, went to the validation section of my site and, looked at the password he inputted during the submission of his site. Guess what? It matched the password he had on his angelfire site!!! I f***ng moved all he got up there in folder called :"Do_not_do_this_anymore"! .uff. what e relieve I never contacted him of course, but I wasn't even a hacker. my sweet story "god I love to tell'em" Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 9:11 AM To: 'rswfire'; Jonathan Sharp Cc: [EMAIL PROTECTED] Subject: RE: [PHP] To The Hacker: CodeBoy > Furthermore, below you stated I posted a URL. That URL was > to a geocities.com site. That site has nothing to do with > PHP and has nothing to do with my local computer. In fact, > that geocities.com site only showed screenshots of what I > had been working on. Obviously, it must have sparked your > interest because you went to work on finding out my IP > Address so that you could break into my system. One would probably guess the URL of the site you were working on was in the screenshots. You don't need to "find" an IP address at that point. Furthermore, Jonathan stated that he didn't "break into" your system - you left phpMyAdmin *wide* open, which is frankly asking for trouble. Imagine how much fun you'd have had if someone with *malicious* intent had found it. And lastly ... if he was *really* going to do anything, would he really be so stupid as to leave his commonly-known pseudonym, which can be (as you proved) easily traced back to himself? I think this whole issue has been blown out of proportion enough on the list now, and as it's no longer a PHP-related discussion I suggest you move it to private mail. And, try some valium for loss of sleep. :) Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- 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] way to save data
then you are on the right way: use SQL languages. They are fast, secure and reliable. Plus even easier to play with. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 12:46 PM To: [EMAIL PROTECTED] Subject: [PHP] way to save data hi I realized that there are 2 ways to save data. Using mySQL or a textfile. Which do you think is better? i like using myysql instead a textfile cuz it's faster and it's securier. -- 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] checking for presnet file name
$PHP_SELF will give you the file name rlative to your Document Root http://www.php.net/manual/language.variables.predefined.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John LYC [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 2:23 PM To: PHP List Subject: [PHP] checking for presnet file name is there a pre-defined variable that return present php file name... for example... url : www.domain.com/mypage.php $var == "mypage"; thanks -- 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] unsubscribe php-general
nope you have to write it here: [EMAIL PROTECTED] Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John McKown [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: [PHP] unsubscribe php-general unsubscribe php-general -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: 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] Preserve variables between page loads?
Why don't you use sessions? php.net/sessions Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Chuck Mayo [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Preserve variables between page loads? This may have crossed the list a bazillion times, but I couldn't really find anything appropriate in the archives... maybe I just didn't look hard enough. In a MySQL app, I have the usual row of paging links at the bottom of the page and need to pass to the next iteration more variables than I can comfortably url-encode in the hyperlink. If all these paging links were submit buttons I could pass anything I wanted in hidden form fields, but since they're hyperlinks I don't seem to have that option. Is there a way to selectively preserve variables between iterations? Something like variables that are global to PHP, as opposed to being global within the script? -- 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: help: column into array?
if ($result = mysql_db_query($database, $sql, $link_id);) { while ($thisrow = mysql_fetch_array($result)) { $array[] = $thisrow("field"); }; }; ... or something like that Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: andrew [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2001 05:52 > To: PHP General > Subject: help: column into array? > > > Hi PHPers! > > how can I reference a result set by array index numbers??? > > this $sql="select field from table where id_field = 1"; > would return a result like this: > > field > --- > first > second > third > > from this table > > id_field field > | > 1 first > 1 second > 1 third > 2 fourth > 2 fifth > > how can I do something like this: > > $array=mysql_db_query($database, $sql, $link_id); > > echo array[0]; //I want this to print "first" > echo array[1]; //I want this to print "second" > > I know mysql_fetch_array pulls a ROW into an array, but in > this case the row > is only one item wide, so I essentially want column results > in an indexed > array. > > TIA! > andrew > > > -- 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: A way to duplicate data across databases
you should be able to query the structure of the database in php/mysql. this should then give you everything you need to build your create table statement dynamically so you can build a black-box function that takes source and target databases and table name. You can proably find the tables in a database so your function becomes one call database copier. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message- > From: Carsten Gehling [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2001 21:22 > To: [EMAIL PROTECTED] > Subject: A way to duplicate data across databases > > > I'm making a script that generates test sites usíng dummy > data stored in one > MySql database ("uwebsitebase") > > Now, using php-scripting, I'm copying these data to a demo-database > ("uwebdemo"). The structure is the same - the same tables > with the same > fields. Only difference will be that the copied data should > get new primary > keys which are auto-incremented. No problem there. > > However, the process is tedious. I have tables that contains > some 30 fields > and it's just a bore selecting all fields from one table, and > then writing a > complete insert statement with all the fields except the PK. > > Is there an easier way? Remember 1) It's PHP 2) It's across databases. > > I have to script it, since I need the new keys on other places. > > - Carsten > > > -- 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] "wide open"
From: "Jason Murray" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 3:44 AM > My *point* was that he should be glad that all he did was add an entry > to the database instead of deleting every damn table in there, hence > the bit about "someone with *malicious* intent". I disagree. If Codeboy had sent him an email describing what was wrong, instead of this "Killroy was here" stuff, rswfire *maybe* should be glad. An intruder leaving small traces shoving that he's been inside your system, is IMHO not something to be glad about or grateful for. I know that is the general consensus, a sort of "pride between hackers": Show that you were there but do no other harm. But it's bull. They're not heros, they're every bit as criminal as the rest. Sorry for the harsh tone but this subject is really one that upsets me. - Carsten -- 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] COM vs ???
Hello, I would like make some componnent on linux wich I can use on php. Like I create a COM object on Windows and use it with a asp pages and reuse it in a vb application without code duplicate, I would like install PHP on a linux and not on a Windows. Thanks Have a nice day Ghislain
[PHP] Apache/mod_rewrite for User Tracking
I'm not sure how off-topic this may be, but I'll carry on anyway... I wan't to create a user tracking system on the web site, that I can use in PHP. I've had a look at mod_rewrite, and would like to implemet something like the following: I have a few scripts, say 'home', 'search', 'help', etc. and all are force mapped onto PHP 4. If someone calls this scripts (without entering the site through the front door), then they are sent back, set a user tracking value, and sent back to the page. Before now, I have cookies and IP address for user tracking. If someone could accept a cookie (I used a self-referring script to check) then they are given a cookie, and they can be tracked. They can also be tracked over many visits with a cookie. If they don't then I make a note of their IP address, and their address is used. With IP addresses, you can't record return visits, so it just tracks one visit. With some ISP's they seam to use variying IP addresses, so then each page checked for a valid user, they didn't find one, and forwarded then back to 'index' to set a user session, and come back. But they seamed (to the server/PHP) to have different IP's over these steps, and the visitor was locked into a HTTP Redirect cycle (until the broswer stop with a fail). What I would like to do now is track the user with the URL. When someone calls the site, (ether through the front door, or sent back to get an ID), they are given an ID like so: 'KjsiHdbEyu8G645Dus96Sy54GD'. They are then sent to say, http://localhost/KjsiHdbEyu8G645Dus96Sy54GD/home. Using mod_rewrite, I can then get the tracking var (KjsiHdbEyu8G645Dus96Sy54GD), and rewrite the URL to http://localhost/home, and call the script. I know this is possible. Something like /^\/([a-zA-Z0-9]{80})\/(.*)/$1?$2/ could work for the rewrite rule, but rather than use $HTTP_SERVER_VARS["QUERY_STRING"] to get the var, as I use a GET vars for some functions, could I get a var which is sent to Apache, and then PHP accesses the var from there, and the rest is as normal? That's what I would prefer to do, but I'm not sure if it's possible (and explained it well enough). If I had to do something like /^\/([a-zA-Z0-9]{80})\/(.*)/$1?$2/ I would just have to develop to that instead. Failing that, any suggestions? Thanks in advance.. Jonathan Wright.. Webmaster http://www.kjtoombs.co.uk/ (http://www.kjtoombs.co.uk/home) -- 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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4
rasmus Mon Feb 12 03:43:45 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Alan Knowles Index: CVSROOT/avail diff -u CVSROOT/avail:1.82 CVSROOT/avail:1.83 --- CVSROOT/avail:1.82 Sun Feb 11 12:50:35 2001 +++ CVSROOT/avail Mon Feb 12 03:43:41 2001 @@ -9,7 +9,7 @@ avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern|phpdoc avail|andrei|php-gtk -avail|emile,mgddavid|php4/ext/midgard +avail|emile,mgddavid,alan_k|php4/ext/midgard avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath avail|NOBODY|php4/ext/calendar Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.211 CVSROOT/cvsusers:1.212 --- CVSROOT/cvsusers:1.211 Sun Feb 11 12:50:35 2001 +++ CVSROOT/cvsusersMon Feb 12 03:43:41 2001 @@ -258,3 +258,4 @@ bjoernBjoern Schotte [EMAIL PROTECTED] PEAR emile Emiliano Heyns [EMAIL PROTECTED] Midgard mgddavid David Guerizec [EMAIL PROTECTED] Midgard +alan_kAlan Knowles[EMAIL PROTECTED] Midgard Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.85 CVSROOT/gen_acl_file.m4:1.86 --- CVSROOT/gen_acl_file.m4:1.85Sun Feb 11 12:50:35 2001 +++ CVSROOT/gen_acl_file.m4 Mon Feb 12 03:43:41 2001 @@ -13,7 +13,7 @@ dnl define(`php_pres', `rasmus,sterling,jimw')dnl dnl -define(`php_midgard', `emile,mgddavid')dnl +define(`php_midgard', `emile,mgddavid,alan_k')dnl dnl unavail avail|php_group|CVSROOT -- PHP CVS 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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4
rasmus Mon Feb 12 03:46:24 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Fernando Augusto Medeiros Silva Index: CVSROOT/avail diff -u CVSROOT/avail:1.83 CVSROOT/avail:1.84 --- CVSROOT/avail:1.83 Mon Feb 12 03:43:41 2001 +++ CVSROOT/avail Mon Feb 12 03:46:24 2001 @@ -7,7 +7,7 @@ avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern|phpdoc +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams|phpdoc avail|andrei|php-gtk avail|emile,mgddavid,alan_k|php4/ext/midgard avail|rasmus|php4/ext/aspell Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.212 CVSROOT/cvsusers:1.213 --- CVSROOT/cvsusers:1.212 Mon Feb 12 03:43:41 2001 +++ CVSROOT/cvsusersMon Feb 12 03:46:24 2001 @@ -259,3 +259,4 @@ emile Emiliano Heyns [EMAIL PROTECTED] Midgard mgddavid David Guerizec [EMAIL PROTECTED] Midgard alan_kAlan Knowles[EMAIL PROTECTED] Midgard +fams Fernando Augusto Medeiros Silva [EMAIL PROTECTED] +Brazilian Portuguese translation Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.86 CVSROOT/gen_acl_file.m4:1.87 --- CVSROOT/gen_acl_file.m4:1.86Mon Feb 12 03:43:41 2001 +++ CVSROOT/gen_acl_file.m4 Mon Feb 12 03:46:24 2001 @@ -3,7 +3,7 @@ dnl PHP Developers (full access to the source trees) define(`php_dev', `php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile') dnl PHP Documentation Group -define(`php_doc', `chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jb
[PHP-CVS] cvs: php4 /ext/imap php_imap.c
thies Mon Feb 12 03:57:22 2001 EDT Modified files: /php4/ext/imap php_imap.c Log: fixed possible leak in imap_search Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.54 php4/ext/imap/php_imap.c:1.55 --- php4/ext/imap/php_imap.c:1.54 Sun Jan 7 04:22:50 2001 +++ php4/ext/imap/php_imap.cMon Feb 12 03:57:22 2001 @@ -25,7 +25,7 @@ | PHP 4.0 updates: Zeev Suraski <[EMAIL PROTECTED]> | +--+ */ -/* $Id: php_imap.c,v 1.54 2001/01/07 12:22:50 sas Exp $ */ +/* $Id: php_imap.c,v 1.55 2001/02/12 11:57:22 thies Exp $ */ #define IMAP41 @@ -3442,12 +3442,14 @@ imap_le_struct = (pils *) zend_list_find(ind, &ind_type); if (!imap_le_struct || !IS_STREAM(ind_type)) { php_error(E_WARNING, "Unable to find stream pointer"); + efree(search_criteria); RETURN_FALSE; } IMAPG(imap_messages) = NIL; mail_search_full(imap_le_struct->imap_stream, NIL, mail_criteria(search_criteria), flags); if (IMAPG(imap_messages) == NIL) { + efree(search_criteria); RETURN_FALSE; } -- PHP CVS 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] money maths
I'm building a demo shopping cart and have sorted out most things but this: I have php work out subtotals by multiplying $quantity * $price ... this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In other words, how to add a zero so that there are always two decimal places. Any solution to this, including regex? I can't find anything among the maths functions. Thanks Mick -- 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] money maths
Try the number_format example: $Price = number_format($BasePrice,2); Martin. -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: 12 February 2001 10:35 To: PHP List Subject: [PHP] money maths I'm building a demo shopping cart and have sorted out most things but this: I have php work out subtotals by multiplying $quantity * $price ... this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In other words, how to add a zero so that there are always two decimal places. Any solution to this, including regex? I can't find anything among the maths functions. Thanks Mick -- 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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4
rasmus Mon Feb 12 04:05:12 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Switch mgddavid to davidg Index: CVSROOT/avail diff -u CVSROOT/avail:1.84 CVSROOT/avail:1.85 --- CVSROOT/avail:1.84 Mon Feb 12 03:46:24 2001 +++ CVSROOT/avail Mon Feb 12 04:05:12 2001 @@ -9,7 +9,7 @@ avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams|phpdoc avail|andrei|php-gtk -avail|emile,mgddavid,alan_k|php4/ext/midgard +avail|emile,davidg,alan_k|php4/ext/midgard avail|rasmus|php4/ext/aspell avail|andi|php4/ext/bcmath avail|NOBODY|php4/ext/calendar Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.213 CVSROOT/cvsusers:1.214 --- CVSROOT/cvsusers:1.213 Mon Feb 12 03:46:24 2001 +++ CVSROOT/cvsusersMon Feb 12 04:05:12 2001 @@ -257,6 +257,6 @@ inki Ingmar Heinrich [EMAIL PROTECTED] German translation bjoernBjoern Schotte [EMAIL PROTECTED] PEAR emile Emiliano Heyns [EMAIL PROTECTED] Midgard -mgddavid David Guerizec [EMAIL PROTECTED] Midgard +davidgDavid Guerizec [EMAIL PROTECTED] Midgard alan_kAlan Knowles[EMAIL PROTECTED] Midgard fams Fernando Augusto Medeiros Silva [EMAIL PROTECTED] Brazilian Portuguese translation Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.87 CVSROOT/gen_acl_file.m4:1.88 --- CVSROOT/gen_acl_file.m4:1.87Mon Feb 12 03:46:24 2001 +++ CVSROOT/gen_acl_file.m4 Mon Feb 12 04:05:12 2001 @@ -13,7 +13,7 @@ dnl define(`php_pres', `rasmus,sterling,jimw')dnl dnl -define(`php_midgard', `emile,mgddavid,alan_k')dnl +define(`php_midgard', `emile,davidg,alan_k')dnl dnl unavail avail|php_group|CVSROOT -- PHP CVS 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] money maths
Brilliant! Once again this list proves to be one of the wonders of the world. Problem solved in 10 minutes or less. Thanks again. On Mon, 12 Feb 2001, Martin E. Koss wrote: > Try the number_format > example: > $Price = number_format($BasePrice,2); > > Martin. > > -Original Message- > From: Michael Hall [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2001 10:35 > To: PHP List > Subject: [PHP] money maths > > > > I'm building a demo shopping cart and have sorted out most things but > this: > > I have php work out subtotals by multiplying $quantity * $price ... this > works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In other > words, how to add a zero so that there are always two decimal places. Any > solution to this, including regex? I can't find anything among > the maths functions. > > Thanks > > Mick > > > -- > 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] Run a script for 20minutes
From: "Martin E. Koss" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:08 PM > Is it a surprise that it might take up to 20 or 30 minutes to build over > 20,000 simple HTML files? Maybe you shouldn't run your script through the browser. To me it sounds like you're doing a one-time process that dosen't really send any output back to the browser. Instead it saves all the generates html-files on disk, right? Try running: php.exe or php.exe /q to avoid the standard php-headers - Carsten -- 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] Run a script for 20minutes
Hi, I have PHP3 and MySQL on Win98 and am trying to run a script that loops through a file making process and it needs about 20 - 30 minutes to run. It generates static HTML files based on content in a database. I've increased Internet Explorer's timeout to allow for this but for some reason only about half the processing is done before everything seems to just stop. Does anyone know of a very basic way of executing a PHP script on a Win98 machine without the need for a browser? Or, another way of running this script that will take some time and create some 22,000 files through the process. Thanks, Martin. -- 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] Run a script for 20minutes
I think there are timeouts on php as well: This is taken from the php.ini file. max_execution_time = 30 ; Maximum execution time of each script, in seconds I hope this helps you, you can find php.ini in your windows directory. If you are using a database, also check that for timeouts. D. -Original Message- From: Martin E. Koss [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 12:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Run a script for 20minutes Hi, I have PHP3 and MySQL on Win98 and am trying to run a script that loops through a file making process and it needs about 20 - 30 minutes to run. It generates static HTML files based on content in a database. I've increased Internet Explorer's timeout to allow for this but for some reason only about half the processing is done before everything seems to just stop. Does anyone know of a very basic way of executing a PHP script on a Win98 machine without the need for a browser? Or, another way of running this script that will take some time and create some 22,000 files through the process. Thanks, Martin. -- 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] Run a script for 20minutes
I'm using a mySQL database but to be honest I think the only thing that was timing out was the browser, since hacking the registry to eliminate that timeout the only thing I can do is wonder why it only finishes half what it is supposed to do. I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb ram. I have a Athlon 900 that I could run it on but that's not a machine I want to tinker too much with - will go for a trusty old 450 first. Is it a surprise that it might take up to 20 or 30 minutes to build over 20,000 simple HTML files? Martin. -Original Message- From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]] Sent: 12 February 2001 11:54 To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Run a script for 20minutes I think there are timeouts on php as well: This is taken from the php.ini file. max_execution_time = 30 ; Maximum execution time of each script, in seconds I hope this helps you, you can find php.ini in your windows directory. If you are using a database, also check that for timeouts. D. -Original Message- From: Martin E. Koss [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 12:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Run a script for 20minutes Hi, I have PHP3 and MySQL on Win98 and am trying to run a script that loops through a file making process and it needs about 20 - 30 minutes to run. It generates static HTML files based on content in a database. I've increased Internet Explorer's timeout to allow for this but for some reason only about half the processing is done before everything seems to just stop. Does anyone know of a very basic way of executing a PHP script on a Win98 machine without the need for a browser? Or, another way of running this script that will take some time and create some 22,000 files through the process. Thanks, Martin. -- 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] Run a script for 20minutes
Something doesn't seem right here. I've executed scripts that have taken 4 hours to complete in the past and the only thing I had to set was: set_time_limit(0); Are you echoing anything to the screen, if not maybe you should after every loop increment, you may also need to use the flush() command. Hope this helps. Andy Woolley www.databasewatch.com - Original Message - From: "Martin E. Koss" <[EMAIL PROTECTED]> To: "Dominick Vansevenant" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 12:08 PM Subject: RE: [PHP] Run a script for 20minutes > I'm using a mySQL database but to be honest I think the only thing that was > timing out was the browser, since hacking the registry to eliminate that > timeout the only thing I can do is wonder why it only finishes half what it > is supposed to do. > > I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb > ram. I have a Athlon 900 that I could run it on but that's not a machine I > want to tinker too much with - will go for a trusty old 450 first. > > Is it a surprise that it might take up to 20 or 30 minutes to build over > 20,000 simple HTML files? > > Martin. > > -Original Message- > From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2001 11:54 > To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] Run a script for 20minutes > > > I think there are timeouts on php as well: > > This is taken from the php.ini file. > > max_execution_time = 30 ; Maximum execution time of each script, in > seconds > > I hope this helps you, you can find php.ini in your windows directory. > > If you are using a database, also check that for timeouts. > > D. > > -Original Message- > From: Martin E. Koss [mailto:[EMAIL PROTECTED]] > Sent: maandag 12 februari 2001 12:51 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Run a script for 20minutes > > > Hi, > I have PHP3 and MySQL on Win98 and am trying to run a script that loops > through a file making process and it needs about 20 - 30 minutes to run. It > generates static HTML files based on content in a database. I've increased > Internet Explorer's timeout to allow for this but for some reason only about > half the processing is done before everything seems to just stop. > > Does anyone know of a very basic way of executing a PHP script on a Win98 > machine without the need for a browser? Or, another way of running this > script that will take some time and create some 22,000 files through the > process. > > Thanks, > > Martin. > > > -- > 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] ssl
hi all, is there anything we should be aware of if we like that our php/mysql pages are working with an ssl-server ? thank you andre -- 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] Newbie dummy questions..... error messages
I get the following on one of my pages, Warning: Use of undefined constant month - assumed 'month' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 121 Warning: Use of undefined constant mday - assumed 'mday' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 122 Warning: Use of undefined constant year - assumed 'year' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 123 and the offending lines are; $month = $today[month]; $mday = $today[mday]; $year = $today[year]; So I change them to; $month = $today['month']; $mday = $today['mday']; $year = $today['year']; and the problem goes away... simple enough I suppose but what baffles me is. This site ran error free before, only after adding "Phorum" (anyone familiar with it?) do the original pages start to return these errors. Even more strange is they only return these error if one of the "phorum" pages is the referring page. I was also getting a lot of stuff like 'undefined variable' when doing; if ($brand == 'nut') { $item = "Chris King 2nut Headset"; } So I changed it to; if (isset($brand)) { if ($brand == 'nut') { $item = "Chris King 2nut Headset"; } } and it's fine, but again, I'd only get the error if one of the "phorum" pages was the referring page. Any thoughts/insight, anyone? BSDI BSD/OS 4.0.1 PHP Version 4.0B2 Zend Engine v0.90 -Brian -- 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] XML Parsing The Sequel II
here is come code (not exactly what you need) that sends an XML file(variable) to an XML server, and then gets the XML response from the server and writes it out to a file, returning the filename as the function return for the php file to resume its processing of the file in the XML parser (yet another function) Tried to cut out totally irrelavent or site specific stuff, and added a few quick comments. Hopefuly you can follow the logic. Dave in main PHP file in ./shipping/shipping.php \n"; } else { $xmlTransmit="\n # assembing and formatting the XML document for transmission \n"; fputs ($sockPointer, $xmlTransmit); # # get the response from the server # while (!feof($sockPointer)) { $socketResponse=fgets($sockPointer,4096); $xmlResponse="$xmlResponse".$socketResponse; } fclose($sockPointer); } # # here is the stuff you were really interested in # # get a timestamp to save the temp file as $xmlFile=time(); # create the temp file $xmlFile="./shipping/".$xmlFile.".xml"; $xfp=fopen($xmlFile,"w"); # write the temp file from the response variable fwrite($xfp,$xmlResponse); fclose($xfp); # return the temp filename for the parser to process return $xmlFile; } in ./shipping/shipping2.php HTML file out of the function return $returnShipTable; } ?> -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 11, 2001 9:12 AM To: 'Dave' Cc: PHP Mailing Listl (E-mail) Subject: RE: [PHP] XML Parsing The Sequel II But how can I automate the saving locally of the file !!! -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 14:44 To: PHP Mailing Listl (E-mail) Subject:RE: [PHP] XML Parsing The Sequel II here is some logic, I'm sure you can flesh out the code. fopen -r the URL read the results into a variable, fopen -w to write a local temp file (if the parser you build actially requires a "file") save it locally and pass the filename variable to your XML parser function if your parser can work from a variable, then just pass the read variable to your parser. Dave -- 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] fscanf problem
Hmm..noone has any ideas on this one? Its really driving me crazy - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 11, 2001 10:01 PM Subject: [PHP] fscanf problem > my code... > > WRITE TO FILE: > if ($item_file = fopen("$thisdir/item.dat", "w")) > { > fwrite($item_file, "$new_item\n$asin\n$description\namazon"); > fclose($item_file); > echo "$new_item created"; > } > > READ FROM FILE: >$item_file = fopen("$thisdir/item.dat", "r"); >fscanf($item_file, "%s\n%s\n%s\n%s", $display, $asin, $description, > $link); >fclose($item_file); > > PROBLEM: > $display comes out correct, but $asin, $descrition and $link are always > empty > > SAMPLE FILE: > MyItem > 11517 > ThisIsMyDecriptionWithoutSpaces > amazon > > - John Vanderbeck > - Admin, GameDesign > > > -- > 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] Run a script for 20minutes
If you don't want to run the script from the command line you can use ignore_user_abort with set_time_limit(?) in the script to allow you to close the browser and let it do its thing. > I have PHP3 and MySQL on Win98 and am trying to run a script that loops > through a file making process and it needs about 20 - 30 minutes to run. It > generates static HTML files based on content in a database. I've increased > Internet Explorer's timeout to allow for this but for some reason only about > half the processing is done before everything seems to just stop. > > Does anyone know of a very basic way of executing a PHP script on a Win98 > machine without the need for a browser? Or, another way of running this > script that will take some time and create some 22,000 files through the > process. > > -- 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] Capturing Emails
Hi, What is the best way to capture an email sent to a server so that I can copy it and send it to a number of emails selected from a db. I can do the scripting except for the capturing part (Presuming I have no idea when the email is sent to the server) Any links regarding this subject would be gratefully recieved. Thanks Ade -- 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] "wide open"
> > "Harmlessly" pushing an unlocked door open, and walking in and writing on > > a whiteboard "Gangstaboy was here" is just as much of a crime as > > unauthorizedly logging into a machine, no matter how "wide open" it is, > > even if "harm" is not done. > > I will freely admit I have seen and peeked into "wide open" websites in the > past, either through server misconfiguration or faulty scripts. But I have > never gone much further than maybe figuring out what was wrong and sending > an email to the owner. Most people are pretty receptive if you just send > them a kindly worded email. I agree -- 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] header() in apache/CGI mode PHP
I recently moved a site to a host that only supports PHP as a CGI, not mod_php. I cannot seem to set any headers using the header() function, so I can't set cookies either. Where can I find additional documentation as to the differences between the mod_php and CGI/commandline versions of PHP in apache? Thanks, -Aaron === As Isaac Newton would say now: If I see further than others, it is because I stand on the shoulders of giants too dumb to patent their discoveries. (Gregory Palast, http://www.observer.co.uk/ ) -- 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-CVS] cvs: php4 /ext/oci8 oci8.c
thies Mon Feb 12 06:36:28 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: @- Improved OCI8 dead-session detection. (Patch by: George Schlossnagle) Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.105 php4/ext/oci8/oci8.c:1.106 --- php4/ext/oci8/oci8.c:1.105 Sun Jan 7 03:43:07 2001 +++ php4/ext/oci8/oci8.cMon Feb 12 06:36:28 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: oci8.c,v 1.105 2001/01/07 11:43:07 thies Exp $ */ +/* $Id: oci8.c,v 1.106 2001/02/12 14:36:28 thies Exp $ */ /* TODO list: * @@ -109,6 +109,7 @@ PHP_RSHUTDOWN_FUNCTION(oci); PHP_MINFO_FUNCTION(oci); +static ub4 oci_handle_error(oci_connection *connection, ub4 errcode); static ub4 oci_error(OCIError *err_p, char *what, sword status); static int oci_ping(oci_server *server); static void oci_debug(const char *format, ...); @@ -488,7 +489,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "OCI8 Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.105 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.106 $"); #ifndef PHP_WIN32 php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION ); php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR ); @@ -730,6 +731,28 @@ } /* }}} */ + +static ub4 +oci_handle_error(oci_connection *connection, ub4 errcode) +{ + switch (errcode) { + case 0: + return 0; + break; + case 22: /* ORA-00022 Invalid session id */ + case 1012: /* ORA-01012: */ + case 3113: /* ORA-03113: end-of-file on communication channel */ + connection->open = 0; + connection->session->open = 0; + connection->session->server->open = 0; + return 0; + break; + default: + return 0; + break; + } +} + /* {{{ oci_error() */ static ub4 @@ -937,7 +960,9 @@ (dvoid **) 0); if (OCI(error)) { - oci_error(OCI(pError),"OCIDescriptorAlloc %d",OCI(error)); + ub4 error; + error = oci_error(OCI(pError),"OCIDescriptorAlloc %d",OCI(error)); + oci_handle_error(connection, error); return 0; } @@ -1060,6 +1085,9 @@ 0, OCI_ATTR_PREFETCH_MEMORY, statement->pError)); + if (statement->error) { + oci_handle_error(statement->conn, statement->error); + } prefetch = size; statement->error = oci_error(statement->pError, @@ -1070,6 +1098,9 @@ 0, OCI_ATTR_PREFETCH_ROWS, statement->pError)); +if (statement->error) { + oci_handle_error(statement->conn, statement->error); + } return 1; } @@ -1109,6 +1140,7 @@ OCIHandleFree(statement->pStmt, OCI_HTYPE_STMT); OCIHandleFree(statement->pError, OCI_HTYPE_ERROR); efree(statement); + oci_handle_error(connection, connection->error); return 0; } } @@ -1162,6 +1194,7 @@ statement->pError)); if (statement->error) { + oci_handle_error(statement->conn, statement->error); return 0; } @@ -1190,26 +1223,11 @@ NULL, NULL, mode)); - if (statement->binds) { zend_hash_apply(statement->binds, (int (*)(void *)) _oci_bind_post_exec); - } - - switch (statement->error) { - case 0: - break; - - case 3113: /* ORA-03113: end-of-file on communication channel */ - statement->conn->open = 0; - statement->conn->session->open = 0; - statement->conn->session->server->open = 0; - return 0; - break; - - default: - return 0; - break; } + oci_handle_error(statement->conn, statement->error); + return 0; } if (stmttype == OCI_STMT_
[PHP] Cannot get PHP w/GD to compile with Apache on RH
I am having trouble getting PHP, GD and apache compiled. I have successfully compiled PHP plus options with Apache, but can't seem to get this to work. I need to get ImageCreateFromJPEG working. I have searched the digest, newsgroups, etc., and haven;t found a solution that seems to work. I am using these components: OS: RedHat Linux 6.2 RPMs: gd-1.8.3-4 gd-devel-1.8.3-4 gd-progs-1.8.3-4 libjpeg-devel-6b-13 libjpeg-6b-13 PHP source: php-4.0.4pl1 Apache source: apache_1.3.14 I installed the RPM's above and then started the recompile of PHP (the last two lines I added for this option): ./configure \ --with-mysql \ --with-apache=../apache_1.3.14 \ --with-mcrypt \ --enable-track-vars \ --with-xml \ --with-curl \ --with-pspell \ --with-dom=/usr/include/libxml \ --with-gd \ --with-jpeg-dir=/usr/lib Durring the configure process, I do see: checking whether to include GD support... yes (static) checking for gdImageString16 in -lgd... (cached) yes checking for gdImagePaletteCopy in -lgd... (cached) yes checking for gdImageColorClosestHWB in -lgd... (cached) yes checking for compress in -lz... (cached) yes checking for png_info_init in -lpng... (cached) yes checking for gdImageColorResolve in -lgd... (cached) yes checking for gdImageCreateFromPng in -lgd... (cached) yes checking for gdImageCreateFromGif in -lgd... (cached) no checking for gdImageWBMP in -lgd... (cached) yes checking for gdImageCreateFromJpeg in -lgd... (cached) yes checking for gdImageCreateFromXpm in -lgd... (cached) yes checking whether to include FreeType 1.x support... yes checking for T1lib support... no Which leads me to believe the gd-1.8.3 RPM already has a link to the libjpeg libraries. (BTW, I have tried clearing the config.cache just to make sure, and it comes up fine even with a blank cache). PHP copntinues and compiles fine with no errors. (make, make install) Then I try and compile apache using the same configure script I always use: SSL_BASE=../openssl-0.9.6 \ RSA_BASE=../rsaref-2.0/local \ EAPI_MM=../mm-1.1.3 \ ./configure \ --enable-module=ssl \ --prefix=/usr/local/apache \ --enable-shared=ssl \ --activate-module=src/modules/php4/libphp4.a \ --activate-module=src/modules/perl/libperl.a \ --enable-module=vhost_alias \ --enable-module=rewrite And durring the make process, I get: -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -rdynamic -L/usr/local /lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lpspell -lmcrypt -lmcrypt -lz -lxml -lcurl -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/include/libxml/lib -lz -lm -lcrypt -lndbm -rdynamic -L/usr/local/lib /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lmm -ldl modules/php4/libphp4.a(gd.o): In function `php_free_gd_image': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:198: undefined reference to `gdImageDestroy' modules/php4/libphp4.a(gd.o): In function `php_if_imagecreate': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:460: undefined reference to `gdImageCreate' modules/php4/libphp4.a(gd.o): In function `_php_image_create_from_string': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:525: undefined reference to `gdNewDynamicCtx' modules/php4/libphp4.a(gd.o): In function `php_if_imagecreatefromstring': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:567: undefined reference to `gdImageCreateFromJpegCtx' /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:576: undefined reference to `gdImageCreateFromPngCtx' /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:594: undefined reference to `gdImageCreateFromWBMPCtx' modules/php4/libphp4.a(gd.o): In function `_php_image_create_from': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:676: undefined reference to `gdNewDynamicCtx' modules/php4/libphp4.a(gdttf.o): In function `tweenColorFetch': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gdttf.c:628: undefined reference to `gdImageColorResolve' modules/php4/libphp4.a(gdttf.o): In function `gdttf': /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gdttf.c:778: undefined reference to `TT_Init_FreeType' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/src/apache-php-mysql/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/src/apache-php-mysql/apache_1.3.14' make: *** [build] Error 2 Can someone give me some insight as to what I need to do? I have tried compiling gd, libjpeg, etc. from sources and get worse results (PHP doesn't see the ImageCreateFromJPEG function as well as most of the others that GD should be including).
[PHP] Re: [PHP-INST] Cannot get PHP w/GD to compile with Apache on RH
You should be using: --with-jpeg-dir=/usr Also make sure that you don't have the old gd.h from gd-1.3 lying around. ie. locate gd.h and make sure you only have one. rpm -qa | grep gd -Rasmus On Mon, 12 Feb 2001, Greg Kopp wrote: > I am having trouble getting PHP, GD and apache compiled. I have successfully > compiled PHP plus options with Apache, but can't seem to get this to work. I > need to get ImageCreateFromJPEG working. I have searched the digest, > newsgroups, etc., and haven;t found a solution that seems to work. > > I am using these components: > > OS: RedHat Linux 6.2 > > RPMs: > gd-1.8.3-4 > gd-devel-1.8.3-4 > gd-progs-1.8.3-4 > libjpeg-devel-6b-13 > libjpeg-6b-13 > > PHP source: php-4.0.4pl1 > Apache source: apache_1.3.14 > > I installed the RPM's above and then started the recompile of PHP (the last > two lines I added for this option): > > ./configure \ > --with-mysql \ > --with-apache=../apache_1.3.14 \ > --with-mcrypt \ > --enable-track-vars \ > --with-xml \ > --with-curl \ > --with-pspell \ > --with-dom=/usr/include/libxml \ > --with-gd \ > --with-jpeg-dir=/usr/lib > > Durring the configure process, I do see: > > checking whether to include GD support... yes (static) > checking for gdImageString16 in -lgd... (cached) yes > checking for gdImagePaletteCopy in -lgd... (cached) yes > checking for gdImageColorClosestHWB in -lgd... (cached) yes > checking for compress in -lz... (cached) yes > checking for png_info_init in -lpng... (cached) yes > checking for gdImageColorResolve in -lgd... (cached) yes > checking for gdImageCreateFromPng in -lgd... (cached) yes > checking for gdImageCreateFromGif in -lgd... (cached) no > checking for gdImageWBMP in -lgd... (cached) yes > checking for gdImageCreateFromJpeg in -lgd... (cached) yes > checking for gdImageCreateFromXpm in -lgd... (cached) yes > checking whether to include FreeType 1.x support... yes > checking for T1lib support... no > > Which leads me to believe the gd-1.8.3 RPM already has a link to the libjpeg > libraries. (BTW, I have tried clearing the config.cache just to make sure, > and it comes up fine even with a blank cache). > > PHP copntinues and compiles fine with no errors. (make, make install) > > Then I try and compile apache using the same configure script I always use: > > SSL_BASE=../openssl-0.9.6 \ > RSA_BASE=../rsaref-2.0/local \ > EAPI_MM=../mm-1.1.3 \ > ./configure \ > --enable-module=ssl \ > --prefix=/usr/local/apache \ > --enable-shared=ssl \ > --activate-module=src/modules/php4/libphp4.a \ > --activate-module=src/modules/perl/libperl.a \ > --enable-module=vhost_alias \ > --enable-module=rewrite > > And durring the make process, I get: > > -o httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a modules/perl/libperl.a main/libmain.a > ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -rdynamic -L/usr/local > /lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam > -ldl -lpspell -lmcrypt -lmcrypt -lz -lxml -lcurl -lresolv -lm -ldl -lcrypt > -lnsl -lresolv -L/usr/include/libxml/lib -lz -lm -lcrypt -lndbm -rdynamic > -L/usr/local/lib > /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe > rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lmm > -ldl > modules/php4/libphp4.a(gd.o): In function `php_free_gd_image': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:198: undefined reference > to `gdImageDestroy' > modules/php4/libphp4.a(gd.o): In function `php_if_imagecreate': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:460: undefined reference > to `gdImageCreate' > modules/php4/libphp4.a(gd.o): In function `_php_image_create_from_string': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:525: undefined reference > to `gdNewDynamicCtx' > modules/php4/libphp4.a(gd.o): In function `php_if_imagecreatefromstring': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:567: undefined reference > to `gdImageCreateFromJpegCtx' > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:576: undefined reference > to `gdImageCreateFromPngCtx' > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:594: undefined reference > to `gdImageCreateFromWBMPCtx' > modules/php4/libphp4.a(gd.o): In function `_php_image_create_from': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:676: undefined reference > to `gdNewDynamicCtx' > > > > modules/php4/libphp4.a(gdttf.o): In function `tweenColorFetch': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gdttf.c:628: undefined > reference to `gdImageColorResolve' > modules/php4/libphp4.a(gdttf.o): In function `gdttf': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gdttf.c:778: undefined > reference to `TT_Init_FreeType' > collect2: ld returned 1 exit status > make[2]: *** [target_static] Error 1 > make[2]: Leaving directory `/usr/src/ap
[PHP] PHP BOF in Stockholm
There will be a PHP BOF at the Nordu2001 (www.nordu.org) conference on Thursday Feb.15 at the Stockholm City Conference Center room 355 from 17:00 to 18:00. You do not need to need to be registered for the conference to attend the BOF. Also, I am giving a full day PHP tutorial tomorrow (Tuesday Feb.13) from 09:00 to 17:00 here at Nordu2001. See http://www.nordu.org/NordU2001/ for details. -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]
Re: [PHP] Cannot get PHP w/GD to compile with Apache on RH
Greg, I've done this many a time and haven't ever been able to do it from rpms. I install the gd stuff including libjpeg and libpng into the same directory. In my case it's /usr/local/gd. Then you should specify the path like --with-gd=/usr/local/gd . This has always worked for me. Jason --- Greg Kopp <[EMAIL PROTECTED]> wrote: > I am having trouble getting PHP, GD and apache > compiled. I have successfully > compiled PHP plus options with Apache, but can't > seem to get this to work. I > need to get ImageCreateFromJPEG working. I have > searched the digest, > newsgroups, etc., and haven;t found a solution that > seems to work. > > I am using these components: > > OS: RedHat Linux 6.2 > > RPMs: > gd-1.8.3-4 > gd-devel-1.8.3-4 > gd-progs-1.8.3-4 > libjpeg-devel-6b-13 > libjpeg-6b-13 > > PHP source: php-4.0.4pl1 > Apache source: apache_1.3.14 > > I installed the RPM's above and then started the > recompile of PHP (the last > two lines I added for this option): > > ./configure \ > --with-mysql \ > --with-apache=../apache_1.3.14 \ > --with-mcrypt \ > --enable-track-vars \ > --with-xml \ > --with-curl \ > --with-pspell \ > --with-dom=/usr/include/libxml \ > --with-gd \ > --with-jpeg-dir=/usr/lib > > Durring the configure process, I do see: > > checking whether to include GD support... yes > (static) > checking for gdImageString16 in -lgd... (cached) yes > checking for gdImagePaletteCopy in -lgd... (cached) > yes > checking for gdImageColorClosestHWB in -lgd... > (cached) yes > checking for compress in -lz... (cached) yes > checking for png_info_init in -lpng... (cached) yes > checking for gdImageColorResolve in -lgd... (cached) > yes > checking for gdImageCreateFromPng in -lgd... > (cached) yes > checking for gdImageCreateFromGif in -lgd... > (cached) no > checking for gdImageWBMP in -lgd... (cached) yes > checking for gdImageCreateFromJpeg in -lgd... > (cached) yes > checking for gdImageCreateFromXpm in -lgd... > (cached) yes > checking whether to include FreeType 1.x support... > yes > checking for T1lib support... no > > Which leads me to believe the gd-1.8.3 RPM already > has a link to the libjpeg > libraries. (BTW, I have tried clearing the > config.cache just to make sure, > and it comes up fine even with a blank cache). > > PHP copntinues and compiles fine with no errors. > (make, make install) > > Then I try and compile apache using the same > configure script I always use: > > SSL_BASE=../openssl-0.9.6 \ > RSA_BASE=../rsaref-2.0/local \ > EAPI_MM=../mm-1.1.3 \ > ./configure \ > --enable-module=ssl \ > --prefix=/usr/local/apache \ > --enable-shared=ssl \ > --activate-module=src/modules/php4/libphp4.a \ > --activate-module=src/modules/perl/libperl.a \ > --enable-module=vhost_alias \ > --enable-module=rewrite > > And durring the make process, I get: > > -o httpd buildmark.o modules.o > modules/standard/libstandard.a > modules/php4/libphp4.a modules/perl/libperl.a > main/libmain.a > ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib > -rdynamic -L/usr/local > /lib -Lmodules/php4 -L../modules/php4 > -L../../modules/php4 -lmodphp4 -lpam > -ldl -lpspell -lmcrypt -lmcrypt -lz -lxml -lcurl > -lresolv -lm -ldl -lcrypt > -lnsl -lresolv -L/usr/include/libxml/lib -lz -lm > -lcrypt -lndbm -rdynamic > -L/usr/local/lib > /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a > -L/usr/lib/pe > rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm > -lc -lposix -lcrypt -lmm > -ldl > modules/php4/libphp4.a(gd.o): In function > `php_free_gd_image': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:198: > undefined reference > to `gdImageDestroy' > modules/php4/libphp4.a(gd.o): In function > `php_if_imagecreate': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:460: > undefined reference > to `gdImageCreate' > modules/php4/libphp4.a(gd.o): In function > `_php_image_create_from_string': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:525: > undefined reference > to `gdNewDynamicCtx' > modules/php4/libphp4.a(gd.o): In function > `php_if_imagecreatefromstring': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:567: > undefined reference > to `gdImageCreateFromJpegCtx' > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:576: > undefined reference > to `gdImageCreateFromPngCtx' > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:594: > undefined reference > to `gdImageCreateFromWBMPCtx' > modules/php4/libphp4.a(gd.o): In function > `_php_image_create_from': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gd.c:676: > undefined reference > to `gdNewDynamicCtx' > > > > modules/php4/libphp4.a(gdttf.o): In function > `tweenColorFetch': > /usr/src/apache-php-mysql/php-4.0.4pl1/ext/gd/gdttf.c:628: > undefined > reference to `gdImageColorResolve' > modules/php4/libphp4.a(gdttf.o): In function > `gdttf': > /usr/src/apache-php-
Re: [PHP] Capturing Emails
Ade, If you're running Unix/Linux, I would recommend using Procmail. It does the local delivery for mail. You would setup processing rules and can work with copies of emails for processing without disturbing delivery. Useful Procmail links Top site: http://www.ii.com/internet/robots/procmail/ Mini-tutorial: http://www.linuxgazette.com/issue14/procmail.html Manual pages: http://www.voicenet.com/~dfma/intro.html Mailing list searchable archives: http://www.xray.mpe.mpg.de/mailing-lists/procmail/ Hope that helps, Jason --- [EMAIL PROTECTED] wrote: > Hi, > > What is the best way to capture an email sent to a > server so that I can copy > it and send it to a number of emails selected from a > db. I can do the > scripting except for the capturing part (Presuming I > have no idea when the > email is sent to the server) > > Any links regarding this subject would be gratefully > recieved. > > Thanks > Ade > > -- > 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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! 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] Problem with enctype=multipart/form-data forms
Hi, I'm having a weird problem with a recently upgraded box. Its a RedHat + PHP4.0.4pl1-3 + Apache-1.3.14-3 box (All packages were installed from RedHat official RPMs) I have a very simple form with enctype=multipart/form-data. This will allow some users to upload files. This code was working perfectly with previous versions and now that I've updated PHP and Apache I get he following: After the submit, the script that receives field contents reports an extra \r BEFORE the real field content, indicated by users on previous script (with the form). With plain text fields it would be no problem, I can use ltrim and discard the extra \r, but what happens with the file field is more complicated, I can't trim this field, but with the extra \r it doens't validate as a valid file. I've seen a post very similar in phpbuilder.com with the same exact problem and with the same exact versions of Apache/PHP. I don't exactly know if this a PHP issue or Apache problem. Maybe some of you could enlighnten me on this question. TIA. --- System Administrator ([EMAIL PROTECTED]) ZBit - Software, Lda. (http://www.zbit.pt) Rua Ponte de Pau, N.º 19 3510-100 VISEU Tel./FAX: 232 428 753 -- 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] passthru environment variables
Tim Ward <[EMAIL PROTECTED]> wrote: > fpassthru doesn't include the code in your php code. In just dumps the file > to output as it runs. I was using the command "passthru", which is supposed to pass the *output* of an external program through to standard out. In other words, let's say I wanted people to be able to see how long my system was up, I could have a PHP program display other information and then call the Linux command "uptime" and pass the result to the user's browser. For the application that I'm working on, I need to use "passthru" (or possibly "system") rather than having a line or two of output passed back to the PHP program because the external program I'm using will produce up to hundreds of pages of output. >Anything defined in PHP (inluding variables and > functions) in the file passed through will not be available to the calling > program. I want the variables in the PHP program to be available to the external program through the shell environment of the forked external program. -- 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] Time in php problem....
hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to the web 4) accumulate all the time everyday 5) then multiple accumulate with working rate ( X ). 6.) finally output to web ( html form ) pls help ! thanks !
[PHP] MySQL fields
Hello, What type of field should I use if I don't want it to have a max length of characters? 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-CVS] cvs: php4 /main safe_mode.c
andiMon Feb 12 07:47:38 2001 EDT Modified files: /php4/main safe_mode.c Log: - Fix warning PR: Submitted by: Reviewed by: Obtained from: Index: php4/main/safe_mode.c diff -u php4/main/safe_mode.c:1.25 php4/main/safe_mode.c:1.26 --- php4/main/safe_mode.c:1.25 Tue Jan 9 03:58:57 2001 +++ php4/main/safe_mode.c Mon Feb 12 07:47:38 2001 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <[EMAIL PROTECTED]> | +--+ */ -/* $Id: safe_mode.c,v 1.25 2001/01/09 11:58:57 thies Exp $ */ +/* $Id: safe_mode.c,v 1.26 2001/02/12 15:47:38 andi Exp $ */ #include "php.h" @@ -124,7 +124,7 @@ SLS_FETCH(); if (SG(rfc1867_uploaded_files)) { - if (zend_hash_exists(SG(rfc1867_uploaded_files),filename,strlen(filename)+1)) { + if (zend_hash_exists(SG(rfc1867_uploaded_files), (char *) +filename, strlen(filename)+1)) { return 1; } } -- PHP CVS 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] To The Hacker: CodeBoy
> Don't worry about him Phillip. And you Jonathon erase all these files and > contact Phillip *personally* telling him more what his security wholes are, > so he'll be grateful to you. Just to clear things up, my only comments mentioned that this is silly and calling someone a "hacker" publically is very bad, whether it's true or false it's still very very bad. I wasn't the crackee or cracker. So, regarding the above : s/Phillip/rswfire/g No biggy ... this whole ordeal seems over. Regards, Philip -- 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 fields
text field > Hello, > > What type of field should I use if I don't want it to have a max length of > characters? > > Thank you, > -- 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] Time in php problem....
almost didn't respond to this given the wide dissemination and the broad nature of the question can't be done with any accuracy. you could, create a session or uservariable... have that transmitted with a screen refresh, or anytime your consultant moves within the site resetting an internal timestamp. failure to retransmit via refresh or movement within a specified time would cause expirey, have a function that logs the expirey date and perform your other functions from there (thats the easy part) This doesn't prevent your consultant from keeping a browser window open so that it can refresh. You could use javascipt code on your page with a popup window where your consultant would have to press submt to be logged in as online every so often, but the annoyance factor would be absurd. In short, try pounding out a base from whence to work from... you are likely to get specific responses to specific questions or problems... what you are currently asking for is a prepackaged solutions. Dave -Original Message- From: Ng Kok Chun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 3:11 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; "mailto:webmaster"@dark-library.com; [EMAIL PROTECTED] Subject: [PHP] Time in php problem hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to the web 4) accumulate all the time everyday 5) then multiple accumulate with working rate ( X ). 6.) finally output to web ( html form ) pls help ! thanks ! -- 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] Include files
I have an include file foo.inc. I want to call a function that is in another include file,say anotherfoo.inc, from the foo.inc. //Foo.inc include "c:\\...\\anotherfoo.inc"; //other code //end of include can I call an include from another include? I tried the above but it fails opening the other include. Should I have the ' "include"c:\\...\\anotherfoo.inc" ' in the file that includes the Foo.inc? ryan -- 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] character problem
I've created a PHP script that is called from a form to send an email. The contents of the email is a hidden value in the form named "info," and is typically a paragraph of text. It works fine, however, for some reason, the apostrophy character always gets emailed looking like this: /' I've tried everything to get around this. Any ideas? Here's my script and form: Form: Email this product info to a friend Script file named emailsender.php: The product info has been mailed to: $email"; $to = $email; $sender ="[EMAIL PROTECTED]"; MAIL( "$email", # address to send $info email to "Product Info", # subject "$info", # hidden form field containing text to email "From: $sender\nX-Mailer: PHP/" . phpversion()); ?> Thanks in advance, John __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! 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]
RE: [PHP] character problem
PHP is doing what it should to your form input. It automatically performs "addslashes" to all form input so that the variables are parsed correctly on the receiveing end. do a "stripslashes" to get rid of it. read the manual on these two and it will all be explained. Dave -Original Message- From: John P. Donaldson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 11:42 AM To: [EMAIL PROTECTED] Subject: [PHP] character problem I've created a PHP script that is called from a form to send an email. The contents of the email is a hidden value in the form named "info," and is typically a paragraph of text. It works fine, however, for some reason, the apostrophy character always gets emailed looking like this: /' I've tried everything to get around this. Any ideas? Here's my script and form: Form: Email this product info to a friend Script file named emailsender.php: The product info has been mailed to: $email"; $to = $email; $sender ="[EMAIL PROTECTED]"; MAIL( "$email", # address to send $info email to "Product Info", # subject "$info", # hidden form field containing text to email "From: $sender\nX-Mailer: PHP/" . phpversion()); ?> Thanks in advance, John __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! 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] MySQL
Hello, I am new to MySql and I am trying to make a simple script get info from a table. Can someone please look at the below code and tell me if they see what is wrong? The error I get is: Couldn't execute query. Code: \n"; echo "Text: $text\n"; echo "Refrence Number: $ref_num\n"; } // free resources and close connection mysql_free_result($sql_result); mysql_close($connection); ?> 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] What Does This Mean?
Hi; I just ran into the following error while doing maintenance on my RedHat box: >>> Unsatisfied dependencies for mod-php3-mysql-3.0.8-2: mod-php3 >= 3.0.8 <<< What does this mean and how do I fix it? TIA, BenO -- 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 needed...
This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is spaces in between words, leave them alone. Suggestions? -- Jesse Swensen [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] imagecolorallocate / imagesetpixel / palette size?
On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) > Its like the "palette" only holds 256 pixels or something, what's > the deal with that? > > Anyone experienced this before? I've looked through the GD library > documentation > at boutell.com, i've looked through php.net, and every search engine on the > internet, and I can't seem to find out what is going on. You're right, the palette only holds 256 colors. The reason for this is that GD was originally written for GIFs only. JPEGs were added on later, and then PNGs were put in as a drop-in replacement for GIFs (Patent issues). But the library was never extended to support high color. If you're using Unix, one alternative could be php_imlib. http://mmcc.cx/php_imlib/ Matt -- 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
I fixed it, Me so stupid, I had it order by a field that wasn't there. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 9:15 AM To: PHP User Group Subject: [PHP] MySQL Hello, I am new to MySql and I am trying to make a simple script get info from a table. Can someone please look at the below code and tell me if they see what is wrong? The error I get is: Couldn't execute query. Code: \n"; echo "Text: $text\n"; echo "Refrence Number: $ref_num\n"; } // free resources and close connection mysql_free_result($sql_result); mysql_close($connection); ?> 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]
RE: [PHP] character problem
On Mon, 12 Feb 2001, Dave VanAuken wrote: > PHP is doing what it should to your form input. It automatically > performs "addslashes" to all form input so that the variables are > parsed correctly on the receiveing end. > > do a "stripslashes" to get rid of it. Yes and it's doing this via the magic_quotes_gpc setting which is currently set to 'on' within the server. Read about this setting here : http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc As stated by Dave, you want stripslashes() before mailing and consequently, addslashes() adds them. Regards, Philip > -Original Message- > From: John P. Donaldson [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 11:42 AM > To: [EMAIL PROTECTED] > Subject: [PHP] character problem > > > I've created a PHP script that is called from a form > to send an email. The contents of the email is a > hidden value in the form named "info," and is > typically a paragraph of text. It works fine, > however, for some reason, the apostrophy character > always gets emailed looking like this: /' > > I've tried everything to get around this. Any ideas? > Here's my script and form: > > Form: > > action="emailsender.php"> > Email this product info to a friend > > > > > > > Script file named emailsender.php: > > print "The product info has been mailed to: > $email"; > > $to = $email; > $sender ="[EMAIL PROTECTED]"; > > MAIL( > "$email", # address to send $info email to > "Product Info", # subject > "$info", # hidden form field containing text to email > "From: $sender\nX-Mailer: PHP/" . phpversion()); > > ?> > > > Thanks in advance, > John > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! 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 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
For this sort of thing, replacing statements such as : or die("Couldn't execute query."); With : or die(mysql_error()); Would have instantly told you the problem, in nice human readable format. Regards, Philip On Mon, 12 Feb 2001, Brandon Orther wrote: > I fixed it, > > Me so stupid, I had it order by a field that wasn't there. > > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 9:15 AM > To: PHP User Group > Subject: [PHP] MySQL > > > Hello, > > I am new to MySql and I am trying to make a simple script get info from a > table. Can someone please look at the below code and tell me if they see > what is wrong? The error I get is: Couldn't execute query. > > Code: > > // create connection > $connection = mysql_connect("localhost","*","*") > or die("Couldn't make connection."); > > // select database > $db = mysql_select_db("nasty_db", $connection) > or die("Couldn't select database."); > > // create SQL statement > $sql = "SELECT keywords, text, ref_num > FROM tech > ORDER BY last_name ASC"; > > // execute SQL query and get result > $sql_result = mysql_query($sql,$connection) > or die("Couldn't execute query."); > > while ($row = mysql_fetch_array($sql_result)) { > $keywords = $row["keywords"]; > $text = $row["text"]; > $ref_num = $row["ref_num"]; > > echo "Keywords: $keywords\n"; > echo "Text: $text\n"; > echo "Refrence Number: $ref_num\n"; > } > > // free resources and close connection > mysql_free_result($sql_result); > mysql_close($connection); > > ?> > > 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] Here you have, ;o)
Hi: Check This! -- 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] imagecolorallocate / imagesetpixel / palette size?
You are kidding me, right? I can't believe it. In this age, 256 colors just doesn't cut the mustard. Oh well, free is free, ya get what ya pay for. And here I was all excited about the GD library. Thanks Dan -Original Message- From: Matt McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 10:16 AM To: Dan Harrington Cc: [EMAIL PROTECTED] Subject: Re: [PHP] imagecolorallocate / imagesetpixel / palette size? On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) > Its like the "palette" only holds 256 pixels or something, what's > the deal with that? > > Anyone experienced this before? I've looked through the GD library > documentation > at boutell.com, i've looked through php.net, and every search engine on the > internet, and I can't seem to find out what is going on. You're right, the palette only holds 256 colors. The reason for this is that GD was originally written for GIFs only. JPEGs were added on later, and then PNGs were put in as a drop-in replacement for GIFs (Patent issues). But the library was never extended to support high color. If you're using Unix, one alternative could be php_imlib. http://mmcc.cx/php_imlib/ Matt -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard-logo.h midgard-root.php midgard-team.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php4_porting.txt php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c test-db.tar.gz topic.c /ext/midgard/logo midgard-logo.gif mklogo.c
emile Mon Feb 12 09:23:37 2001 EDT Added files: /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard-logo.h midgard-root.php midgard-team.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php4_porting.txt php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c test-db.tar.gz topic.c /php4/ext/midgard/logo midgard-logo.gif mklogo.c Log: Midgard 1.4.1 initial checkin Index: php4/ext/midgard/.cvsignore +++ php4/ext/midgard/.cvsignore deps libs CVS Makefile access.lo access.o access.slo acinclude.m4 aclocal.m4 article.lo article.o article.slo attachment.lo attachment.o attachment.slo build calendar.lo calendar.o calendar.slo config.cache config.guess config.log config.status config.sub config_vars.mk configure configure.in dynlib.m4 element.lo element.o element.slo event.lo event.o event.slo eventmember.lo eventmember.o eventmember.slo file.lo file.o file.slo group.lo group.o group.slo host.lo host.o host.slo image.lo image.o image.slo install-sh libs.mk libtool ltconfig ltmain.sh mail.lo mail.o mail.slo member.lo member.o member.slo mgd_errno.lo mgd_errno.o mgd_errno.slo midgard.la midgard.lo midgard.o midgard.slo missing mkinstalldirs modules oop.lo oop.o oop.slo page.lo page.o page.slo pageelement.lo pageelement.o pageelement.slo pagelink.lo pagelink.o pagelink.slo parameter.lo parameter.o parameter.slo person.lo person.o person.slo php_config.h php_config.h.in preferences.lo preferences.o preferences.slo preparser-parser.h preparser-parser.lo preparser-parser.o preparser-parser.slo preparser-scanner.lo preparser-scanner.o preparser-scanner.slo preparser.c.bk preparser.lo preparser.o preparser.slo sitegroup.lo sitegroup.o sitegroup.slo snippet.lo snippet.o snippet.slo snippetdir.lo snippetdir.o snippetdir.slo style.lo style.o style.slo topic.lo topic.o topic.slo Index: php4/ext/midgard/Makefile.in +++ php4/ext/midgard/Makefile.in # $Id: Makefile.in,v 1.1 2001/02/12 17:23:36 emile Exp $ LTLIBRARY_NAME= libmidgard.la LTLIBRARY_SOURCES = mgd_errno.c midgard.c article.c \ parameter.c attachment.c oop.c \ access.c topic.c element.c mail.c \ group.c file.c host.c image.c member.c \ calendar.c event.c eventmember.c page.c \ pageelement.c pagelink.c person.c \ preferences.c snippet.c \ snippetdir.c style.c sitegroup.c \ preparser-parser.c preparser-scanner.c \ preparser.c LTLIBRARY_SHARED_NAME = midgard.la LTLIBRARY_SHARED_LIBADD = $(MIDGARD_SHARED_LIBADD) YFLAGS=-d -v -p mgd EXTRA_CFLAGS=-ggdb -Wall `$(GLIBCONFIG) --cflags` include $(top_srcdir)/build/dynlib.mk mgd_errno.c mgd_errno.h: mgd_errno.pl perl mgd_errno.pl Index: php4/ext/midgard/access.c +++ php4/ext/midgard/access.c /* $Id: access.c,v 1.1 2001/02/12 17:23:36 emile Exp $ * * Copyright (C) 1999 Jukka Zitting <[EMAIL PROTECTED]> * Copyright (C) 2000 The Midgard Project ry * Copyright (C) 2000 Emiliano Heyns, Aurora SA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include
Re: [PHP] Include files
Conover, Ryan wrote: > I have an include file foo.inc. I want to call a function that is in > another include file,say anotherfoo.inc, from the foo.inc. [..] > can I call an include from another include? Sure. > I tried the above but it fails opening the other include. > > Should I have the > ' "include"c:\\...\\anotherfoo.inc" ' > in the file that includes the Foo.inc? No, you can include what and where you want (provided it's valid PHP), but if you use relative paths, the paths all have to be relativ to the original file, the file that is called by the browser (or whatever you use to call your scripts). regards Wagner -- Three may keep a secret, if two of them are dead. -- 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] imagecolorallocate / imagesetpixel / palette size?
That's because it was originally designed for gif's. Gif's only have a 256 color palette.. > -Original Message- > From: Dan Harrington [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 12:30 PM > To: Matt McClanahan > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] imagecolorallocate / imagesetpixel / palette size? > > > You are kidding me, right? > I can't believe it. In this age, 256 colors just doesn't cut the mustard. > Oh well, free is free, ya get what ya pay for. > And here I was all excited about the GD library. > > Thanks > Dan > > -- 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] header() in apache/CGI mode PHP
I think you can just search the archives for it. I am sure it was covered here many times. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Aaron Held [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 12:21 AM To: [EMAIL PROTECTED] Subject: [PHP] header() in apache/CGI mode PHP I recently moved a site to a host that only supports PHP as a CGI, not mod_php. I cannot seem to set any headers using the header() function, so I can't set cookies either. Where can I find additional documentation as to the differences between the mod_php and CGI/commandline versions of PHP in apache? Thanks, -Aaron === As Isaac Newton would say now: If I see further than others, it is because I stand on the shoulders of giants too dumb to patent their discoveries. (Gregory Palast, http://www.observer.co.uk/ ) -- 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] Time in php problem....
All I can tell is that there's a pain of calculating when the user leaves the site. Let's say his connection drops. What's then? How do you know he didn't spend on that page 7 hours? I think you should have a file included in every page he visits which, using sessions, adds the TimeStamp to the database. Then you can see - if session exists means he continues, if not then this is the first time he is in. Something like that. Put all in the database and play with it later-on. As of the rest, I think you can do it all. The only concern is for you to accept that his last record is a hit of a page (or log-of button) and not his closing window. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Ng Kok Chun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 5:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; "mailto:webmaster"@dark-library.com; [EMAIL PROTECTED] Subject: [PHP] Time in php problem hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to the web 4) accumulate all the time everyday 5) then multiple accumulate with working rate ( X ). 6.) finally output to web ( html form ) pls help ! thanks ! -- 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 help needed...
On Mon, Feb 12, 2001 at 12:15:04PM -0500, Jesse Swensen wrote: > This should be a quick one, but I can't seem to wrap my brain around it. > All I need to do is replace leading or trailing spaces with underscores. If > there is spaces in between words, leave them alone. $fix = ereg_replace("(^ )|( $)", "_", $checkme); -- Jason Stechschulte [EMAIL PROTECTED] -- /* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. */ -- Larry Wall in toke.c from the perl source code -- 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 fields
Text field will support something over 65,000 characters read the docs on mySQL... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 1:19 AM To: PHP User Group Subject: [PHP] MySQL fields Hello, What type of field should I use if I don't want it to have a max length of characters? 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]
RE: [PHP] Include files
Yes, you can include foo.php which has another include in it and another and another they will all appear to you as a one single file. But, be careful though, do not reinclude them, or you'll create an infinite loop.. use include_once instead Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 1:46 AM To: [EMAIL PROTECTED] Subject: [PHP] Include files I have an include file foo.inc. I want to call a function that is in another include file,say anotherfoo.inc, from the foo.inc. //Foo.inc include "c:\\...\\anotherfoo.inc"; //other code //end of include can I call an include from another include? I tried the above but it fails opening the other include. Should I have the ' "include"c:\\...\\anotherfoo.inc" ' in the file that includes the Foo.inc? ryan -- 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 help needed...
rtrim() www.php.net/rtrim Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jesse Swensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Regex help needed... This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is spaces in between words, leave them alone. Suggestions? -- Jesse Swensen [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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mg
> emile Mon Feb 12 09:23:37 2001 EDT > > Added files: > /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c > article.c attachment.c calendar.c config.m4 > element.c event.c eventmember.c file.c fudge > genentry.pl group.c host.c image.c mail.c > member.c mgd_access.h mgd_article.h > mgd_attachment.h mgd_calendar.h mgd_element.h > mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h > mgd_eventmember.h mgd_file.h mgd_group.h > mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h > mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h > mgd_pageelement.h mgd_pagelink.h mgd_person.h > mgd_preferences.h mgd_preparser.h mgd_sitegroup.h > mgd_snippet.h mgd_snippetdir.h mgd_style.h > mgd_topic.h midgard-logo.h midgard-root.php > midgard-team.h midgard.c mkall oop.c page.c > pageelement.c pagelink.c parameter.c person.c > php4_porting.txt php_midgard.h preferences.c > preparser-parser.y preparser-scanner.l > preparser.c sitegroup.c snippet.c snippetdir.c > style.c test-db.tar.gz topic.c > /php4/ext/midgard/logo midgard-logo.gif mklogo.c > Log: > Midgard 1.4.1 initial checkin > > Hopefully without risking another lengthy thread... What does this extension allow me (the common web developer to do)? -Sterling -- PHP CVS 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] XML Parsing The Sequel II
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:[PHP] XML Parsing The Sequel II Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have been solved and I am know able to parse any XML without problems (I hope). But I have one question: In order to parse an XML you have to tell your parser where to find the document: $xml_file = ''test.xml'; This works perfectly, but If you want to get the XML files from Nasdaq you have to say $xml_file = http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=NETA; This however doe not work !!! Why? How can I overcome this problem? -- 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-CVS] cvs: php4 /ext/pdf Makefile.in config.m4 pdf.c
rjs Mon Feb 12 09:50:39 2001 EDT Modified files: /php4/ext/pdf Makefile.in config.m4 pdf.c Log: added module support (for dl()) for PDFlib the PDF files now tell that they are generated by the PHP binding. Index: php4/ext/pdf/Makefile.in diff -u php4/ext/pdf/Makefile.in:1.6 php4/ext/pdf/Makefile.in:1.7 --- php4/ext/pdf/Makefile.in:1.6Mon May 1 15:38:31 2000 +++ php4/ext/pdf/Makefile.inMon Feb 12 09:50:37 2001 @@ -1,5 +1,8 @@ LTLIBRARY_NAME= libpdf.la LTLIBRARY_SOURCES = pdf.c +LTLIBRARY_SHARED_NAME= libpdf_php.la +PDFLIB_SHARED_LIBBADD= -lpdf +LTLIBRARY_SHARED_LIBADD = $(PDFLIB_SHARED_LIBBADD) include $(top_srcdir)/build/dynlib.mk Index: php4/ext/pdf/config.m4 diff -u php4/ext/pdf/config.m4:1.13 php4/ext/pdf/config.m4:1.14 --- php4/ext/pdf/config.m4:1.13 Sun Mar 26 11:47:25 2000 +++ php4/ext/pdf/config.m4 Mon Feb 12 09:50:38 2001 @@ -1,18 +1,19 @@ -dnl $Id: config.m4,v 1.13 2000/03/26 19:47:25 sas Exp $ +dnl $Id: config.m4,v 1.14 2001/02/12 17:50:38 rjs Exp $ AC_MSG_CHECKING(whether to include Pdflib 3.x support) -AC_ARG_WITH(pdflib, -[ --with-pdflib[=DIR] Include pdflib 3.x support. - DIR is the pdflib install directory, - defaults to /usr/local.], -[ -echo $withval - case "$withval" in + +PHP_ARG_WITH(pdflib,whether to include pdflib support, +[ --with-pdflib[=DIR] Include pdflib 3.x support. DIR is the pdflib + base install directory, defaults to /usr/local + Set DIR to "shared" to build as dl, or "shared,DIR" + to build as dl and still specify DIR.]) + + case "$PHP_PDFLIB" in no) AC_MSG_RESULT(no) ;; yes) AC_MSG_RESULT(yes) - PHP_EXTENSION(pdf) + PHP_EXTENSION(pdf, $ext_shared) old_LDFLAGS=$LDFLAGS old_LIBS=$LIBS LIBS="$LIBS -ltiff -ljpeg -lpng -lz" @@ -20,7 +21,8 @@ [AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir= and --with-jpeg-dir=)]) LIBS=$old_LIBS LDFLAGS=$old_LDFLAGS - AC_ADD_LIBRARY(pdf) + PHP_SUBST(PDFLIB_SHARED_LIBADD) + AC_ADD_LIBRARY(pdf, PDFLIB_SHARED_LIBADD) AC_ADD_LIBRARY(tiff) AC_ADD_LIBRARY(png) AC_ADD_LIBRARY(jpeg) @@ -30,7 +32,7 @@ test -f $withval/include/pdflib.h && PDFLIB_INCLUDE="$withval/include" if test -n "$PDFLIB_INCLUDE" ; then AC_MSG_RESULT(yes) -PHP_EXTENSION(pdf) +PHP_EXTENSION(pdf, $ext_shared) old_withval=$withval if test $HAVE_ZLIB; then @@ -113,12 +115,10 @@ AC_CHECK_LIB(pdf, PDF_show_boxed, [AC_DEFINE(HAVE_PDFLIB,1,[ ]) PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -lpdf"], [AC_MSG_ERROR(pdflib extension requires pdflib 3.x.)]) LIBS=$old_LIBS -AC_ADD_LIBRARY_WITH_PATH(pdf, $withval/lib) + PHP_SUBST(PDFLIB_SHARED_LIBADD) +AC_ADD_LIBRARY_WITH_PATH(pdf, $withval/lib, PDFLIB_SHARED_LIBADD) AC_ADD_INCLUDE($PDFLIB_INCLUDE) else AC_MSG_RESULT(no) fi ;; esac -],[ - AC_MSG_RESULT(no) -]) Index: php4/ext/pdf/pdf.c diff -u php4/ext/pdf/pdf.c:1.69 php4/ext/pdf/pdf.c:1.70 --- php4/ext/pdf/pdf.c:1.69 Wed Jan 31 23:07:09 2001 +++ php4/ext/pdf/pdf.c Mon Feb 12 09:50:38 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: pdf.c,v 1.69 2001/02/01 07:07:09 steinm Exp $ */ +/* $Id: pdf.c,v 1.70 2001/02/12 17:50:38 rjs Exp $ */ /* pdflib 2.02 ... 3.0x is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997-1999 Thomas Merz. 2000-2001 PDFlib GmbH */ @@ -29,9 +29,9 @@ #include "ext/standard/head.h" #include "ext/standard/info.h" #include "ext/standard/file.h" -#include "ext/gd/php_gd.h" #if HAVE_LIBGD13 +#include "ext/gd/php_gd.h" #include "gd.h" #endif @@ -193,25 +193,14 @@ ZEND_GET_MODULE(pdf) #endif -static void _free_pdf_image(zend_rsrc_list_entry *rsrc) -{ - int *pdf_image = (int *)rsrc->ptr; - if(pdf_image) efree(pdf_image); -} - static void _free_pdf_doc(zend_rsrc_list_entry *rsrc) { - PDF *pdf = (PDF *)rsrc->ptr; /* RJS: TODO: + PDF *pdf = (PDF *)rsrc->ptr; check whether pdf-Pointer is still valid, before pdf_delete() + remove php-resource */ - PDF_delete(pdf); -} - -static void _free_outline(zend_rsrc_list_entry *rsrc) -{ - int *outline = (int *)rsrc->ptr; - if(outline) efree(outline); + /* PDF_delete(pdf); +*/ } static void custom_errorhandler(PDF *p, int type, const char *shortmsg) @@ -275,7 +264,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "PDF Support", "enabled" ); php_info_print_table_row(2, "PDFlib GmbH Version", tmp ); - php_info_print_table_row(2, "Revisi
[PHP-CVS] cvs: php4 /ext/midgard test-db.tar.gz
davidg Mon Feb 12 10:10:40 2001 EDT Removed files: /php4/ext/midgard test-db.tar.gz Log: This file is not needed anymore, check the midgard CVS for the up-to-date file: http://cvs.midgard-project.org/cvsweb.pl in /midgard/data -- PHP CVS 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] Time in php problem....
I think you can do all of these using the session. In your log on script, after validating his uid and pwd, insert a row with current timestamp and his id. Either during log off or session close insert another row with uid and current time stamp. (This part I never done) Rest is to manipulate the values the log table information. (may be develop a admin screen, which manipulates the log table) Hope this helps. Ng Kok Chun wrote: > hi... i need some help... > > currently i doing web base programming ( econsultant )using php, apache and mysql as >well... now i facing a problem which i need : > 1) get time when consultant log on > 2) get time when consultant log off > 3) calculate how long for the specified consultant been log on to the web > 4) accumulate all the time everyday > 5) then multiple accumulate with working rate ( X ). > 6.) finally output to web ( html form ) > > pls help ! > thanks ! > -- 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] How to send email
Hi, I have a big problem. I am trying to send email by php on a server which doesn't have sendmail installed. In fact, we don't like to install it. I use the 4.0.4pl1 version of PHP, and I have understand that the function imap_mail doesn't work any more in this version. Is there another option for me to send email ? Thanks a lot for your help. Emmanuel -- 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] Capturing Emails
> What is the best way to capture an email sent to a server so > that I can copy it and send it to a number of emails selected from a db. > Here's one way to do it: - You'll need to compile PHP as a cgi executable (http://php.net/manual/en/install.commandline.php). - If you are using sendmail you can set up an alias that will direct the email to a program (you can get this same behavior with other mail delivery agents as well). - Have a PHP script that reads from standard input to get the email message (http://www.php.net/manual/en/function.fopen.php). - From there you can do whatever you need to with the email. If you need to parse the email into pieces and/or deal with HTML email, attachments, etc. then you can check out the source code that runs http://www.p3mail.com/ He has a number of libraries available that will help take care of that. - Jamie -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mg
Sterling Hughes wrote: > Hopefully without risking another lengthy thread... > > What does this extension allow me (the common web developer to do)? http://www.midgard-project.org/topic/165.html Emile -- PHP CVS 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] incorrct behavior w/ persistent connection
Hello all! I'm VERY new to PHP+MySQL, but I've been writing software for years. Anyway, I have a simple question to see if anyone else has had this problem. I have a PHP app that creates a table and makes entries to it. Those entries can then be edited. I've found that if I hit the "add" button too fast (more than 1x every 2 sec or so), I will get bad results as the table is printed. The table printed shows the wrong number of rows for the table (as compared to the SELECT run from the mysql command line. Sometimes more, sometimes less. It also happens that clicking on an item to edit it might also return an empty result set from the table. I tried clearing the cache on Nutscrape, but that didn't seem to help. However, connecting to the database w/ mysql_connect() rather that mysql_pconnect() seems to have made the problem disappear. Has anyone else noticed this inconsistent persistent behavior? Red Hat Linux 7.0 Kernel 2.2.16 Apache 1.3.14 MySQL 3.23.32 PHP 4.0.4pl1 -Michael -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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] XML Parsing The Sequel II
I think I found the problem. Because I am behind a proxy I can not connect to http://quotes.nasdaq.com. And get the data !!! -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:[PHP] XML Parsing The Sequel II Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have been solved and I am know able to parse any XML without problems (I hope). But I have one question: In order to parse an XML you have to tell your parser where to find the document: $xml_file = ''test.xml'; This works perfectly, but If you want to get the XML files from Nasdaq you have to say $xml_file = http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=NETA; This however doe not work !!! Why? How can I overcome this problem? -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.cevent.c eventmember.c file.c fudge genentry.pl group.c ho
On Mon, 12 Feb 2001, Emiliano wrote: > http://www.midgard-project.org/topic/165.html Well, that's a nice project, but why does it need to be in the PHP CVS? Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] - -- PHP CVS 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] curl - USERPWD
Has anyone successfully used CURL_USERPWD? When using this, it returns a "Document contains no data", and a "segmentation fault" is written to the apache error_logs. I can produce slightly different results by leaving the username:password field empty. It at least writes a "password:" line to the error log. Some details of the configuration: Apache 1.3.12 PHP 4.0.4pl1 libmcrypt 2.2.x (I think it is 2.2.6 and 2.2.7) Linux and Sun boxes the php script... http://$url/$page"); $user="someone"; $pass="someplace"; curl_setopt($ch,CURLOPT_USERPWD, "$user:$pass"); curl_exec($ch); curl_close($ch); ?> ideas of what I am missing? I want the output to go straight to the browser (used to retrieve images..other suggestions for grabbing images are welcome) benji --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 -- 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 Digest 12 Feb 2001 19:58:27 -0000 Issue 508
php-general Digest 12 Feb 2001 19:58:27 - Issue 508 Topics (messages 39182 through 39254): Can anyone help me on nntp ? 39182 by: James Hsieh 39185 by: Ankur Verma Re: "wide open" 39183 by: Rick Hodger 39197 by: Carsten Gehling 39214 by: Dan Harrington Re: passthru environment variables 39184 by: Tim Ward 39222 by: Rich Puchalsky Re: comparisons 39186 by: PHPBeginner.com Re: afraid ! 39187 by: PHPBeginner.com 39189 by: PHPBeginner.com Re: Search & replace text 39188 by: PHPBeginner.com Re: To The Hacker: CodeBoy 39190 by: PHPBeginner.com 39225 by: Philip Olson Re: way to save data 39191 by: PHPBeginner.com Re: checking for presnet file name 39192 by: PHPBeginner.com Re: unsubscribe php-general 39193 by: PHPBeginner.com Re: Preserve variables between page loads? 39194 by: PHPBeginner.com Re: column into array? 39195 by: Tim Ward Re: A way to duplicate data across databases 39196 by: Tim Ward COM vs ??? 39198 by: Ghislain Bruyere Apache/mod_rewrite for User Tracking 39199 by: jdwright.mmm.com Run a script for 20minutes 39200 by: Martin E. Koss 39201 by: Dominick Vansevenant 39203 by: Martin E. Koss 39206 by: Andy Woolley 39207 by: Carsten Gehling 39212 by: Charlie Llewellin money maths 39202 by: Michael Hall 39204 by: Martin E. Koss 39205 by: Michael Hall ssl 39208 by: andreas \(.work\) Newbie dummy questions. error messages 39209 by: Brian V Bonini Re: XML Parsing The Sequel II 39210 by: Dave 39248 by: Steve Haemelinck 39253 by: Steve Haemelinck Re: fscanf problem 39211 by: John Vanderbeck Capturing Emails 39213 by: Website4S.aol.com 39220 by: jason cox 39251 by: Jamie Alessio header() in apache/CGI mode PHP 39215 by: Aaron Held 39242 by: PHPBeginner.com Cannot get PHP w/GD to compile with Apache on RH 39216 by: Greg Kopp 39219 by: jason cox Re: [PHP-INST] Cannot get PHP w/GD to compile with Apache on RH 39217 by: Rasmus Lerdorf PHP BOF in Stockholm 39218 by: Rasmus Lerdorf Problem with enctype=multipart/form-data forms 39221 by: System Administrator Time in php problem 39223 by: Ng Kok Chun 39227 by: Dave VanAuken 39243 by: PHPBeginner.com 39249 by: Web master MySQL fields 39224 by: Brandon Orther 39226 by: Christopher Allen 39245 by: PHPBeginner.com Include files 39228 by: Conover, Ryan 39240 by: Alexander Wagner 39246 by: PHPBeginner.com character problem 39229 by: John P. Donaldson 39230 by: Dave VanAuken 39236 by: Philip Olson MySQL 39231 by: Brandon Orther 39235 by: Brandon Orther 39237 by: Philip Olson What Does This Mean? 39232 by: Ben Ocean Regex help needed... 39233 by: Jesse Swensen 39244 by: Jason Stechschulte 39247 by: PHPBeginner.com Re: imagecolorallocate / imagesetpixel / palette size? 39234 by: Matt McClanahan 39239 by: Dan Harrington 39241 by: Brian V Bonini Here you have, ;o) 39238 by: ajay arora How to send email 39250 by: Emmanuel Halphen incorrct behavior w/ persistent connection 39252 by: Michael George curl - USERPWD 39254 by: Benji Spencer Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- Hi! I want to know if I want to post a message to some newsgroup, is there any sample or function available ? Can you kindly point out where should I go or maybe give me an example for this ? Thanks. James I guess there is a NNTP class avaailable at http://phpclasses.upperdesign.com/ regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "James Hsieh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:53 PM Subject: [PHP] Can anyone help me on nntp ? > Hi! > I want to know if I want to post a message to some newsgroup, is there any > sample or function available ? > Can you kindly point out where should I go or maybe give me an example for > this ? > > Thanks. > > James > > > > -- > 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] Dan Harrington <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Furthermore, Jonathan stated that he didn't "break into" your > > syste
[PHP] Apache not starting after adding php via mod_so.
hello gurus, this is the first time, trying to solve a problem with this list. I checked some of the archives, may be not all. So if that has been an already asked question, please forgive. I also do not know anything about the common "behaviour" on this list. But anyway : here is the problem: compiled apache (1.3.14) on a SuSe Linux - Box .. starts and works with plain setup. installed Oracle 8 client. installed php4.0.4.pl1, tested the thing with plain php. Get the correct results off the oracle DataBase. With httdp.conf 2 lines are added from the php make/make install : LoadModule php_module libexec/libphp4.so and AddModule mod_php4.c the httpd server is not coming up does not give any log files. So i assume httpd is dieing before he can get anywhere. any clues , every help appreciated. Mit freundlichen Grüßen G.Roland Sieger, CIT Email : [EMAIL PROTECTED] Phone : (49) 89 5110 413 Fax : (49) 89 5110 532 Postanschrift : Süd-Chemie AG Lenbachplatz 6 80333 München -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.
This is distributed as GNU and the GNU license is splattered throughout, is that a problem as we have seen with readline? Sean > -Original Message- > From: emile [mailto:emile]On Behalf Of Emiliano > Sent: Monday, February 12, 2001 1:42 PM > To: Sterling Hughes > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog > INSTALL Makefile.in access.c article.c attachment.c > calendar.c config.m4 > element.c event.c eventmember.c file.c fudge genentry.pl > group.c host.c > image.c mail.c member.c mgd_access.h mgd_article. > > > Sterling Hughes wrote: > > > Hopefully without risking another lengthy thread... > > > > What does this extension allow me (the common web developer to do)? > > http://www.midgard-project.org/topic/165.html > > Emile > > -- > PHP CVS 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 CVS 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho
> > http://www.midgard-project.org/topic/165.html > > Well, that's a nice project, but why does it need to be in the PHP CVS? Just too add to this.. I dont see what place midgard has in PHP CVS, If I go and create a totally separate project which isnt a PHP extension really then can I put it in CVS along with everyone else?? I dont think Midgard has a place here maybe in a separate module or in PEAR (which would be ideal for it) but why main CVS? It just doesnt fit. James -- PHP CVS 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 help needed...
on 2/12/01 1:01 PM, Jason Stechschulte at [EMAIL PROTECTED] wrote: > On Mon, Feb 12, 2001 at 12:15:04PM -0500, Jesse Swensen wrote: >> This should be a quick one, but I can't seem to wrap my brain around it. >> All I need to do is replace leading or trailing spaces with underscores. If >> there is spaces in between words, leave them alone. > > $fix = ereg_replace("(^ )|( $)", "_", $checkme); This is very close. If the string, " Testing ", had multiple spaces, but I wanted to convert each space to a "_", then what? I tried: $fix = ereg_replace("(^ +)|( +$)", "_", $checkme); and $fix = ereg_replace("(^[ ]+)|([ ]+$)", "_", $checkme); with no success. Thanks for your help... -- Jesse Swensen [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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.
> > This is distributed as GNU and the GNU license is splattered > throughout, is > that a problem as we have seen with readline? > > Sean > This is distributed as GNU and the GNU license is splattered > throughout, is > that a problem as we have seen with readline? > The application and documentation are licensed LGPL, GPL and GFDL which ensures developers, webmasters, ISPs, and business managers that they're investing in a strategy that grants everyone the freedom to share solutions and participate in the application design. I believe that the LGPL is compatible with the PHP Licience which means there are no licience issues.. this was my first thought but apperently they have already fixed this. James -- PHP CVS 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] Search & replace text
On Monday 12 February 2001 01:22, David Robley wrote: > > while (!feof($file)) { > > $line = fgets($file, 255); > > if(eregi($oldemail, $line, $out)) { > > str_replace($oldemail, $newemail, $line); > > You need to assign the output of this function to a string: >$new_line = str_replace($oldemail, $newemail, $line); Another little thing: You don't need the eregi() here - just do str_replace. If it doesn't find $oldemail it won't do anything. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Nothing is more dangerous than an idea if it's the only one you have. - Emil-Auguste Chartier, "Propos sur la religion", 1938 -- 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] rewriting this SQL statement to remove subselect
On Monday 12 February 2001 01:31, Scott Mebberson wrote: > I understand that as of version 3.24, MySQL will support subselects. > But untill then (because 3.23 is the latest stable release) I need to > convert this SQL satement into something that can be used with v3.2? - > the version just before the latest release. > > $search = "SELECT count(search_table.word) as score, > search_table.qid,page_data.contents > FROM search_table,page_data > WHERE page_data.pID = search_table.qid AND search_table.word > IN($querywords) > GROUP BY search_table.qid > ORDER BY score DESC"; Uh, perhaps I'm blind and/or dumb, but I just can't find a subselect in that query. The query as written here should run fine in any MySQL version -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Nothing is more dangerous than an idea if it's the only one you have. - Emil-Auguste Chartier, "Propos sur la religion", 1938 -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.cevent.c eventmember.c file.c fudge genentry.pl group.c ho
Derick Rethans wrote: > > On Mon, 12 Feb 2001, Emiliano wrote: > > > http://www.midgard-project.org/topic/165.html > > Well, that's a nice project, but why does it need to be in the PHP CVS? I don't really understand this question. It's a PHP extension. Why do the mysql, or the imap extensions need to be in php cvs? Emile -- PHP CVS 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 +php+ array
I have the following code: $arr_aantal = explode (",", $aantal); $arr_str_men = explode (",", $str_men); $arr_recht = explode (",", $recht); $arr_rechtverstek = explode (",", $rechtverstek); $arr_verstekgelijk = explode (",", $verstekgelijk); $arr_verstekongelijk = explode (",", $verstekongelijk); for($b=0; $b<$rows; $b+=1){ $sql = "INSERT INTO " . $table_name . " SET aantal='" . trim($arr_aantal[$b]) ."',str_men='" . trim($arr_str_men[$b]) ."',recht ='" . trim($arr_recht[$b]) ."',rechtverstek='" . trim($arr_rechtverstek[$b]) ."',verstekgelijk='" . trim($arr_verstekgelijk[$b]) ."',verstekongelijk='" . trim($arr_verstekongelijk [$b]) . "', soorten= '$bewaar'"; mysql_query ($sql) or die ("cannot execute update query"); } if i do this the following sql statement is created, INSERT INTO testen SET aantal='22',str_men='2',recht='2',rechtverstek='2',verstekgelijk='2',verstek ongelijk='2',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' INSERT INTO testen SET aantal='',str_men='',recht='',rechtverstek='',verstekgelijk='',verstekongeli jk='',soorten='plat3mm' so the first array element goes wel, but the next contains no data, but i know for sure that there is dat in it. See above. Could anyone give me a clue? aantal=$arr_aantal[$b] should work i thaught. or "aantal= ". $arr_aantal[$b] ." str_men=" . $arr_str_men[$b] . and so fort. -- 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.
"Sean R. Bright" wrote: > > This is distributed as GNU and the GNU license is splattered throughout, is > that a problem as we have seen with readline? I'm not familiar with the problems you may have had with readline. If there's a licencing issue I'd love to talk about it. Emile -- PHP CVS 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho
James Moore wrote: > > > > http://www.midgard-project.org/topic/165.html > > > > Well, that's a nice project, but why does it need to be in the PHP CVS? > > Just too add to this.. I dont see what place midgard has in PHP CVS, If I go > and create a totally separate project which isnt a PHP extension really then > can I put it in CVS along with everyone else?? I dont think Midgard has a > place here maybe in a separate module or in PEAR (which would be ideal for > it) but why main CVS? It just doesnt fit. It _is_ a PHP extension. PEAR only hosts things written in PHP itself, right? Midgard is written in C, midgard applications are written in PHP using the Midgard extensions. I don't see the problem. _Every_ PHP extension I see utilizes external libraries and/or servers, and so does Midgard. Emile -- PHP CVS 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 help needed...
> This is very close. If the string, " Testing ", had multiple spaces, but > I wanted to convert each space to a "_", then what? I tried: There may be a better way, but here is a lengthy one that works. $checkme = " this is it "; if(ereg("^( )+", $checkme, $match)) { for($i = 0; $i < strlen($match[0]); $i++) { $start .= "_"; } } if(ereg("( )+$", $checkme, $match)) { for($i = 0; $i < strlen($match[0]); $i++) { $end .= "_"; } } $fix = ereg_replace("^( )+", $start, $checkme); $fix = ereg_replace("( )+$", $end, $fix); echo "$fix"; -- Jason Stechschulte [EMAIL PROTECTED] -- How do Crays and Alphas handle the POSIX problem? -- Larry Wall in <[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] strtotime problem running PHP as Apache module
Can anyone help? Platform: Win2k, Apache, mysql I am causing crashes when trying to run this date stuff using the PHP module, but it works fine when using the same setup using the CGI version. begin code snip $max_date = 90; $ini_date = 0; echo("\t \n"); do { $dis_date = date("D\. M\. d\, Y", strtotime ("+$ini_date day")); $val_date = date("Y-m-d", strtotime ("+$ini_date day")); echo("\t[$ini_date] $dis_date\n"); } while (++$ini_date <= $max_date); end code snip thanks! Charles Mulford Web Developer McLeodUSA -- 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] sorting a csv text file in PHP
Hi list, I have a csv text file that looks like this: Mike,1,Monday 12th of February 2001 02:14:09 PM Bob,3,Monday 12th of February 2001 02:14:17 PM Marry,2,Monday 12th of February 2001 02:16:38 PM I'm trying to get it to sort by the 2nd value (number descending and to show only the top two highest scores: Like this.. Bob,3,Monday 12th of February 2001 02:14:17 PM Marry,2,Monday 12th of February 2001 02:16:38 PM This is what I have for code now: // show high scores $lines = file("quiz.txt"); sort($lines); for ($ i=0; $i < count ($lines); $i++){ $thisline = explode(",", $lines[$i]); echo ""; for($j=0; $j < count($thisline);$j++) { echo "$thisline[$j]" ; } Is this possible to do? I'm running linux with php3 Thank you --Mike __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! 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]