Re: [PHP] Grab value of mail headers

2002-07-24 Thread Michael Sims
On Thu, 25 Jul 2002 05:47:57 +0200, you wrote: >Bonus points if you could tell me a way to parse the entire headers >into something useful like a set of key, value pairs using the header >name as key and the value as value. $lines = split("\r?\n",$headerstring); foreach($lines as $line) { if

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Michael Sims
On Thu, 25 Jul 2002 15:05:36 +0200, you wrote: > l> for example: > l> $mem='this is a test'; > l> preg_match('/test/', ...) should return me somehow: 10 How about this: $mem='this is a test'; if(preg_match("/(.*)test/",$mem,$matches)) { echo strlen($matches[1]); } Of course, if "test" occur

Re: [PHP] How do I show the sourse code?

2002-07-27 Thread Michael Sims
On Sun, 28 Jul 2002 03:41:19 +0200, you wrote: >I have seen on some of the script-sites around some nice ways of presenting >the source code. Often in nice colors. So, the natural question is: how is >that done (cause I don't think anyone has the patience to put < and > >around all the <>) http:

[PHP] Site Search

2002-07-28 Thread Michael Hall
apart from attempting to add some kind of subjective "search term" fields to the data, I can't see how else it can be done. TIA ---- MICHAEL HALL Web Development Officer Batchelor Institute of Indigenous T

Re: [PHP] running php with .html files?

2002-07-28 Thread Michael Sims
On Sun, 28 Jul 2002 08:18:40 +0100, you wrote: >Hi All, [...] >I have a php script that I wish to execute but I want to put it in >index.html (not index.php) > >I know there is a solution involving configuration files in either the >directory wher the file is held or specifically for the server.

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Michael Sims
On Mon, 29 Jul 2002 17:30:48 -0400, you wrote: >Is it really necessary to store passwords encrypted in a mySQL DB for a >membership site if you're not storing sensitive info such as credit card >numbers? How much security does that offer, really, and for whom? [...] >The reason I ask is because I

Re: [PHP] Help with fopen please.

2002-08-01 Thread Michael Sweeney
e that the ftp server on that system supports passive ftp? In any case, fopen may not be the best approach to meet your needs, but you need to tell us more about what the actual problem is. ..michael.. On Wed, 2002-07-31 at 16:26, Shane wrote: > Looked in the archive and manual and came up wit

Re: [PHP] HELP with forms

2002-08-02 Thread Michael Sweeney
olution. In any case, it won't/can't become a "php variable" until it is sent back to the server. So why not submit the form from your bottom frame with a target of the frame that you need the variable in and refresh that frame? ..michael.. On Fri, 2002-08-02 at 10:14, Dave

Re: [PHP] Need help to choose hosting!

2002-08-02 Thread Michael Sweeney
I just moved my domain over to phpwebhosting.com. The transfer went very smoothly and so far I've been satisfied. The only hitch I can see in your requirements might be the background processes (bots, what?). But it's probably worth asking them about. ..michael.. On Thu, 2002-08-0

RE: [PHP] Re: Protect PHP coding

2002-08-03 Thread Michael Geier
Acer, Did you ever consider the fact that ASP, JSP and CF jobs are advertised more because their developers actually advertise? When was the last time you saw a commerical on TV for PHP? And yet, due to PHP's extensive development and interoperability, it is one of the highest installed pac

[PHP] getting PHP --with-imap to work on OS X? (cross-post)

2002-08-08 Thread Michael Geary
ry to my /usr/local/include directory. However, I always get errors when I "make". Please, would someone be willing to offer detailed instructions? If I get this thing working, I'd be more than willing to post or mail my notes so that others can enjoy the fun. Thanks in adv

[PHP] compile PHP --with-imap, on OS X: progress, but...

2002-08-09 Thread Michael Geary
f this? I would really appreciate some help. regards, michael geary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML issue... spaces in between images

2002-08-12 Thread Michael Zornek
Ok so in my HTML I have: but because they are on separate lines with spaces, I get spaces rendered on the screen. If I write the code like: I get no spaces but it's harder to read anyone know of a way to tell html to ignore these spaces? I could in theory do something like this in

[PHP] requesting sites running OS X

2002-08-13 Thread Michael Geary
et me know. -michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [Followup] Exploding Zip Codes! (Using PHP's explode function)

2002-08-13 Thread Michael Geier
are you trying to insert into MySQL DB? Or select out of the DB? insert: table structure: zip city etc... connect to db; loop through your array { //while ($array = array_shift($data)) create $sql from array parts ($sql = "insert i

Re: [PHP] mailing list managers

2002-08-13 Thread Michael Sims
On Wed, 14 Aug 2002 01:09:32 +1000, you wrote: >I was hoping that maybe there's an opensource or commercial product out >there that I can install in my doc root (ie, PHP + MySQL support) which will >handle this in a more effective manner (ie, space the mailout across an hour >or so, etc etc). Ta

Re: [PHP] Comparing Data

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 21:31:22 -0400, you wrote: >Well, the only problem is, the data will be outputted into a dropdown box, so a loop >would cause duplicates of the ID. > >Guess I should have mentioned that there are approx 50 ID's and they are not unique. >The only way I can think of doing it

Re: [PHP] howto disable cron output

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 18:42:17 -0700 (PDT), you wrote: >i wrote an ecard script and added 'send at a future date' feature. >this feature is implemented via cron that runs daily at 1200 hours > >$> crontab -l looks like: >00 00 * * * wget http://ecard.domain.com/futuresend.php 2&1> /dev/null > >it w

Re: [PHP] location headers are crisco to cookie headers?

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 22:14:28 -0500, you wrote: >I had some headers that were working on one server (4.0.6), but isn't >working on my (nearly) fresh install of 4.2.2. Here's the conundrum: >header("Set-Cookie: mid=$mid"); >header("Location: $location"); >exit; >worked just fine. I mo

RE: [PHP] Variable

2002-08-14 Thread Michael Egan
ed a space after ')' before passing it to MySQL. Michael Egan -Original Message- From: Remon Redika [mailto:[EMAIL PROTECTED]] Sent: 14 August 2002 01:23 To: [EMAIL PROTECTED] Subject: [PHP] Variable this is the form -- insert.php --

[PHP] Retrieving variables

2002-08-14 Thread Michael Hazelden
e, it retrieves it as a literal ... not much help because I want to parse it as a proper value. Is there any way to retrieve that value and then parse it within the PHP to create the "c:/webconsole/path/to/file" string that can be stored within another variable? Anybody got any thoughts?

RE: [PHP] Re: Retrieving variables

2002-08-14 Thread Michael Hazelden
x27;,value,';') as a from variables I can then eval() that result with no problems. Cheers, Michael. -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: 14 August 2002 12:56 To: [EMAIL PROTECTED] Subject: [PHP] Re: Retrieving variables You may add &

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Michael Eales
This did indeed fix the problem, thanks for the advise. A question though: Why is this necessary, the include/require is called from index.php while in "PHP mode" ? The functions work fine as if I remain in "PHP mode" within the functions. It is only when I go in and out of "HTML mode" within th

RE: [PHP] create header and redirecting

2002-08-15 Thread Michael Hazelden
AFAIK - you can't echo or print before sending a header. If you want to do this - maybe use meta tags rather than the location redirect. Michael. -Original Message- From: Reymond [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 11:40 To: 'Michael Hazelden' Cc: [EMAIL PRO

RE: [PHP] create header and redirecting

2002-08-15 Thread Michael Hazelden
Actually - I meant: http://your.website.com";> This will perform the same thing as the location redirect ... only it does it in the body of the HTML. M. -Original Message- From: Reymond [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 11:55 To: 'Michael Hazelden' Cc

Re: [PHP] stupid question

2002-08-15 Thread Michael Sims
Liam MacKenzie wrote: >>Ok, I'm having a blonde day... >> >>If $idx == 1, 4 or 9 I don't want it to echo $results. >>I have this, what's the syntax to put multiple values in there? >> >> >>if ($idx != "1") { >>echo"$results"; >>} Another way to do it is by using in_array(), like so: if (!in_arr

[PHP] Re: Sending via stand alone SMTP on win98

2002-08-15 Thread FoxRings / Michael
I want to send mail under win98, and I know that this is the proper solution... ---snip Hope this work: --> edit your php.ini and type your SMTP server [mail function] ; For Win32 only. SMTP = yoursmtpserver.com Regards. Jhon R. Putra ---snip But my problem

[PHP] Full service SMTP on win98

2002-08-15 Thread Michael Hendsbee
I want to send mail under win98, and I know that this is the proper solution... ---snip Hope this work: --> edit your php.ini and type your SMTP server [mail function] ; For Win32 only. SMTP = yoursmtpserver.com Regards. Jhon R. Putra ---snip But my problem is how to g

RE: [PHP] Re: Getting PHP to submit a form to google

2002-08-16 Thread Michael Geier
a more OO approach might be to use the Snoopy PHP class (http://snoopy.sourceforge.net) This will allow you to do GET/POST method requests on URLS with query variables, ie: POST $snoopy = new Snoopy; $submit_vars["q"] = [ form variables ]; $submit_url = "http://www.

Re: [PHP] Undefined index error

2002-08-19 Thread Michael Sweeney
n array index that hasn't been set. ..michael.. On Mon, 2002-08-19 at 14:49, Shu Chow wrote: > I'm using the superglobal $_POST array to access URL > parameters passed to my page. I was getting undefined > constant errors in my error_log file, and found that I > needed to q

Re: [PHP] how to fight backslash in char variable???

2002-08-20 Thread Michael Sims
On Tue, 20 Aug 2002 15:13:53 +0300, you wrote: >the problem is that from out.php I need to echo this $intext but I get: > >blablabla \' blablabla > >the question is.. how to fight this backslash out of there? The magic_quotes_gpc setting is enabled on your server. If you have access to the serv

Re: [PHP] Embeding images in HTML emails

2002-08-20 Thread Michael Sims
On Tue, 20 Aug 2002 14:52:21 +0300, you wrote: >Hi, > >Does anyone know how to embed images in HTML emails in order to avoid a >server request (no http://server/foo.img";>)? >Is this possible? It is possible. If you are sending a multipart MIME message, attach the image as MIME type image/gif o

RE: [PHP] phpMyAdmin

2002-08-21 Thread Michael Egan
Steve, I think it's fairly standard that hosts provide you with a single database. A suggestion made with earlier thread, which I follow, is simply to make sure you set up your tables with names that clearly identify their function to you. Michael Egan -Original Message- From:

RE: [PHP] Sorting a multi-dimensional array

2002-08-21 Thread Michael Egan
en retrieve the information sorted by various fields defined in your query to the database. Others may well advise that this is not the best way of doing this but it's worked for me and has saved me beating myself up over not being able to get to grips with some complex functions! Michael Egan -

[PHP] PHP IDEs

2002-08-21 Thread Michael Egan
. Up until now, in an attempt to try and get to grips with these packages, I've been using a variety of text editors from VI to Kwrite. But I'm wondering whether it might speed up development times if I start to use one of the tools out there for working with PHP and MySQL. Any thoughts

RE: [PHP] Image library

2002-08-21 Thread Michael Hazelden
that helps - but I thought I'd share my experience. Michael. -Original Message- From: Scott Houseman [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 14:39 To: Justin French; PHP General Subject: RE: [PHP] Image library Hi all. This confirms what I suspected. The hash algrithm:

Re: [PHP] trouble with function

2002-08-25 Thread Michael Sims
On Mon, 26 Aug 2002 01:12:56 +1000, you wrote: >However, I was hoping to use it in a similar way that I use mysql in the >above code... something like: >while($song = getSongByArtist(4)) >{ >echo song['title']; >echo song['writers']; >echo song['video']; >echo song['artist_id'

Re: [PHP] trouble with function

2002-08-25 Thread Michael Sims
On Sun, 25 Aug 2002 10:49:00 -0500, you wrote: >static $myrow; >if($myrow = mysql_fetch_array($result)) { [...] Oops. We want to remember the position of the result set, so it's $result that should be static, not $myrow. In addition, you'll have to put a check at the top of the function to see

Re: [PHP] foreach fails on unitialized array?

2002-08-27 Thread Michael Sims
On Wed, 28 Aug 2002 12:53:45 +0900, you wrote: >When I use foreach on a uninitialized array I get the following warning: > >Warning: Invalid argument supplied for foreach() in >/www/htdocs/jc/cart/add_item.php on line 21 > >I would expect foreach to treat an unitialized variable as an empty >a

[PHP] why does my querry work in the mysql client but not in php?

2002-08-29 Thread Michael Knauf
quot;); $db = mysql_select_db($db_name, $connection) or die("Couldn't select database."); $query = "update endpage set productname='$productname', bgcolor='$bgcolor', imgsrc='$imgsrc', img_orientation='$img_orientation', cartlink='

Re: [PHP] Set Variable to Multiple Lines

2002-08-29 Thread Michael Sweeney
t; > (in perl) > $variable = __SOME_HEADER_HERE__ > > Put whatever is desired here, including $variables. > > Just end it with this: > > __SOME_HEADER_HERE__; > > > Anyone know what this is for PHP? > > Best wishes > > Michael Richardson > We

[PHP] --with-imap strangeness in 4.3 dev

2002-08-30 Thread Michael Geary
when I try to do: imap_mail(); I get an error: "Call to undefined function: imap_mail()" When I look at phpinfo(); it indicates that the configure command includes "--with-imap-ssl=/usr", however there is no entry for IMAP down below with the other modules. Can anyone hel

Re: [PHP] Dumb Question

2002-08-31 Thread Michael Sims
On Sat, 31 Aug 2002 14:04:11 -0400, you wrote: >And I feel foolish asking... >What is meant by 'procedural code' ??? It's the opposite of "declarative code". Here's a page that briefly explains the difference: and

[PHP] Why doesn't the second instance work?

2002-09-02 Thread Michael Knauf
"; ?>=00=00 The second instance does not work, I get a select with "," as each=20 option, no population with the id or productname. Clearly, I don't=20 understand something here, can anyone tell me what? Thanks for the time, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread Michael Geary
w and I'll send them to you. -michael On Wednesday, September 4, 2002, at 09:14 PM, JJ Harrison wrote: > I will be generating a dynamic website for a Class in america. (Don't > worry > about details) > > The schools technican is the type that doesn't really know what t

Re: [PHP] defining vars within functions as global

2002-09-06 Thread Michael Sims
On Fri, 06 Sep 2002 13:52:08 +1000, you wrote: >Hi, > >I'd like to be able to define multiple variables within a function, and have >it available outside the function from the point the function is called... How about this: "aaa", "bar" => "bbb" ); } extract(foo()); echo $foo; echo $

RE: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Michael Egan
Philip, I've found UK Linux (http://www.uklinux.net) to offer a good service at low cost. They also offer 50% discount for charities. Michael Egan -Original Message- From: Philip Radford [mailto:[EMAIL PROTECTED]] Sent: 06 September 2002 05:47 To: [EMAIL PROTECTED] Subject: [PHP

[PHP] Need PHP programmer ASAP..

2002-09-11 Thread Michael Plasse
Hello, I need a PHP programmer ASAP to help with site updates on large childrens webiste. Please reply to: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP help needed

2002-09-11 Thread Michael Plasse
Hello, I need a PHP programmer to assist me with updates to childrens website. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtolower -> strtoupper

2002-09-11 Thread Michael Sims
On Thu, 12 Sep 2002 05:21:01 +0300, you wrote: [...] >$name = "mattson-hedman" # correct format is Mattson-Hedman, but user >can write in many ways. $name came from db. > >so how I can convert this $name format "Mattson-Hedman". [...] Try this: function uc_all ($str) { $temp = preg_split('/(

[PHP] pdflib encoding error

2002-09-12 Thread Michael Plies
Hello, maybe someone can help me. i have specified the *.PFB and the *.AFM file. this all works by setting the encoding to pdf_set_font("the_typo_name",size,"winansi",1); i got the error : Warning: Internal PDFlib warning: Can't reencode Symbol font 'TheSansBold-Caps' (using builtin) in where

RE: [PHP] jpeg thumbnail errors

2002-09-17 Thread Michael Egan
been supplied to them. You would need to recompile PHP so that such support is offered - no mean feat from my own experiences. I gave up :-( Michael Egan -Original Message- From: Warwick Berg [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 00:08 To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] jpeg thumbnail errors

2002-09-17 Thread Michael Egan
r the help. Michael Egan -Original Message- From: Tony Earnshaw [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 11:44 To: Michael Egan Cc: [EMAIL PROTECTED] Subject: RE: [PHP] jpeg thumbnail errors tir, 2002-09-17 kl. 09:53 skrev Michael Egan: > You would need to recompile PHP so that su

[PHP] Good OO PHP resources? Open Source APIs?

2002-09-18 Thread Michael Zornek
I've been doing PHP for about 2 years now. The code I write is generally procedural although I have been using a MySQL class to do some db stuff as of late. Over last few months, I've been learning Cocoa. If you don't know its an OBJ-C based API to develop apps for Mac OS X. By doing so I want

Re: [PHP] Good OO PHP resources? Open Source APIs?

2002-09-19 Thread Michael Sims
On Thu, 19 Sep 2002 00:50:56 -0400, you wrote: >By doing so I want more and more of my PHP to be purely OO. I'm fairly >aware of how to write my own classes for data but are their any frameworks >out there to do the foundation stuff already? Have you looked at PEAR? It comes with the PHP distr

Re: [PHP] checking if an array is empty

2002-09-21 Thread Michael Sims
On Sun, 22 Sep 2002 01:13:08 +1000, you wrote: >how can i check if an array is currently empty , for instance i have a file >input field with an array name for multiple images, i need to check if there >was no file uploaded in that field name and ignore it in the loop I find that empty() works w

Re: [PHP] checking if an array is empty

2002-09-21 Thread Michael Sims
On Sun, 22 Sep 2002 11:09:16 +1000, you wrote: >thats the thing , the word Array is what it returns even though there was no >input file. Oh, I see. Without seeing your code, the best recommendation I have is to loop through the array and remove the empty elements, then check to see if the arra

Re: [PHP] [bob@elitegroup.on.ca: RE: php emails]

2002-09-21 Thread Michael Geier
I have never used BSD so forgive any of the obvious: 1. Sendmail installed on this machine? 2. Is the php.ini value for 'sendmail_path' correct? 3. Is there any firewall or port.deny for SMTP? 4. Can you send mail from the CLI? -- Michael Geier CDM Sports, Inc.

[PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Michael Sims
I have a few application design questions that I was hoping someone might have some thoughts on. I'll warn you in advance that this post is kinda long winded. I'll try my best not to use two many trendy buzzwords, but I may not be able to avoid it. :-) I work for a real-estate company and one o

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Michael Sims
On Sun, 22 Sep 2002 11:31:17 -0500, you wrote: >Basically, it's really easy to create multiple interfaces to the same >business logic. Don't try to make things more complicated than >necessary, and since there is no need to use multiple languages in your >implementation, that is a complexity w

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Michael Sims
On Sun, 22 Sep 2002 13:07:05 -0500, you wrote: >Oh yeah, avoid that at all costs. Sounds like something like SOAP etc. >could have been an answer, but then it depends on how you write your >apps. Well, that is basically my question. I considered both SOAP and XML-RPC (which you mention later

Re: [PHP] session_start() --> no more output

2002-09-22 Thread Michael Sims
On Mon, 23 Sep 2002 00:54:07 +0200, you wrote: >session_register("bunt"); >phpinfo(); >?> > >This is just a simple example. The problem is that the script produces >no output at all when called with the browser. Is it possible that display_errors is set to "Off" in your php.ini? If this were the

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Michael Sims
On Sun, 22 Sep 2002 18:45:37 -0300, you wrote: >Hello, Hi Manuel... >Good idea, bad project. It is good that you diversify your knowlegde if >that helps your career but I think it is not a good idea to make >technology shift in a project that is already written and working well >in a certain

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Michael Sims
On Sun, 22 Sep 2002 16:40:06 -0500, you wrote: >I was just looking at my software architect book ... not half-way >through yet. Good book. CORBA is what is mentioned know, a bit >different than SOAP but I don't know enough of either yet to say for >sure. Something like CORBA looks good to me,

RE: [PHP] Wrap content with a layout file

2002-09-23 Thread Michael Egan
aware of but can be quite useful and is not as messy as frames. Michael Egan -Original Message- From: Patrick Lebon [mailto:[EMAIL PROTECTED]] Sent: 23 September 2002 06:47 To: [EMAIL PROTECTED] Subject: [PHP] Wrap content with a layout file Is there a way to create a layout file that

Re: [PHP] Re: session_start function breaks flush function in 4.2.1

2002-09-23 Thread Michael Sims
>"Chris Andrew" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> I use a script which initially sends a friendly message to a browser, and >> then goes about some lengthy processing. The browser is IE and I am aware >of >> the 256 byte issue. >> >> The script w

[PHP] Jpeg resize quality problem

2002-09-24 Thread Michael F.
Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG function. But the result picture quality is not enough good. I use ImageJPEG with quality = 90 but the picture is not as nice as a picture I made with AcdSee and 65%. Is it normal? Thanks! -- PHP Gen

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Michael F.
xec("convert > ...") or imlib extension > > Michael F. wrote: > > >Hello, > > > >I have a php script which resizes a jpeg file. I use ImageCopyResized and > >ImageJPEG function. But the result picture quality is not enough good. I use > >ImageJPEG wi

Re: [PHP] XSLT and PHP

2002-09-24 Thread Michael Sims
On 24 Sep 2002 10:22:41 -0500, you wrote: >What I am looking for is either a way to use includes in xsl stylesheets >or something like Fusebox layouts for xml/xsl. Thank you You may get better answers if you post this in comp.text.xml... -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Looking for a forum

2002-09-26 Thread Michael Egan
There are a huge number of forums at php.resourceindex.com These range from fairly basic forums such as venomboard to more complex forums such as phpbb Michael Egan -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 06:26 To: [EMAIL

[PHP] Extreme Sports

2002-09-26 Thread Michael Egan
meironing.com It's not a bad looking web site and, needless to say, is done with PHP :-) Michael Egan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] no $PATH_INFO by using URLs with "*.php/value" and not "*.php?value"

2002-09-26 Thread michael schoenboeck
d as module. (php4apache2.dll) on the phpinfo(); i also can't find any $PATH_INFO did any one know about this problem, becouse all my apps are based on this feature, and when i using CGI files at apache2 i can use the / SEEYA michael -- PHP General Mailing List (http://www.php.net/) To un

[PHP] php question

2002-10-01 Thread michael saxbury
I am trying to understand in deatil exactly what PHP is, I know that it is a scripting markup type language, but. Is it correct to say that PHP is essentially just C++ code wrapped in PHP blocks which are embedded in HTML? Thanks, Michael Saxbury

Re: [PHP] time of day

2002-10-03 Thread Michael Sims
On Thu, 3 Oct 2002 14:43:37 -0700 (PDT), you wrote: >Hello, > >I was wondering if anyone has a good example of a way to do this. Kinda >lame, but like if the time is between 8am and 12pm, say "good morning", >between 12pm and 6pm, say good afternoon, and so on. > >I know this is probably pretty t

RE: [PHP] Function to remember costs.[Scanned]

2002-10-11 Thread Michael Egan
value attribute of the hidden field. Michael Egan -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: 11 October 2002 11:47 To: PHP General Subject: [PHP] Function to remember costs.[Scanned] I am having difficulty passing details to a form. I need to somehow pass

[PHP] Need experienced PHP programmer ASAP

2002-10-14 Thread Michael Plasse
We need an experienced PHP programmers to help fix some bugs as well as create custom scripts for our children's website. We need someone asap. Please reply to [EMAIL PROTECTED] Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Jaguar OS help

2002-10-16 Thread Michael Zornek
Pushpinder Singh Garcha said: > Hi > > i have recently upgraded from OS 10.1.5 to Jaguar. I previously had 2 > users on the system. and using the main login screen I could select the > user that I wanted to log on as. Now that I have installed Jaguar ...I > do not get any such screen to select u

[PHP] xml parsing

2002-10-17 Thread Michael Ransburg
Hi! I understand that it's easily possible to parse xml documents with php. But what about changing them? With other xml parsers, I have the xml document in a structure (usually a tree or an array) and when I change something in the structure I can later "write out" the structure again into a xml

[PHP] Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Michael Zornek
I've written a nice php/mysql site that let's you search for hospitals and community colleges by zip code. The search is built upon some math that figures out distances by a zip's lat and lon cords. My problem is that my current ZIP table (bout 42,000 rows) seems to be flawed. There are a ton of z

Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitudetable

2002-10-30 Thread Michael Zornek
On 10/30/02 2:31 PM, Manuel Lemos said: > On 10/30/2002 04:03 PM, Michael Zornek wrote: >> I've written a nice php/mysql site that let's you search for hospitals and >> community colleges by zip code. The search is built upon some math that >> figures out distanc

RE: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Michael Hazelden
How about - and a little more complex ... $mydate = date("d")!=1 && date("d",strtotime("+1 month"))==1 ? date("Y-m-d",strtotime("+1 month")-86400) : date("Y-m-d",strtotime("+1 month")); to summarise - if you perform your "+1 month" and it creates a day of 1, but the current day isn't 1 - do the s

RE: [PHP] Add content thru e-mail

2002-11-04 Thread Michael Geier
hanks, Rodrigo > > > > > > > > > -- > > 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: ht

Re: [PHP] Battling with highlighting search criteria

2002-11-04 Thread Michael Sims
On Mon, 4 Nov 2002 11:59:20 +0200, you wrote: >Ok, this works. > >Just one more thing, > >How can I get the return in the same case as it was originally? Use backreferences to capture what matched and use that in the replace string. Example: $1", $str); echo $str; echo ""; $str = "Is this als

Re: [PHP] How do I convert an array into a mask?

2002-11-05 Thread Michael Sims
On Tue, 5 Nov 2002 20:56:33 -0800, you wrote: >Does anyone know of a nice efficient way to convert an array of values >into a "mask"... I'm going to assume that you mean a bitmask. I'm not exactly sure what you're trying to accomplish, so I may be off base here, but let me describe how I'm using

Re: [PHP] Convince teh boss

2002-11-07 Thread Michael Sims
On Thu, 07 Nov 2002 10:45:18 +0100, you wrote: >BTW, is there any reason why PostgreSQL is not mentioned here? While it >seems there are far more MySQL installations, I personally value PostgreSQL >higher... it's OpenSource as well, it's an OO database (you may inherit, >have object identifiers, e

RE: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread Michael Geier
make a friendly 'office league' type interface for your friends, or are you trying to make something alot bigger? Be prepared for everything you could potentially need for a large operation (did I mention legal department?). ======= Michael Geier CDM S

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Michael Sims
On Sun, 10 Nov 2002 10:48:46 -0500, you wrote: >Hi Earnest. I found these user notes in the PHP manual, but, it's confusing >and seems to be a bit contradictory: It's simple: A user defined error handler cannot handle parse errors or compile time errors. That makes sense to me...if your script

Re: [PHP] isset doesn't like "->"?

2002-11-10 Thread Michael Sims
On Sun, 10 Nov 2002 18:34:52 -0600, you wrote: >PS: what is the proper term for the "->" syntax? pointer? In Perl it's called an infix operator. I think in PHP the technical term for it is that "->" thingy... :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] mktime() problem

2002-11-11 Thread Michael Mayer
ced this problem with PHP 4.2.2 For a more detailed description, have a look at: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=70375 BTW: The PHP docs say, that the valid range for years is (or now "should be") between 1902 and 2037. -- michael liquid bytes technologies w

RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread Michael Egan
you might do: $years = floor($difference / (365 * 24 * 60 * 60)); Hope this helps, Michael Egan -Original Message- From: ROBERT MCPEAK [mailto:RMCPEAK@;jhuccp.org] Sent: 12 November 2002 15:31 To: [EMAIL PROTECTED] Subject: [PHP] newbie: help with date arithmetic[Scanned] I'

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Michael Sims
On Tue, 12 Nov 2002 15:55:52 -0800, you wrote: >It's simple, which is one thing I like about it. My submit.php looks like >this: > >session_start(); >header('Location: ' . $_REQUEST['target']); [snip] I'm curious...your redirect doesn't include the session ID, so how you maintain ses

Re: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Michael Sims
On Tue, 12 Nov 2002 18:28:53 -0800, you wrote: [snip] >My Invisible GET method avoids all of this. If you get an example of this up and running somewhere why don't you post a link... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what wrong in this code ?[Scanned]

2002-11-13 Thread Michael Egan
I think it's to do with the scope of the variable. It will work if you declare the variable as global within the make_login function. Michael Egan -Original Message- From: Alawi albaity [mailto:alawi@;php4web.com] Sent: 13 November 2002 08:13 To: PHPList Subject: [PHP] what wro

RE: [PHP] runing com

2002-11-13 Thread Michael Hazelden
some very revealing errors in there. Cheers, Michael. -Original Message- From: kai [mailto:kai_flash@;hotmail.com] Sent: 14 November 2002 07:20 To: [EMAIL PROTECTED] Subject: [PHP] runing com hi guy's I have a problem running com+ code and would appreciate any help. What I like to

Re: [PHP] BUG with session trans sid ?

2002-11-13 Thread Michael Sims
On Thu, 14 Nov 2002 01:58:49 +0200, you wrote: >So, I use php4.0.6 in default redhat installation. My code: > >ini_set('session.use_cookies', FALSE); >ini_set('session.use_trans_sid', TRUE); [snip] >TRANS SID feature doesnt working, but constant SID set >correctly (PHPSESSID=...). If I write SID i

RE: [PHP] runing com

2002-11-14 Thread Michael Hazelden
Apologies all - that should have just gone to the Windows list ... -Original Message- From: Michael Hazelden [mailto:michael.hazelden@;ocado.com] Sent: 14 November 2002 10:18 To: 'kai'; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] runing com Kai, I've moved this to t

Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Michael Sims
On Wed, 13 Nov 2002 20:12:44 -0500, you wrote: >When I require a file from index.php, if there's no .. on the path (a relative >path, but not going back), the relative path is from where the original file >is, but if there's a .. on the path, the relative path is from where the >symlink is (alt

[PHP] Socket help

2002-11-15 Thread Michael Hazelden
wrong? Thanks for your help, Michael. This message has been checked for all known viruses by the MessageLabs Virus Control Centre. * Notice: This email is confidential and may contain copyright material of Ocado Limited

Re: [PHP] Validating postal codes

2002-11-15 Thread Michael Hazelden
This is a RTFM situation!!! instead of just $form["autopstcode"] - use str_replace(" ","",$form["autopstcode"]) (e.g. strip the spaces before validating the triplets) found in 30 seconds by typing "string" on PHP site. -Original Message- From: DonPro [mailto:donpro@;lclcan.com] Sent: 15

RE: [PHP] php Wildcard???

2002-11-15 Thread Michael Hazelden
Wildcard for what? Please be more specific ... do you mean database queries ... regular expressions ... what? Thanks. -Original Message- From: vernon [mailto:vernon@;comp-wiz.com] Sent: 15 November 2002 15:32 To: [EMAIL PROTECTED] Subject: [PHP] php Wildcard??? Hey all, I'm coming ove

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