Re: [PHP] Millisecond in PHP

2004-10-27 Thread Jim Grill
> Hi, > > I'm trying to get PHP to display the millisecond of current time. I can't > find that option in "Date()".. Any hints? > > Thanks a lot > Take a look at http://us2.php.net/manual/en/function.microtime.php Jim Grill ZCE -- PHP General Mailing

[PHP] bitwize '&' operator trouble

2004-10-04 Thread Jim Grill
ny examples of that. However, I am more interested in why and'ing these two numbers returns a different value now. I'm unable to find any clues in the docs. Thanks, Jim Grill

Re: [PHP] Images in PHP and MySQL

2004-09-27 Thread Jim Grill
n PDFs, etc. > That's a very good list. I just wanted to pipe in on this one thing: "3) images usually need to be written to file before using GD for manipulation, inclusion in PDFs, etc." There is actually a function for this: imagecreatefromstring() I'll don't want to

Re: [PHP] poor image quality in php

2004-09-27 Thread Jim Grill
opyresampled does not work either - produces the same result! > When you create the new image try using imagecreatetruecolor() http://us2.php.net/manual/en/function.imagecreatetruecolor.php JIm Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Jim Grill
is... Any help? > Here is a good start | // +--- + // // $Id:$ 0.0.1 /* login here or maybe IM or ICQ or a photo album*/ ?> I couldn't resist. Sorry... good luck Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php upload script problems

2004-09-25 Thread Jim Grill
/pdfs";; //url where files are > uploaded > > $absolute_path = "http://www.corrige2.bluehill.com/pdfs";; //Absolute path to > where files are uploaded > Aside from what others have pointed out, your absolute path is not a file path at all. This will cause some proble

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jim Grill
m. [EMAIL PROTECTED] will fail. :-) Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] csv inssue

2004-09-24 Thread Jim Grill
quot;blah","blah","blah"), ("blah","blah","blah","blah","blah")'; Also, I did forget the quotes on the values. This will fix that: $query .= '("'.implode('","',$vals).'"),'; There is a line that gets rid of the the trailing comma: /*kill the last comma*/ $query = substr($query, 0, -1); Take another look and then post some code if you still have trouble. Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] csv inssue

2004-09-24 Thread Jim Grill
ry = 'LOAD DATA INFILE "/path/to/your/file.csv" INTO TABLE mytable FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY """" LINES TERMINATED BY "\\r\\n"'; Very versatile. Make that lazy MySQL server pull its weight! Let PHP handle the really complicated stuff :-) Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Jim Grill
anyhow, so your code wouldn't have but one echo > > statement, right? ;) > > You mean that bloated overkill they call Smarty? No way. > > eval() is good enough for me :) > Smarty is very cool but can be a bit much. [shameless plug] Check out XiTemplate http://xitempla

Re: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Jim Grill
> Anyone else getting these infuriating italian messages about some muppet > that doesnt exist? > > 'desintione non existente'? > > I've written to [EMAIL PROTECTED] but no joy, everytime i post on the > php list i get half a dozen of the damn things... > -- > Nick W > I've been getting those stu

Re: [PHP] PHP include before or after Apache SSI?

2004-09-13 Thread Jim Grill
ine? http://smarty.php.net/ -> awesome http://sourceforge.net/projects/xitemplate -> light-weight and easy Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdin buffering

2004-09-09 Thread Jim Grill
if you don't need the user to see what they type: exec("stty -icanon -echo min 0 time 0"); If you do this and run your script it will affect your terminal. If you happen to turn echo off just hit Ctrl c (to clear any invisible commands) and type (blindly) "stty echo" to tu

Re: [PHP] htmlentities()

2004-09-08 Thread Jim Grill
ot sure why the I am still getting the tags and spaces after the call to > htmlentities(). > > Thank you for any help. > TR > Sorry to spam you, but If you are wanting to remove html altogether take a look at strip_tags() http://us4.php.net/manual/en/function.strip-tags.php Ji

Re: [PHP] htmlentities()

2004-09-08 Thread Jim Grill
ot sure why the I am still getting the tags and spaces after the call to > htmlentities(). > > Thank you for any help. > TR Are you looking at the html source?? I get A 'quote' is bold when I load the page *BUT* viewing the source gives me this: A 'quote' is <

