Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Mike Frazer
Win2k is the same as NT and does, indeed, have permissions. Very different from *nix permissions but they do exist. Mike Frazer "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- &g

Re: [PHP] Fastest way to read from an url?

2002-01-24 Thread Mike Frazer
How quickly can you get other data from that same remote host? Sounds to me like it's a network bottleneck someplace. If you are downloading static data from that system at the same speed its the network. Mike Frazer "Stefan Rusterholz" <[EMAIL PROTECTED]>

[PHP] Re: directory structure list

2002-01-24 Thread Mike Frazer
Write the whole thing as a function, and then do a check like if (is_dir("/path/to/directory")) { listDirs("/path/to/directory"); } PHP will allow you to recursively call a function from with that same function. Mike Frazer <[EMAIL PROTECTED]> wrote in messa

[PHP] Re: while loop on an array

2002-01-24 Thread Mike Frazer
There's a rather easy way to process arrays with while loops (I saw it used loosely in some of the other replies). while ($i < sizeof($array)) { ... actions ... $i++; } Hopefully you can tailor that to suit your needs. Mike Frazer "Joe Rice" <[EMAIL PROTECTED]&g

[PHP] Re: Writing new lines in txt- files?

2002-01-24 Thread Mike Frazer
it sounds like you do). Just create a while() loop that gets a line or a certain length of text from a source and write it until you reach the end of the source. Just remember to add the "\n" and you'll get each line read from the source written to its own line on the destination fil

Re: [PHP] fsockopen questions

2002-01-24 Thread Mike Frazer
Although they are experimental, I find the socket() and connect() functions in PHP4 to be much easier to use and manage. May want to try them, perhaps? They seem to be a little less tempramental. Mike Frazer "Bhavin Modi" <[EMAIL PROTECTED]> wrote in message news:01d90

[PHP] Re: I lost the message...

2002-01-24 Thread Mike Frazer
that directory could not be opened ... } Mike Frazer "Todd Cary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am embarrassed to say that I lost the anser to my question on the > syntax to get a list of all of the files

[PHP] Re: CGI PHP processing .shtml

2002-01-24 Thread Mike Frazer
Did you remove the "AddType server-parsed" entry for .shtml that is usually there by default? You may be better served asking this on an Apache newsgroup. Mike Frazer "Christian Cresante" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PRO

[PHP] Re: seems easy...

2002-01-24 Thread Mike Frazer
Line 4 & 5 combined: $text = substr($text, 0, $limit) . " ... your additional text here"; Mike Frazer "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Really simple, but can't see wh

Re: [PHP] Form Problem

2002-01-24 Thread Mike Frazer
they can skip over the PHP input and just change HTML. Dropping the print statement means the server does less work, too. Mike Frazer "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Thursday 24 January 2002 10:47, Michael P. Carel wrote: > &

Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Frazer
it elsewhere. Mike Frazer "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think the real answer here is to treat these as read-only arrays. ie. > never use them on the left side of the '=' and you wi

Re: [PHP] Arrays as pointers?

2002-01-24 Thread Mike Frazer
make this an afterthought for all of us, but it looks like they still left C's functionality intact. Mike Frazer "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > it's treating a string as a character array

[PHP] Reading config files

2002-01-24 Thread Mike Eheler
values.. Values are always terminated by a ; character, unless of course that ; character lies within quotes. Pretty standard stuff, but it's my first attempt at parsing something this complex. Any kind of help on this is appreciated. Mike -- Most burning issues generate far more heat th

Re: [PHP] directory structure list

2002-01-24 Thread Mike Frazer
t you can email me, as I don't yet have my script site up (gotta get the server over to my co-loc provider first). Mike Frazer "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm... I'm not familiar with the di

[PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Mike Frazer
Just got a job as a PHP Programmer, actually. Kinda rare in this area, I guess it was a matter of being in the right place at the right time with the right skills. I've been hired twice in the past based at least in part on my PHP skills, as well. Mike "Vincent Stoessel" &l

[PHP] Re: MySQL query question

2002-01-24 Thread Mike Eheler
Let's say you have this table, pseudo-coded: TABLE table tableid int auto_increment, value text ; You could run this query on it: insert into table values ('','value'); And the id will be auto generated. Same would apply with: inert into table (value) value

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Eheler
rse, that's just one LAMP's opinion. Mike Robert Ames wrote: > This is the second time in as many weeks that we have been bitten by the > fact that $_POST != $HTTP_POST_VARS; Attached is a real-world example of > why it is currently bad practice to use the _POST variables. >

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Eheler
Just a correction on that. It started as two points, then grew into 4.. I should proof read more often ;) Mike Mike Eheler wrote: > I disagree based simply on two points: > > a) Ideally, the $HTTP_POST/GET and $_POST/$_GET vars should be treated > as "read only". &g

[PHP] Re: Speed test: mysql query vs. file_exists()

2002-01-24 Thread Mike Eheler
That would probably give you more control over the data.. however is not really an ideal solution. Also, if you want speed.. go with the file method. That's how I'd do it, anyhow. Mike Qartis wrote: > I'm running a logs system where log entries are .log files with filenam

[PHP] Re: wierd function behavior within classes.. Bug?

2002-01-24 Thread Mike Eheler
PHP doesn't support that. Dunno if it plans to, either. There are workarounds.. can't remember exactly how it's done, but I think I saw it on phpbuilder.com in a tutorial somewhere. Mike Marc Swanson wrote: > I'm not sure if this is a known feature in php.. but

[PHP] Re: wierd function behavior within classes.. Bug?

2002-01-24 Thread Mike Frazer
Remember, You *can* make certain values in a function optional. Place them on the right side of the arg list and give them a default value, like: function myFunction(arg1, arg2, arg3 = "foo", arg4 = "bar") { ... function guts ... } Hope that helps. Mike Frazer &

[PHP] Re: Resalution Dection

2002-01-24 Thread Mike Frazer
Try Javascript. I dont recall offhand but there are some properties you can use in Javascript to detect this sort of thing. PHP is all done server-side and can't collect system properties from the user. Mike Frazer "Philip J. Newman" <[EMAIL PROTECTED]> wrote in

[PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Mike Frazer
of gravity. Finding a LAMP job (or something including any of those components) will become easier as the positions become more plentiful. Come March you'll see a noticeable change. Please mark my words :) Mike Frazer "Michael Kimsal" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] WinNT extensions

2002-01-25 Thread Mike Maltese
Give me a break, all they have to do is edit the php.ini file. I'd find another provider. - Original Message - From: "Paul Roberts" <[EMAIL PROTECTED]> To: "Malcolm" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 1:33 PM Subject: Re: [PHP] WinNT extensions > Don

Re: [PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Mike Maltese
$mystring = "This is a string with the word script in it"; if(eregi("script",$mystring){ //do something here } - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 25, 2002 8:12 PM Subject: [PHP] I'm not sure how to do some si

Re: [PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Mike Maltese
Whoops, that should be: $mystring = "This is a string with the word script in it"; if(eregi("script",$mystring)){ //do something here } - Original Message - From: "Mike Maltese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday,

[PHP] Re: get image from blob in mysql

2002-01-26 Thread Mike Frazer
x and Windows). Just play around with things, but I'd like to see the code you are using for this condition. Mike Frazer "Rodrigo Peres" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > List, > > I'm using the follo

[PHP] Re: PHP in the University and Corporation [was RE: [PHP] Computer Science and PHP]

2002-01-27 Thread Mike Frazer
; mentality). Certifications/degrees are not only just the difference between getting and not getting certain jobs, but for the ones you can get it's also the difference between $25,000/yr and $75,000/yr unless you really *are* God's gift to programming. Take care, Mike Frazer "Chri

Re: [PHP] Need help with Taking a phrase from a remote location.

2002-01-28 Thread Mike Maltese
str_replace() and eregi_replace() work well for this. Mike - Original Message - From: "Robby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 27, 2002 1:45 PM Subject: [PHP] Need help with Taking a phrase from a remote location. > Hi Every

[PHP] Re: upload permission denied!

2002-01-28 Thread Mike Frazer
Try changing the permissions of the parent directory. I've had that problem in the past and that was the only thing that seemed to fix it. Mike "Sundogcurt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm not sur

Re: [PHP] php vs asp

2002-01-29 Thread Mike Frazer
high-end servers, too, so it wasn't the system slowing it down. I have my personal site with him and it seems to load stuff from MySQL about 2-5 times as fast as the ASP-based sites load from SQL Server. My two cents. Mike Frazer "Jon Farmer" <[EMAIL PROTECTED]> wro

[PHP] Re: How do I use a confirm box to confirm before deletion from a database

2002-01-29 Thread Mike Frazer
o the javascript function verifyClick() is executed. Hope that helps. Mike Frazer "Ivan Carey" <[EMAIL PROTECTED]> wrote in message 006301c1a7f4$a195ea60$0201a8c0@icarey">news:006301c1a7f4$a195ea60$0201a8c0@icarey... Hello, Thankyou for your reply. When a user clicks upon a del

Re: [PHP] configuring php and apache

2002-01-29 Thread Mike Maltese
Problems I see: First, use forward slashes! extension_dir = c:\windows\system32//points to where i located the php4ts.dll file This should be the folder that contains extension dll's. If you used the installer it will be "C:/php/extensions" (no quotes) or wherever you installed PHP.

[PHP] Re: broken imap client?

2002-01-29 Thread Mike Frazer
to upgrade yesterday but it seemed as if there was a problem with the archive. Recieved unexpected EOF in archive file. I didn't get a chance to re-download it, I'll do that today and report if there are any problems still. Mike Frazer "Cary Mathews" <[EMAIL PROTECTED]> wrot

[PHP] Re: Cobalt RAQ4 apache config index.php

2002-01-29 Thread Mike Frazer
line. Just open it in a text editor and do a search for DirectoryIndex. NOTE: Remember that changing these files manually will void your Cobalt warranty! Mike Frazer "Beeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am using

[PHP] Re: Cobalt RAQ4 apache config index.php

2002-01-29 Thread Mike Frazer
lines of DirectoryIndex index.htm index.html index.shtml index.php index.php3 index.cgi Mike Frazer "Beeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The config file currently doesn't have any occurance of Directory

[PHP] Re: Array() Limit

2002-01-29 Thread Mike Frazer
handling. Mike Frazer "Zach Curtis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a limit to the number of key=value pairs that can be stored in an > array? Or is this more a function of RAM limits? > > Thanks. >

Re: [PHP] Write an array to a file

2002-01-29 Thread Mike Frazer
// open file for writing while (list($key, $val) = each($array)) { $status = fwrite($fp, $val); // Change the part with $val to whatever you need to write } $status = fclose($fp); There are other ways, as there always are with PHP. However, these should get you by in just about any circumstance.

[PHP] Re: sockets

2002-01-29 Thread Mike Frazer
how to implement sockets in PHP. If you mean C sockets, well, I'm currently learning them myself. Let me know which you need and I can try to get you some resources for them. Mike Frazer "Kunal Jhunjhunwala" <[EMAIL PROTECTED]> wrote in message 03dd01c1a8f9$eb909a10$03

[PHP] Submit/View images using PHP/MySQL

2002-01-29 Thread Mike C
d to restrict the size of the file upload to approx 300kb I found a good example at http://www.weberdev.com but it's a little too cut-down for me! Thanks Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP] Re: Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Mike Frazer
have this by default, as well), then you can have it load that page by default with no file listed on the address/location bar in our browser. Mike "Dr.Bob" <[EMAIL PROTECTED]> wrote in message 014501c1a98a$1f0cad30$9a3b40c3@drbob">news:014501c1a98a$1f0cad30$9a3b40c3@dr

[PHP] Re: Problem

2002-01-30 Thread Mike Frazer
nloaded it from the default site and got a busted file, so I recommend downloading it from a mirror). Look through the Installation part of the manual for a complete list of config commands so you can install everything you may need. Mike Frazer "Uma Shankari T." <[EMAIL PROTECT

[PHP] Re: get the clicked submit image

2002-01-30 Thread Mike Frazer
e ... } If the value has been set, that image was clicked. The x and y values correspond to the precise pixel that was clicked which allows these to be used as pseudo-imagemaps which you can code for. Mike Frazer "Ergin Aytac" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

Re: [PHP] session data vs cookie data

2002-01-30 Thread Mike Frazer
that checks for the hosts on your domain (like www.domain.com, subdomain.domain.com, etc). That locks out all other domains, at least. Don't use this as your sole method of verification, but you can certainly include it. Mike Frazer "Jerry Verhoef" <[EMAIL PROTECTED]

[PHP] Re: Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Mike Frazer
Looks to me like you're dealing with Apache rewrite rules, which goes beyond the scope of PHP. Mike Frazer "Dr.Bob" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have Apache on WinXP. > That sounds great what you write

[PHP] Re: Page Not Found - on IE

2002-01-30 Thread Mike Frazer
Page not found (error 404) or Page cannot be displayed (a DNS error, as stated at the bottom of the screen)? I've seen the latter of the two countless times, only in IE. Mike Frazer "Bryan Gintz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Mike Frazer
I have no idea what may work as a permanent fix. It's just one of those annoying Windows errors. I have, however, found that most often there's an error in your code that isn't a compile-time error. Mike "Bryan Gintz" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] PHP4.0 & Apache with WinXP

2002-01-30 Thread Mike Maltese
You should only have the same problems as those of us running it on 2K. =) - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 30, 2002 12:03 PM Subject: [PHP] PHP4.0 & Apache with WinXP > I am trying to install Apache and PHP4.0

[PHP] Re: preg_replace() 'space' the final frontier

2002-01-30 Thread Mike Frazer
s($string, " ", 19); $string = substr_replace($string, "", $offset, 1); Hope that helps. Mike Frazer "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message 000801c1a9c5$26007460$017f@localhost">news:000801c1a9c5$26007460$017f@localhost... What

[PHP] Re: preg_replace() 'space' the final frontier

2002-01-30 Thread Mike Frazer
NOTE: That was done very quickly and only works on single character searches! I'm working on one that will find multi-character strings. Gimme a few mins and email me off-list if you want it. Mike "Mike Frazer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&q

[PHP] Re: preg_replace() 'space' the final frontier

2002-01-30 Thread Mike Frazer
ot; and "test" covers positions 10-13, the function returns 10, just like the built-in functions strpos() and strrpos(). $string is the string to be searched; $search is what you are searcing for; $nth is the number of the occurrance you are looking for. Hope you all can make use of this!

[PHP] Why is there no mcrypt.dll?

2002-01-30 Thread Mike Maltese
Seems like there is an implementation of every other library for windows, why is this one so elusive? I tried compiling once with Cygwin but gave up out of frustration. Anyone have a source for this or have a compiled copy they'd like to share with me? Mike -- PHP General Mailing List

Re: [PHP] MySQL-PHP-RAQ4 dilemma!

2002-01-30 Thread Mike Frazer
following query: GRANT ALL PRIVILEGES ON 'database' TO 'username@localhost' IDENTIFIED BY 'password'; Obviously, substitute database, username and password with your specific values. That query will allow the particular user/pass combo to access MySQL from the local machin

[PHP] PHP 4.1.1 Dynamic Module Install

2002-01-30 Thread Mike Frazer
I still am showing the wrong version. I copied the binary to where the old binary was and checked the version, and it's showing up correctly as 4.1.1. Any ideas? Mike Frazer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] A function that executes php code in a string?

2002-01-30 Thread Mike Maltese
eval()? - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 30, 2002 10:25 PM Subject: [PHP] A function that executes php code in a string? > I want to execute code in a mysql datrabase, but is this possible? I want > it to ru

[PHP] Re: PHP 4.1.1 Dynamic Module Install

2002-01-30 Thread Mike Frazer
Just a thought...does Redhat 7 install httpd initially with the static module? Mike "Mike Frazer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Okay, I finally decided to upgrade to 4.1.1. I did a double compile, one >

[PHP] No mcrypt.dll?

2002-01-31 Thread Mike Maltese
d like to share with me? Mike -- PHP General Mailing List (http://www.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] question reg trim-strlen

2002-01-31 Thread Mike Maltese
Yep. - Original Message - From: "B. Verbeek" <[EMAIL PROTECTED]> To: "Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 2:48 AM Subject: [PHP] question reg trim-strlen > Does this work? > > >>if(strlen($cust_adres = trim($cust_adres)) > 50){ /*code here*

[PHP] PHP Hosting Services

2002-01-31 Thread Mike Baranski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, just wondering if anyone here could recommend a good (free, if there is a good one) PHP/mysql Hosting service. I'm willing to pay some, but not more than 15 /month Thanks GPG Key located on: http://www.keyserver.net/en/ -BEGIN PGP SIGN

[PHP] Re: PHP 4.1.1 Dynamic Module Install

2002-01-31 Thread Mike Frazer
Okay figured it out. I'm an idiot, that was the problem. I did "/usr/sbin/httpd stop" "/usr/sbin/httpd start" I should have done "/etc/rc.d/init.d/httpd stop" "/etc/rc.d/init.d/httpd start" Realized my error when it worked after a reboot. Mike

[PHP] libmcrypt v2.4.x

2002-01-31 Thread Mike Frazer
Just a quick question: the v2.4.x function declaration for several mcrypt functions requires a path to the library (at least thats what I have gathered), whereas previous versions didn't require this. Are they looking for a specific file path, or a general path to the library files? Mike F

[PHP] WIN CE builds

2002-01-31 Thread Mike Krisher
Anyone know of an Apache and PHP build for Win CE? I would rather build a Web app for my device than completely have to learn eMbedded VB, or use the IIS port with something like PocketASP from modezero. Thanks in advance, __ Mike Krisher Director of Technology

Re: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Mike Maltese
Thanks, LAMER - Original Message - From: "Gregor Welters" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 5:06 PM Subject: [PHP] this list has been mutated to a lamers paradise > just wanted to point this out. > > > > > > -- > PHP General Mailing List

Re: [PHP] Date format

2002-02-01 Thread Mike Frazer
$today = date("d/m/Y"); That will get the current date and dump it in the format you asked for (DD/MM/, complete with leading zeros). Mike Frazer "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... list($y,$m,$d)

[PHP] Re: Problems with date function

2002-02-01 Thread Mike Eheler
Y",strtotime(odbc_result($resultado,'fechaasignacion')));?> date accepts unix timestamps, not strings, so you have to convert that string to a unix time with strtotime. Mike Jorge Arechiga wrote: > Hi everybody > > I hope someone can help me in an issue on

[PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler
has a text file that I can just read line-by-line or perhaps comma separated? Or maybe a version of PHP I can download which has all extensions built in? Mike -- Taxes are not levied for the benefit of the taxed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler
That'll do! Thanks! Mike Jason Wong wrote: > On Saturday 02 February 2002 02:29, Mike Eheler wrote: > >>Okay, my goal is to compile an array of *all* functions currently >>defined and available in PHP 4.1.1. >> >>That's a simple task if all I want is f

RE: [PHP] PHP/Flash interaction

2002-02-01 Thread Mike Krisher
g specific. __ Mike Krisher Director of Technology hyperQUAKE 312 West 4th Street Cincinnati, OH 45202 Tel: 513.563.6555 Cel: 513.254.7821 AOLIM: twopeoplecom ICQ: 83891383 MSN: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Attaching a file via MAIL()

2002-02-01 Thread mike cullerton
add an attachment?? you really want to read the rfc for this. i think it is 821. google for 'smtp rfc' and you should be able to find it. here is a function i wrote when i was first learning php, and i'm sure it can be cleaned up, but it usually works for me. hope it helps, mi

[PHP] Re: Email Attachment

2002-02-01 Thread Mike Eheler
s.. a good place to start would be http://phpclasses.upperdesign.com/ Mike Eheler SearchBC.com Technical Support Mauricio Sthandier wrote: > Hello, I'm new in php development... I was wondering how can I attach a Word > (.doc) Document in an email sent with the mail() function (if I can d

[PHP] Re: Mysql & php

2002-02-02 Thread Mike Frazer
Give us the exact error message, that probably will hold the answer. Mike Frazer "Uma Shankari T." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hello, > > I am trying to connect php and mysql with the followi

Re: [PHP] file validation

2002-02-02 Thread Mike Frazer
_pipes < 2 || $num_pipes > 4) { return false; } } return true; } Same result, probably absolutely no measurable (and we're talking fractions of microseconds here) difference in speed, but much easier to read. Mike Frazer "Lars Torben Wilson" <[

Re: [PHP] file validation

2002-02-03 Thread Mike Frazer
sizeof($lines); $i++) { $num_pipes = substr_count($lines[$i], '|'); if ($num_pipes < 2 || $num_pipes > 4) { return false; } } return true; } I performed the test purely out of curiosity, not pride :) Thanks for the idea though, it was interesting to see

