Re: [PHP] echo vs. print() performance?

2001-12-14 Thread Jim Lucas
that my site uses. I will try an get that data together by the first of next week. it will show microsecond time lines of include(), requires(), print() echo"", , and other related functions. Lets me know what you would like to see. Jim Lucas - Original Message - From: &qu

[PHP] Re: [PHP-DB] while...if statements???

2001-12-18 Thread Jim Lucas
I would do a mysql_num_row(); on your results to see if it returning anything at all. Jim - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 200

Re: [PHP] Error while calling a function

2001-12-18 Thread Jim Lucas
Try putting a closing "?>" php tag just before the final HTML. Jim - Original Message - From: "J.F.Kishor" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 5:26 AM Subject: [PHP] Error while cal

Re: [PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread Jim Lucas
php will return you four $vars to work with. check this out. http://www.php.net/manual/en/features.file-upload.php then work with the tmp file and get done with it what needs to be done before the script closes cause php will delete the file when the script is done. jim - Original Message

Re: [PHP] PHP4 on Windows98 with PWS4

2001-12-18 Thread Jim Lucas
make sure you copy all the correct dll's into the c:\windows\system or system32 directory. the dll's have to be in a location that is included in the window PATH in the autoexec.bat Jim - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas
finishing. if you do it the way you wrote below. the page will stop downloading, including the images that havn't finished. Jim - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Martin Hughes'" <[EMAIL PROTECTED]>; <[E

Re: [PHP] Working with designers...

2001-12-18 Thread Jim Lucas
hope you don't plan to use that example table in netscape 4.x - Original Message - From: "Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2001 4:10 PM Subject: Re: [PHP] Working with designers... On Tue, 18 Dec 2001 16:00:09 -0800, Fre

Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-18 Thread Jim Lucas
CTED]> Sent: Tuesday, December 18, 2001 4:16 PM Subject: Re: [PHP] JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o) On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote: >actually Martin, that is what Martin was doing. >href="javascript:function_na

Re: [PHP] Working with designers...

2001-12-18 Thread Jim Lucas
PHP] Working with designers... > LOL. > > Use Netscape 4. > > Now there's a condtradiction you don't hear every day. > > Mike > > Jim Lucas wrote: > > > hope you don't plan to use that example table in netscape 4.x > > > > - Origin

Re: [PHP] Access rights for php files on Linux?

2001-12-18 Thread Jim Lucas
your scripts have to have to be readable by your apache user/group if it can't read them then it can't run them. now as for being allowed to only view files of yours, you would want to place the apache user in your group. this will give it access to read your files, but so will others running ap

Re: [PHP] Help on dealing with arrays of HTTP_POST vars

2001-12-19 Thread Jim Lucas
in your SearchOrder() function change the for() to a foreach() Jim - Original Message - From: "Carlos Fernando Scheidecker Antunes" <[EMAIL PROTECTED]> To: "PHP-GENERAL" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 10:15 AM Subject: [PHP] Help on

Re: [PHP] sessions var

2001-12-19 Thread Jim Lucas
as long as the domain of the cookie is set to yoursite.com it will be readable from whateveryouwant.yoursite.com but if the domain is set to www.yoursite.com you won't be able to read it from yoursite.com Jim - Original Message - From: "Mehmet Kamil ERISEN" <[EM

Re: [PHP] Slash problem

2001-12-19 Thread Jim Lucas
it is a thingy called magic quotes. setup in the php.ini file. turn it off and they will go away. or, if you can't add a stripslashes() to every variable that will passed this way. Jim - Original Message - From: "Evansville Scene" <[EMAIL PROTECTED]> To: <

[PHP] url question

2001-04-10 Thread Ide, Jim
database records. I want the browser to NOT display the next page of data. I want the browser to stay on the page that contains the link to the jpeg the user clicked. How can I prevent the previous link from being executed when the user clicks the back button? Thanks - Jim -- PHP General Ma

Re: [PHP] PHP with JAVA support