Re: [PHP] Users of RDBMS

2004-09-08 Thread Jim Grill
> My email address is > m_pahlevanzadeh at yahoo dot com > My website is: http://webnegar.net > > Dear, Please go here: http://lists.mysql.com/

Re: [PHP] What's faster? MySQL Queries or PHP Loops? OT

2004-09-08 Thread Jim Grill
#x27;ll go for it OT. While MyISAM tables do not natively support foreign key constraints, this has nothing to do with joined queries that is to select data from multiple tables or even multiple databases in one query. For a really cool tutorial see: http://www.devshed.com/c/a/MySQL/Unders

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Jim Grill
ue then what about a join to get everything you need from both tables at once? The idea here is that you get one result from MySQL and then loop through your result and display your content. Hope I'm not too far off. Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Jim Grill
;m nobody - just a php lover on the cutting edge of the latest cvs snap, so chasing bugs has become somewhat of an interest/hobby for me. :-) (Sadly, I have yet to find a real live unreported bug myself) Best of luck to you, Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class packages

2004-09-08 Thread Jim Grill
comes to mind (and no, I'm not an asp advocate)). However, while it's common to save each class in its own file, it isn't at all uncommon to have multiple classes in a single file - especially if they are typically used together like parent and extended classes or interfaces and implem

Re: [PHP] Re: Problem compiling PHP5 [solved]

2004-09-08 Thread Jim Grill
installed correctly or not being built properly for your system. Have fun, Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Jim Grill
clude a libxpm library made for your system. The problem is that libxpm will not run out of the box. There is a build process that must be followed to build the library for your system architecture. Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Jim Grill
> Taking the /lib/ portion of the configure command changes the error to > configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please > check config.log for more information. > > Which (assuming it means that it needs libXpm.so AND libX11.so) means > I might have a lead to follow. > >

Re: [PHP] Problem compiling PHP5

2004-09-07 Thread Jim Grill
> > should really be looking right at it? > > Your user/group names seem broken, or is this a nfs mount or the > like? Good call, Curt. That happens when you untar something that was originally created on another machine with different users and groups... like a source tarball.

Re: [PHP] Problem compiling PHP5

2004-09-07 Thread Jim Grill
r=/usr/local/lib/xpm-3.4k-linux/" *and* "--with-xpm-dir=/usr/local/lib/xpm-3.4k-linux/lib/" The first one appears to be incorrect. This would be a problem. Just an observation. Good luck, Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
p.net/ . It's a thankless job, but it helps everyone out in the long run if done properly. It will be much appreciated if you follow the above steps and include sample code and gdb information when submitting a bug. Leave it to the real pros to read the backtrace output! :-) Good luck, Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
ing php as an apache module? 2) Logs/errors a) example from log file (just the error line(s)) b) what is segfaulting? (Apache, PHP, Kernel, other) c) Any error messages? 3) Any other pertinent information Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: array_merge changed behaviour in Php5??

2004-09-07 Thread Jim Grill
n documentation. I can certainly understand your frustration as can many others, however, this is an anticipated (and documented) issue. Now, if I could just figure out how to plug this new fire wire storage device into my 386 I'd be a happy camper. :-) Best to you, Jim Grill -- PHP Gene

Re: [PHP] Force the download of .pdf or image files