Re: [PHP] ereg_replace help

2002-02-03 Thread Mike Frazer
nl2br() would serve that purpose as well. See the Strings section of the Functions Reference in the manual. Mike Frazer "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $lines = file("filename_here.blah

Re: [PHP] HTTP Header

2002-02-04 Thread Mike Maltese
Just use header(). header("HTTP/1.1 200"); header(Date: Mon, 04 Feb 2002 10:01:54 GMT"); etc., etc. Just make sure that they are all sent before you start any output to the browser. Mike - Original Message - From: "Daniel Reichenbach" <[EMAIL PROTECTED

Re: [PHP] Oddity

2002-02-04 Thread Mike Maltese
This could be the problem in your for loop: $elementKey = key( $macroDataArray ) - you're using the = assignment operator. Try == or <=. Mike - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February

Re: [PHP] mysql backup function in php?

2002-02-04 Thread Mike Maltese
Use PHPMyAdmin. You can dump to a CSV file or it can output all of the INSERT statements to rebuild a table. - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 8:22 AM Subject: [PHP] mysql backup function in php? >

Re: [PHP] Oddity

2002-02-04 Thread Mike Maltese
You may want to give mysql_fetch_object a try. I like it because you end up typing less. You access elements like this: $row->data, instead of $row['data']. Just my $0.02. Mike - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread mike cullerton
on 2/4/02 11:32 AM, Peter J. Schoenster at [EMAIL PROTECTED] wrote: > Hi > > If I use $snippet = ""; and escape the quotes in the block then it > works. But if I use it as is below, it fails with no useful error > message. Why? not sure if this is it or not, but from the manual http://www.php

[PHP] Re: help - config setting directives in Apache config files not working

2002-02-04 Thread Mike Frazer
Compile Apache alone and then do the dynamic module, there are also fewer steps in doing so. Mike Frazer "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I found this on a web site... > > >When using PHP as an A

Re: [PHP] Sockets

2002-02-04 Thread Mike Frazer
096 is the chunk size, you can adjust it } I *think* EOF on a socket deonotes a remote socket close but I could be horribly wrong. Mike Frazer "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am aware of cURL, bu