2001-06-20 Thread Jim Kirkpatrick
Robert, Please include the php code you're using to instantiate the class. That will give me a better idea of what to suggest. I'm using PHP 4.05 & Java 1.3.1 on Redhat 6.2 with good results. -Jim Kirkpatrick "Robert Vetter" <[EMAIL PROTECTED]> wrote in message

[PHP] PHP & Java: Apache processes

2001-06-20 Thread Jim Kirkpatrick
near 300. I'd appreciate any help with this. I'm currently "cleaning up" with a cron script, but I'd like to solve the problem if at all possible. -Jim Kirkpatrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] PHP with JAVA support

2001-06-21 Thread Jim Kirkpatrick
ensions/no-debug-non-zts-20001222, and the lines in php.ini that load it are different from yours: extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20001222 extension = libphp_java.so -Jim "Robert Vetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: [PHP] The future of PHP

2001-08-23 Thread Jim Jagielski
some levels they compete, on a *much* larger ranger of levels, they compliment. -- === Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/ "A society that will trade a little liberty for a li

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

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] 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] 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] 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] 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] 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] Get Value

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

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] 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] 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] 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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
> Zoran wrote: > > >Hi > > > >How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. > > > > > As ucfirst(jim) has pointed out strip_tags is a good first step. However I have > always believed that the best

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] 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
> > 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 [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] 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] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Jim Grill
> Thanks for the help Jim. I had to install gdb and recompile php, but > I was able to get consistant backtraces from both systems. When the > fault occured, the backtrace was identical every time. It appears to > be an issue with memchr() in ftp_get(): > > =

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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] mySQL query question

2008-11-16 Thread Jim Lucas
Chris wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: Ok, so just that I am clear, you are SELECTing and pulling all the data that you are submitting in the above INSERT statement from the DB initially, then you are only modifying the confirm_number value and then re- submitting all the

Re: [PHP] Help insert not working, implode errors....

2008-11-17 Thread Jim Lucas
, I would argue that this code never worked, unless you changed the order of the arguments being passed to your implode() calls. The arguments are backwards in all three calls. check out this http://php.net/implode it might give you insight on how to make it work. -- Jim Lucas "

Re: [PHP] implode()

2008-11-18 Thread Jim Lucas
;;} > > someone please help > Including the error that is generated would be a good place to start when asking for help. To us, it is pretty obvious what the problem could be. But the error would help. -- Jim Lucas "Some men are born to greatness, some achieve greatness,

Re: [PHP] Help insert not working, implode errors....

2008-11-18 Thread Jim Lucas
BannerSize']) ) { $BannerSize = implode(',', $_POST['BannerSize']); } else { $BannerSize = $_POST['BannerSize']; } } else { $BannerSize = ""; } The latter one would assume that you would only receive a valid

Re: [PHP] Scheduling scripts?

2008-11-18 Thread Jim Lucas
available. > > Cheers, > > tedd > > I used http://bulldog.tzo.org/webcal/ for my wife and a few friends. Seemed nice and easy to setup. Looks like it is end of life, but they have started a new version, http://www.webcalng.com/ looks pretty much the same. Might give

Re: [PHP] Invalid Arguements

2008-11-19 Thread Jim Lucas
used I got. Terion Why don't you show us a snippet of code that is the form page for this. Let us see what you are trying to describe to us. Even if you switched it to a the name attribute still needs to contain the brackets if you expect to pass more then one field in the same form.

Re: [PHP] reading XML

2008-11-20 Thread Jim Lucas
#38739 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading XML

2008-11-20 Thread Jim Lucas
simplest way to accomplish this small challenge? Thanks in advance. Or this one even http://us2.php.net/manual/en/function.xml-parse.php#83416 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adding key-> value pair to an array

2008-12-03 Thread Jim Lucas
le with name $percentage in $row > $percentage = ($browseCount / $totalCount ) * 100; > $row->$percentage = $percentage; > I don't think the above will work either, afaik php doesn't allow you to have variable names start with numbers. Also, there is a high possibility tha

Re: [PHP] adding key-> value pair to an array