2004-09-06 Thread Jim Grill
h?hl=en&lr=&ie=UTF-8&q=php+header+force+download Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-06 Thread Jim Grill
r all sorts of common tasks ( http://fpdf.org/en/script/index.php ). IMHO DocBook may be a little over-kill and possibly overly burdensome for this task since it requires your markup be written in DocBook XML format. I suppose it could be worth while if you plan to create your documents in

Re: [PHP] How develop reports in MS WORD?

2004-09-04 Thread Jim Grill
> > VAL 5 | VAL 6 > > How to print these multiple rows on word in this format. > > > > > > > > Thanks in advance. > > Bharadwaj. > > > > M$Word is a proprietary winbloze format that is not designed to be > compatible or

Re: [PHP] Completing dream of connect with Java RDBMS with php

2004-09-04 Thread Jim Grill
Is this some kind of spam? hehe. I've never seen anyone so eager to share their work. ...Must be a trojan or something! :-) Jim Grill > hi dear developers, > >We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to Daff

Re: [PHP] How develop reports in MS WORD?

2004-09-04 Thread Jim Grill
in this format. > > > > Thanks in advance. > Bharadwaj. > M$Word is a proprietary winbloze format that is not designed to be compatible or portable. Jim Grill > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Fetch & Process

2004-09-03 Thread Jim Grill
language for parsing html is perl and not > PHP that's because there is a perl module (name HTMLParse) available > from CPAN that behaves somewhat like the sax parse api in PHP. > Perl ???!! awwww.... not perl! :-( I'm tag

Re: [PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Jim Grill
P_SERVER_VARS['HTTP_USER_AGENT'],'MSIE')) header('Content-Type: application/force-download'); else header('Content-Type: application/octet-stream'); header('Content-Length: '.$filesize); header('Content-Disposition: inline; filename=FILE.pdf'); header("Cache-Control: private"); header("Pragma: public"); Jim Grill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Fetch & Process

2004-09-03 Thread Jim Grill
27;/\(.*)\<\/b\>/', "$1 lookie now", $foo); Your second question: You could just use strip_tags() http://us4.php.net/manual/en/function.strip-tags.php Your last question: To delete everything but numbers you could $content = preg_replace('/[^\d]/','', $conten

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-03 Thread Jim Grill
> Unfortunately, since they are coming in through a socket and not actual > telnet/ssh I don't think $fp=fopen("/dev/stdin", "r"); works? Isn't that > only for terminal based input? > > Donald Myers oops... forgot this: http://www.php.net/manual/en/re

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-03 Thread Jim Grill
just a matter figuring out how to access it. Good luck! Let me know how it goes. If you want to send me some source code off-list I'd be happy to give it a whirl. It might be better to solve off-list and post the solution on-list since the code is probably huge. Jim Grill > > > on 9

Re: [PHP] uppercase sentences

2004-09-03 Thread Jim Grill
suring that all "sentences" begin > with a capital letter (english) would be a great start. > > Has any one come across a library of "punctuation cleaners" or > something like that? This might help you some. $ucSentance = ucfirst($sentance); Jim Grill >

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jim Grill
> Ahem... > > > > No, Jason was right (in his usual, abrupt, rude kinda way). > > Guys, while we may be able to debate what is rude, what is blunt, > what should have been said, what was said, the facts are clear. He > apologized, and I think its time to lest this debate rest for now. While I > w

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-02 Thread Jim Grill
code flow could look something like: I hope that gets you started in the right direction. Sounds like a fun project. Jim Grill Web-1 Hosting, LP http://www.web-1hosting.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function Problem

2004-09-01 Thread Jim Grill
ally need a solution to > ensure the safety of my system. > > grtz & thanks > > DragonEye > After calling the header redirect call exit(); example: header('Location: somewhere.php'); exit(); Jim Grill Web-1 Hosting, LP http://www.web-1hosting.net > -- > PHP Genera

Re: [PHP] Please, Refresh Your Paypal Account

2004-08-31 Thread Jim Grill
Exp.Date(mm/): 01/1978 ATM PIN (For Bank Verification) #: 1234 Jim Grill - Original Message - From: "Paypal Services" <[EMAIL PROTECTED]> To: "Php-general" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 6:45 PM Subject: [PHP] Please, Refresh Your P

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread Jim Grill
I can hold my pee for hours Jim Grill - Original Message - From: "Keystone Learning Systems" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 4:43 PM Subject: [PHP] Authors and Instructors Needed > KeyStone Learning Systems (www

Re: [PHP] Storing image in database

2004-08-30 Thread Jim Grill
, $width, and $height would have come from your db. Save the actual fetching of the image itself for image.php. Good luck and have fun! Jim Grill > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jim Grill
Sounds like someone else's problem -- not the list's problem. If that's the case, use a different email address for mailing lists. There are plenty of free email providers out there if you can't get a spare account. Jim Grill > The problem with that request is that some e

Re: [PHP] Hire a developer

2004-08-29 Thread Jim Grill
> Jim Grill wrote: > > > Incase anyone was wanting to hire John, I've cracked the code. Phear me, I > > great H4x0r. > > > > I'd like to suggest this as the official PHP mailing list email format for > > Mondays, Tuesdays, Rainy days, and all thr

Re: [PHP] Hire a developer

2004-08-29 Thread Jim Grill
7;; $eml = str_replace($k, $v, $eml); } echo 'l33t code Warning: phear me in this here file on line 25'; echo ''.$eml.''; ?> I'd like to suggest this as the official PHP mailing list email format for Mondays, Tuesdays, Rainy days, and all through May... if I

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread Jim Grill
s> John Holmes wrote: i> d> > Curt Zirzow wrote: e> > > >> Top posting is like this. p> o> How about middle posting? s> t> > Please don't top post. i> > n> g> ?> -- J> By-Tor.com i> It's all about the Rush m> http://www.by-tor.com > G> -- r> PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread Jim Grill
WTF? I can prograe! Jim Grill - Original Message - From: "Yann Larrivee" <[EMAIL PROTECTED]> To: "John Holmes" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, August 26, 2004 9:43 PM Subject: Re: [PHP] PHP Oficial