Re: [PHP] Sockets

2002-02-04 Thread Mike Frazer
ripts useless on later versions of PHP. The Network functions, as classified in the manual, are very solid and widely supported. If it works the way you want it to with one method, why recreate your own wheel? Mike Frazer "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message [E

Re: [PHP] date( ) - function

2002-02-05 Thread Mike Maltese
try date("H:i:s",time()). Mike - Original Message - From: "soma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 12:32 AM Subject: [PHP] date( ) - function > i have one question > > linux system's time is

[PHP] Re: Links to other pages

2002-02-05 Thread Mike Frazer
HTML or XML or whatever is being sent. Try changing your $CFG->dirroot to a values based on your server root or a vhost root (for whichever site the script below is for). Mike Frazer "Morten Nielsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] Check if var is a domain name

2002-02-05 Thread Mike Frazer
0 TLDs too, so it's not the most practical thig in the world. Mike Frazer "Jeff Sheltren" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, I would use a regular expression to check it. This is a pretty general > one, but

Re: [PHP] Checkboxe problem

2002-02-05 Thread Mike Maltese
just use iseet(); if(isset($private)){ //do stuff } - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 8:41 PM Subject: [PHP] Checkboxe problem > I have a form with 1 checkbox and have coded it like this: > > > >

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread Mike Frazer
If the remote system has the finger service activated, that would work. However, most servers have stopped running this and also the user generally has a say in whether they want to be listed. Out of curiosity, why do you want to do this? Mike Frazer "Bvr" <[EMAIL PROTECT

Re: [PHP] copy + chmod problems ...

2002-02-07 Thread mike cullerton
i just tried a test and it works on MacOS X. even with the space between 'chmod' and '('. what platform are you on? is this a standalone script/app or from a web page? can you perform the chmod from the command-line? what is the entire error message? also, the error doesn't really suggest this,

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this? Mike Fifield Charles Schwab & Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is sub

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
ssage- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Checking to see it a host is up. I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this?

Re: [PHP] Php Projects

2002-02-08 Thread mike cullerton
in. playing with routers late on a friday night after a few cold ones was always fun :) -- mike cullerton michaelc at bakednotfried dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] vpopmail support