2008-12-03 Thread Jim Lucas
$totalCount ) * 100; > Were you intending to just say $row->percentage instead of calling $percentage? >  } > } > > > Please somebody tell me how to achieve this. > Thanks in advance. > Aniket -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Jim Lucas
t;> >> http://www.newmars.com/test.php >> name=formname enctype="multipart/form-data"> >> >> >> >> > > looks like you already fixed it.. works fine for me on your server: > > array(1) { ["testvar"]=> string(2) &quo

Re: [PHP] How to fetch .DOC or .DOCX file in php

2008-12-04 Thread Jim Lucas
t of php classes that will be able to read the text with the formatting included and convert it to a standard document format. The standard format that it will end up in has yet -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will not report errors what can I do

2008-12-04 Thread Jim Lucas
("Location: > ViewHomescape_SpecHome.php?AdminID=$AdminID&WorkOrderID=$WorkOrderID&ReturnPage=$ReturnPage"); > } else { > header ("Location: Welcome.php?AdminID=$AdminID&msg=Nothing > works Does it"); > } > } els

Re: [PHP] How to fetch .DOC or .DOCX file in php

2008-12-04 Thread Jim Lucas
Shawn McKenzie wrote: > Jim Lucas wrote: >> Boyd, Todd M. wrote: >>>> -Original Message- >>>> From: Jagdeep Singh [mailto:[EMAIL PROTECTED] >>>> Sent: Thursday, December 04, 2008 8:39 AM >>>> To: php-general@lists.php.net &

Re: [PHP] Will not report errors what can I do

2008-12-04 Thread Jim Lucas
or problem. If he has a parse error, it makes no difference where he places the above lines. Nothing is going to work. It should be done via one of the three methods that mention in my other email. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] How to fetch .DOC or .DOCX file in php

2008-12-05 Thread Jim Lucas
Andrew Ballard wrote: > On Thu, Dec 4, 2008 at 10:35 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: >> I was going to say that I haven't yet decided on what the final output >> format is going to be. Probably either rtf or OpenXML. >> >> How about I ask for sugges

Re: [PHP] Include directive..

2008-12-09 Thread Jim Lucas
... All Your normal stuff ... php_value auto_prepend_file '/path/to/file.php' The above code will include your php file as a standard php include every time someone visits the given VirtualHost block. Hope this helps. -- Jim Lucas "Some men are born to g

Re: [PHP] Include directive..

2008-12-09 Thread Jim Lucas
ender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. If you are not the intended recipient you are > notified that disclosing, copying, distributing or taking any action in > reliance on the contents of this information i

Re: [PHP] Resource ID# 5 and Resource id #5 8561 errors....help

2008-12-12 Thread Jim Lucas
$FileName = str_replace("/", "", $FileName); > $FileName = str_replace(".jpg", "", $FileName); > > Well its late friday afternoon here, I'm ready to break away from my > desk...maybe on monday I will be able to get it working (right now o

Re: [PHP] header modify errors

2008-12-15 Thread Jim Lucas
hings I'm missing? > Thanks > Terion > Make sure you have no .htaccess or blocks that are overriding your php.ini settings. Plus, make sure you restart to make the changes take effect. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some

Re: [PHP] Re: header modify errors

2008-12-15 Thread Jim Lucas
"Why not fix the warning instead of hiding it." But that isn't what the OP is asking for. I think the OP understands why it is giving this warning, but is looking for a way to not display the error. Sounds like his production environment is setup to where it does not display th

Re: [PHP] new xampp server problem w/mail

2008-12-15 Thread Jim Lucas
r > installing any software and configuring any files that may need altered in > the server's configuration files such as php.ini etc... > > email me at linia...@yahoo.com if you can help. > > Thanks, > Ian Why is it a requirement to use mail() ?? Why not use a pack

Re: [PHP] new xampp server problem w/mail

2008-12-15 Thread Jim Lucas
Lets keep things on the list! Ian Lin wrote: > Jim Lucas, > > Thank you for your advise! > > It is not necessarily crucia that I use the mail() function, but that > is what I usually use when writing email scripts for my clients because > thier servers all support it. I

<    1   2   3   4   5   6   7   8   9   10   >