Re: [PHP] Looking for a "TODO:" parser.

2004-08-26 Thread Jim Grill
I'm pretty damn sure he was kidding about the parse error. Jim Grill - Original Message - From: "Rick Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "John Holmes" <[EMAIL PROTECTED]> Sent: Thursday, August 26, 2004 4:53 PM Subj

Re: [PHP] ini_set('include_path') and require_once()

2004-08-26 Thread Jim Grill
d use the full system path rather than a relative path. Using "echo get_include_path()" should give you an idea what's going on. http://www.php.net/manual/en/function.set-include-path.php Jim Grill - Original Message - From: "BigSmoke" <[EMAIL PROTECTED]>

Re: [PHP] Get Value

2004-08-25 Thread Jim Grill
Google(value to extract)'; echo preg_replace('/\(.*)\<\/a\>/i', "$1", $link); ?> Jim Grill - Original Message - From: "Syed Ghouse" <[EMAIL PROTECTED]> To: "php mailinglists" <[EMAIL PROTECTED]> Sent: Wednesday, August 25, 2004 11:11 PM Subject: [PHP] Get Va

Re: [PHP] Looking for a "TODO:" parser.

2004-08-25 Thread Jim Grill
Not sure about other file types, but phpdoc includes a tag for "todo". It also makes nice documentation on the fly based on your comments. http://phpdoc.org/docs/HTMLSmartyConverter/default/phpDocumentor/tutorial_tags.todo.pkg.html Jim Grill - Original Message - From: "

Re: [PHP] mysql_connect and PHP 5.0

2004-08-04 Thread Jim Grill
Can you paste us your configure line for php? It sounds like you forgot to include mysql or perhaps you configured with mysqli instead. The two are very different. Regards, Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Michael Marold" <[EM

Re: [PHP] Order by

2004-08-03 Thread Jim Grill
e this with double quotes: $specs_query = mysql_query("SELECT title, information FROM spec WHERE product=$id ORDER BY id ASC"); It might also be a good idea to put single quotes around $id if it comes from user input: $specs_query = mysql_query('SELECT title, information FROM spec WHERE

Re: [PHP] javascript type cast OT

2004-08-03 Thread Jim Grill
Was just wondering... Can you compile php with javascript support on a Game Boy? lol Is it ok to just filter out this subject to deleted items now??? Jim Grill - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, A

Re: [PHP] regex help

2004-08-01 Thread Jim Grill
Can you post a little sample of the data and your current code? thanks. Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Kathleen Ballard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 01, 2004 8:27 AM Subject: [PH

Re: [PHP] Accepting Credit Cards

2004-07-30 Thread Jim Grill
At the risk of sounding dull, I have used Authorize.net for many years and have no complaints. I'm not sure about price, but set up is pretty easy with their documentation and they're very reliable. Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From:

Re: [PHP] db transactions across multiple pages...

2004-07-30 Thread Jim Grill
ld be my guess that pconnect will be a thing of the past. It's sort of a drag, but running out of connections - as pconnect can cause - is a real drag too. ;) Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "bruce" <[EMAIL PROTECTED]> T