2002-02-13 Thread Mike Crosland
Hi, I'm trying to build php 4.1.1 from the FreeBSD ports colloection with vp[opmail support. I've tried tinkering with the Makefile but with no success. Can anyone give me a few pointers? Mikle Crosland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Sorting an array of arrays....

2002-02-14 Thread Fifield, Mike
, "time", "7"); $data[red] = array("name", "age", "time", "6"); $data[yellow] = array("name", "age", "time", "2"); $data[white] = array("name", "age", "time", "1"

RE: [PHP] Sorting an array of arrays....

2002-02-14 Thread Fifield, Mike
have to do it this way. I need it to go through each key and sort the keys based on a value in the array held in that key. Thanks Mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:35 AM To: 'Fifield, Mike'; [EMAIL PROTECTE

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
t some input as to which would be the fastest/ best way to use. Mike Fifield Charles Schwab & Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is subject to archival and review by someone other than the recipient.

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
If no one in this forum can answer this, can someone point me in the direction of list or other resource that may be able to provide some input? Thanks in advance. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 9:22 AM To: [EMAIL

[PHP] Storing images in MySql

2002-04-16 Thread Fifield, Mike
are welcome. Mike

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
Actually you can do this if all you are trying to do is disable right clicking. If you are thinking this will stop people from getting your pictures this is not the case. When a picture is viewed by someone it is downloaded to there comp first. No way to disable this. To disable right clicking yo

RE: [PHP] Images don't save

2002-04-18 Thread Fifield, Mike
return false; }} if (document.layers) { if (e.which == 3) { alert(message);return false; }}} if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; // --> -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, A

[PHP] MySql query

2002-04-19 Thread Fifield, Mike
Ok this could be the wrong place to ask this but there seems to be some people in here that know mysql quite well. My question is this; I have a database that looks like this. galleries gallery_id gallery_name 1 3d 2 fractals 3 abstract 4 cats 5 cars Images image_id gallery_id image_na

<    7   8   9   10   11   12   13   14   15   16   >