Re: [PHP] Threading code

2001-04-09 Thread Matt Friedman
Check out: http://www.phorum.org/ We use phorum at: http://www.theparentreport.com/community/discussion/ Takes a bit of work to install and configure but it's worth it; Check out the link and you'll see it can be fully integrated into your site. Let me know if you have more questi

Re: [PHP] Creating Arrays

2001-04-11 Thread Matt McClanahan
tems, $selected) { > $str = ""; > while(list($value, $name) = each($items)) { > $str .= " ">" : " selected>") . "$name\n"; > } > return $str; > } For the record, you're thinking about list() backwa

RE: [PHP] mail function????

2001-04-12 Thread Matt Williams
> Hi, > I have PHP 4.0 with IIS on Win2K and I think compiled > everything right. > I'm not sure how this works on Win32, but on unix it's fine. It's > the mail() > function. > ex. mail("[EMAIL PROTECTED]","My Subject","My Test"); > and it returns: Warning: Server Error in C:\PHP/index.php o

RE: [PHP] Are calling COM applications a trojan?

2001-04-12 Thread Matt Williams
> Honestly, I still don't get you. > > How can the client's Word not open if the script didn't make it open with > COM. ? Anyway, The only way PHP can make Word open on a clients machine is if a word document is sent to the client, or the clients browser believes that is receiving a word do

[PHP] search highlighting

2001-04-12 Thread Matt Williams
Hi I'm implementing a simple keyword search. I want the results to be displayed with the keywords highlighted. I am currently using this to highlight the keywords str_replace($string,"$string",$field); If I search for php, it will find PHP, PhP etc... but using the above only php will will be h

Re: [PHP] Do any of you provide hosting?

2001-04-12 Thread Matt McClanahan
eeding to go through the admin (some hosts >can do his). But this isn't necessary. > Can anyone help with that? Handy PHP hosting directory: http://hosts.php.net Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: [PHP] Need recommendation: good user management system (PHP/MySQL)

2001-06-21 Thread Matt Williams
> I'm just starting to learn PHP and it's going to > take a while before I can create a really good > script to password protect a section of my site, > with a good admin control center to manage my > user's accounts. Therefore I'm asking for > recommendations on a good retail script that can > ha

Re: [PHP] Output an image stream?

2001-06-23 Thread Matt McClanahan
ectly output the stream? Make sure to send a Content-type header before sending the image data: Header('Content-type: image/png'); ImagePNG($im); Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Hello, > > I'm pretty new to PHP but all I've seen of it so far I pretty much > love! > > I've built a web log but when the user enters their data and they > use ' or " (and you know they will) php always shows it from the > included web lo

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-28 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I have a function that works perfectly (from within a script). But > when I make it a class (object) and call it from an external file, > I get the following error: > > Warning: Missing argument 1 for display_records() in > http://www.fr

Re: [PHP] php / apache

2001-06-30 Thread Matt McClanahan
ers can't directly access files that aren't inside web-visible directories. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Security of PHP code

2001-07-05 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The only foolproof method for restricting access is to strip > forward slashes. In the above example, I can change the file to: > /www/sites/mysite/teaching/../../../../etc/passwd > And it will be allowed > If you were to do this, however: > $al

[PHP] PHP Run Command Line

2001-07-05 Thread Matt Simpson
I need to let PHP run a command as SU... is there any way it can be done? I need it to let Courier compile it's makeuserdb and makemaildir. Any help would be great. -- Matt Simpson Design Coordinator [EMAIL PROTECTED] Online Creator Inc 780 Midpark Dr. Suites 105 & 1

[PHP] GetImageSize

2001-07-10 Thread Matt Simpson
ut at 80 seconds. When you go to the page say www.somedomain.com it just waits and does not load anything for 80 seconds, and when it does, the images that use GetImageSize do not load. -- Matt Simpson Design Coordinator [EMAIL PROTECTED] Online Creator Inc 780 Midpark Dr. Suites 105 &

[PHP] Re: GetImageSize

2001-07-11 Thread Matt Simpson
egory&image=70";); We did write the function like that for a reason... before PHP 4.0.x we used GetURLImageSize because GetImageSize didn't exist yet. blah blah blah... you know what I mean. ~matt "Adam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

RE: [PHP] a good PHP editor

2001-07-18 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I haven't seen any other programs for Windows you can edit remote > files instead of the usual "download, edit, upload". Let me know if > there are other good editors with this feature. HTMLedit (w

[PHP] security, receiving html from a form

2001-07-18 Thread Matt Greer
For my website I created an updating system in php. Where my staff and I can write articles that then get saved to the server, linked to, etc. I allowed html to be passed from the form because a lot of the staff likes to use html tags in their articles. Which I know is a security issue. I know I

Re: [PHP] security, receiving html from a form

2001-07-18 Thread Matt Greer
hp.net/strip_tags > Interesting. Thanks for the link, it gave me some good stuff to think about. strip_tags() appears to have some holes in it, but the comments offered provided some work arounds. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Matt Greer
trying to close their main window. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] I AM AT THE START POINT

2001-07-19 Thread Matt Greer
uot;localhost" as the URL, if it brings up a page about apache, chances are you're good to go. I recommend grabbing "Beginning PHP4" from Wrox press. They cover getting php installed pretty well, and of course give you a nice primer on the language itself. Matt -- PHP Genera

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Matt Greer
asis of the original question. > D'oh! Reading comprehension is usually considered to be a good thing :) My bad. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Using mod_rewrite with PHP

2001-07-20 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I've been wrestling with mod_rewrite and trying to understand how > to use it for my particular purpose. I've got two php URLs I'd > like to rewrite to make them search-engine friendly. Currently > they look like: > > Example 1: > http://mysi

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
Did you try $name . "" . $last_name, etc. Although the will just show up as plain text in a text email, so I'd try the new line character "\n". Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] Another how do i question

2001-07-23 Thread Matt Greer
on 7/23/01 10:49 AM, Matt Greer at [EMAIL PROTECTED] wrote: > on 7/23/01 6:25 PM, Kyle Smith at [EMAIL PROTECTED] wrote: > >> I made this code for a simple for (the end of it) but what do i change in the >> $message variable so there is a new line between each other variable i

Re: [PHP] Keeping fields out of URL

2001-07-23 Thread Matt Greer
password still appears in the submit > query URL. How do I stop that? Change your method to "post" as in Keep in mind that just sticks the variables in the header rather than on the command line. It's not any more secure than what you had before. Matt -- PHP General Maili

[PHP] keeping track of external image linking with php?

2001-07-23 Thread Matt Greer
ing like and then image.php takes note of the website variable, does a few things with mysql, then passes on the image that is wanted, utilizing something from the gd library? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

[PHP] working with remote images

2001-07-24 Thread Matt Greer
ting a lot more bandwidth. So I'm wondering if its possible to then have image.php tell the requesting server to grab their own copy of the image and load it up? I have a feeling php will grab the image from the other site's server, download it to my server and then upload it back to

[PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
. Any ideas? Here's what I'm trying to do: This is from chapter 16 of Beginning PHP4 from Wrox press. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

Re: [PHP] ereg_replace

2001-07-25 Thread Matt Greer
be "123+happy+trail" Not exactly what you wanted, but you could do implode("+", explode(" ", $home_street)); Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
though. A search through phpinfo() turns up nothing on gd, which makes me think its not installed after all. Is it possible to upload the extension to my directory and call it from there? Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] can't get gd working at all

2001-07-25 Thread Matt Greer
Ah ha, my host was wrong. gd is not installed on the server I'm on, but they're moving me over to one that has it. Sorry everyone, but I didn't know enough about any of this to be able to verify what they told me. Thanks for all the help. Matt -- PHP General Mailing List (htt

Re: [PHP] html form question

2001-07-25 Thread Matt Greer
. HELP!!! Wouldn't it just be: If there's a varying number of options run a loop with arrays $option[$i] ?> Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] IE -> View Source

2001-07-26 Thread Matt Greer
their source. HTML isn't rocket science. Any server side scripting won't be seen, and Javascript isn't all that difficult. I can't imagine any webpage that would truly have a reason to hide their source. Matt -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] auto refresh in every five seconds.

2001-07-27 Thread Matt Greer
sh in every five seconds. This isn't php, and javascript can surely do this. But this will also do it... http://www.website.com/index.html";> Where X is the number of seconds between refreshes, and set the url to itself. Place this within the head. Matt -- PHP General Mai

[PHP] Stripping single quotes

2001-07-27 Thread Matt Stone
seem to be working. Here it is: $fldemail == str_replace("'","",$fldemail); Nice and basic :) Can anyone please enlighten me on this? Thanks in advance, Matt Stone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone
Darn, it still 'aint working. Ok, let's say $fldemail contains "o\'[EMAIL PROTECTED]" I then run these: $fldemail == stripslashes($fldemail); $fldemail == ereg_replace("'","",$fldemail); And I get "o\'[EMAIL PROTECTED]" ... damn.

[PHP] MS Passport type script.

2001-07-28 Thread Matt Kaufman
How would I go about creating a MS Passport type script for use on several different sites - and only having to let the user login on one main place? All the sites would be on the same server. Thanks, Matt Kaufman

[PHP] weird caching problem

2001-07-28 Thread Matt Greer
$icon and then reflecting that change in my code. But that's not ideal for what I'm doing. Any ideas? Here's how I'm calling the image in php: http://www.rcnchicago.com/~tortus/goombaw.gif";); else header("Location: http://www.rcnchicago.com/~tortus/goombab.gif";);

RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone
Thanks for your help everyone, I feel pretty embarrassed to have made a mistake like that! :o -Original Message- From: Bojan Gajic [mailto:[EMAIL PROTECTED]] Sent: Sunday, 29 July 2001 12:44 AM To: Matt Stone Subject: Re: [PHP] Stripping single quotes you are not assigning

[PHP] Re: Image

2001-07-29 Thread Matt Rogers
" come from? Are you trying to show only the first 250x100 of the image? (like a crop) Or are you just trying to resize it? (as if a thumbnail?) --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: HTTP header question.

2001-07-29 Thread Matt Greer
s the case, couldn't you manually set those headers yourself using header()? I'm curious about this myself, but so far I've not been able to find any info on the web. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] Re: HTTP header question.

2001-07-29 Thread Matt Rogers
elped to some degree. -- --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] "Ben Bleything" <[EMAIL PROTECTED]> wrote in message 01c11891$447271c0$0201a8c0@allegro">news:01c11891$447271c0$0201a8c0@allegro... > Hey all, > >

Re: [PHP] Re: HTTP header question.

2001-07-30 Thread Matt Rogers
g about making the browser show only the simple URL and not let it change. That's all. =) What a confusing thread, eh? hehe.. At least if someone wants to read something funny and understands the American Language, this is the thread to read... --- -- M&D C

[PHP] Re: What tools do you use to develop PHP?

2001-07-30 Thread Matt Rogers
ill kinda buggy But it works and keeps me from having to load a bunch of different programs all at once to write, upload, and test my php scripts. =) (I'm a Beta enthuisiast) --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] "Gerry Kirk&

[PHP] New Book - Tips?

2001-07-30 Thread Matt Kaufman
ough I was wondering if any of you other users had any tips or ideas.. Thanks, Matt Kaufman [EMAIL PROTECTED]

Re: [PHP] Admin help please!

2001-07-30 Thread Matt Greer
on 7/30/01 9:00 AM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote: > So.. for php general help thats: > [EMAIL PROTECTED] > > Uhm, this was also in the welcome messages you got when you subscribed. > It's also in the footer of every message posted to this list :) Ma

Re: [PHP] Limit

2001-07-30 Thread Matt Kaufman
I would just query the database to see how many records are currently listed (using COUNT) and use an if statement to see if it's over or under the limit. If it's over you can just print out a message saying that no more entries can be added. Matt Kaufman - Original Message

Re: [PHP] Limit

2001-07-30 Thread Matt Kaufman
No problem, nice to help :) - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: "Matt Kaufman" <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 11:44 AM Subject: RE: [PHP] Limit > perfect, thank you > > -Original Message

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
nc or settings.inc.php) Matt Kaufman - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 12:06 PM Subject: [PHP] Find and Replace > This isn't exactly PHP I need help with, but it relates to what I learned

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
Oh, vi has a find and replace feature if you want to do it through the terminal. Matt Kaufman - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 12:06 PM Subject: [PHP] Find and Replace > This isn&

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
I forget, actually :) Here's a tutorial on it though - http://www.bruce-hamilton.com/tutorials/chmod.shtml Matt Kaufman - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: "'Matt Kaufman'" <[EMAIL PROTECTED]> Sent: Monday, Jul

[PHP] array/mysql problems

2001-07-30 Thread Matt Greer
t;visits; $dummysite->avisits = $dummysite->tvisits/$dummysite->days; $sitearray[$dummysite->avisits] = $dummysite; } echo ""; $sitearray = array_reverse($sitearray); //just trying to get some output, any output for ($i = 1; $i != 100; $i++) echo $sitearray[$i]->siten

Re: [PHP] whats wrong?

2001-07-31 Thread Matt Greer
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote: > Anythig visibly wrong with this? > > > > "> The quotes around $uid are ending value prematurely. html thinks value is "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] Re: What tools do you use to develop PHP?

2001-07-31 Thread Matt Rogers
Why would I pay $100 for something that I'd get sick of using anyway? FrontPage -- Now that's worth paying for! I bought FP98 almost 4 years ago and I still use it to this day. --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] "Ra

Re: [PHP] Make a mailing list

2001-07-31 Thread Matt Greer
t/functionname will bring up the manual page for the function. In the case of www.php.net/mail it brings up a page on all mail related functions. Very handy IMO. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [PHP] Another simple question (dont hurt me)

2001-07-31 Thread Matt Kaufman
Use the mail() function. http://www.php.net/mail Matt Kaufman - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 8:33 PM Subject: [PHP] Another simple question (dont hurt me) In php, oh wait well this

Re: [PHP] If Failing - Very strange

2001-07-31 Thread Matt Kaufman
I'm not sure, but don't you do something with endif(); ? Matt Kaufman - Original Message - From: "Mitch Vincent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 12:57 PM Subject: [PHP] If Failing - Very strange > Coul

Re: [PHP] dynamic variable names?

2001-07-31 Thread Matt Kaufman
I don't know if this is what you want, but take a look at http://www.php.net/manual/en/language.variables.php - You may want to assign them by reference? Matt Kaufman - Original Message - From: "Matthew Delmarter" <[EMAIL PROTECTED]> To: "PHP Mailing List

Re: [PHP] dynamic variable names?

2001-07-31 Thread Matt Kaufman
Nevermind, I forgot about variable variables. Matt Kaufman - Original Message - From: "Matt Kaufman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 10:43 PM Subject: Re: [PHP] dynamic variable names? > I don't know if this is wha

Re: [PHP] Re: FAQ

2001-08-01 Thread Matt Greer
understand it, it's Personal Home Page Hypertext Preprocessor. Rather a mouthful. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-01 Thread Matt Greer
E id=$id"; > strings in a mysql query need to be quoted. So change it to $sql = "UPDATE TABLE seminar SET title='$title',speaker='$speaker',..."; Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] check if user exists

2001-08-01 Thread Matt Kaufman
end if form is submitted Matt Kaufman - Original Message - From: "Ker Ruben Ramos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:44 AM Subject: [PHP] check if user exists > how do i check if user exist? > I tried... > $

Re: [PHP] check if user exists

2001-08-01 Thread Matt Kaufman
end if form is submitted Matt Kaufman - Original Message - From: "Ker Ruben Ramos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:44 AM Subject: [PHP] check if user exists > how do i check if user exist? > I tried... > $

RE: [PHP] check if user exists

2001-08-01 Thread Matt Kaufman
end if form is submitted Matt Kaufman - Original Message - From: "Ker Ruben Ramos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:44 AM Subject: [PHP] check if user exists > how do i check if user exist? > I tried... > $

[PHP] Sorry...

2001-08-01 Thread Matt Kaufman
I'm not sure why it sent 3 of the same messages to the list - sorry about that.

Re: [PHP] Installing PHP probs

2001-08-01 Thread Matt Greer
ws98/me you can use Personal Web Server, which is free and included on your Win98/me cd. It's no big deal once its set up, you still see the scripts' output through your web browser. You can forget about the web server once its in place and working. Matt -- PHP General Mailing List (http:/

Re: [PHP] Content Type Text?

2001-08-01 Thread Matt Greer
e Mac at least, this causes the browser to interpret the tags regardless of the header. Without , the rest of the html tags will show up as plain text. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: What would you want in a PHP web host?

2001-08-01 Thread Matt Rogers
h for and with your clients. But, of course, as any business person knows-- there's ALWAYS going to be an unhappy soul that tries to ruin it for you. --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] -- PHP General Mailing List (http://ww

Re: [PHP] stop a file called foo.bar

2001-08-03 Thread Matt Greer
ile is called foo.bar > and it is saved in the root dir. of you'r web site. Does it need to be in the website's root directory? If you stick it off to the side, no one will be able to access it via http. If you need this file for php stuff, use an include to stick it in there. I know th

[PHP] Re: Does PHP scripts always finish, or are they halted if the web page loading is halted?

2001-08-05 Thread Matt Rogers
me on this. =) --- -- M&D Creations - Matt Rogers - Web Design Dept. - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Host OnLine ?

2001-08-06 Thread Matt Greer
nee jerk reaction, but what about fopen? Try to open the site's main page. If you can the site is online, if not, it's not. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Host OnLine ?

2001-08-06 Thread Matt Kaufman
I tried that but it didn't work - Although I found a different way to do it. http://www.php.net/manual/en/function.fsockopen.php incase you're wondering. Matt Kaufman - Original Message ----- From: "Matt Greer" <[EMAIL PROTECTED]> To: "Matt Kaufman" <

Re: [PHP] last modification time

2001-08-08 Thread Matt Kaufman
What I do is put a timestamp in the database, using the time(); function, select it and format it. Matt Kaufman - Original Message - From: "BRACK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 1:40 PM Subject: [PHP] last modification

RE: [PHP] Book

2001-09-13 Thread Matt Williams
> I just got the book entitled "PHP and MySQL web development" by Luke > Wellington and Luara Thomson. > > I wondering how others liked the book...I haven't gotten a chance to look > at it yet..and I'm wondering if i should :-) Now that you've got it you might as well read it. Then you could tell

RE: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Matt Williams
> When a form is submitted using a standard SUBMIT button it is possible > to catch this via php using if ($submit) but how do you catch this if > you are using an image for submitting instead of the button? > > Any help would be greatly appreciated. > values of image_x and image_y will be set i

Re: [PHP] percentage problems

2001-09-22 Thread Matt Greer
your values are 58.9, 12.6, and 28.5 then you'll lose 2 percent after all is said and done. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread Matt Greer
ata here have data here this is especially true of images I have no idea if that's your problem, but its worth a shot. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

Re: [PHP] Sessions just don't work on my machine. (Trying thisagain)

2001-09-24 Thread Matt Greer
er wouldn't send it via a cookie. I have mine set up a little differently, something like //index.php Go to page two //index2.php --- You can also send the SID in a form via I use the constant SID and the shorthand because that is what is recommended and

RE: [PHP] I'm back

2001-09-25 Thread Matt Williams
> Oh well, who didn't know me can whether ignore this message or just say > hi :-) > > Cheers Everybody! > Maxim Maletsky Welcome back Max M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Matt Greer
On Sunday 30 September 2001 18:23, Armando Cerna wrote: > I have tried system (updatemp) and exec (updatemp) The system() function requires a string as its argument. So you need to write it as system("updatemp"); or system("$files"); Matt -- PHP General Mailing L

Re: [PHP] Rebuild PHP

2001-10-02 Thread Matt Williams
compile with DSO. It makes life so much easier -- Matt Williams [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] log.

2004-07-23 Thread Matt M.
> I am learning php. > I need to log all actions on my page. (like ip, browser, time, pages etc). > question is: how can i identify a user and when he is on my page(s) to log > all his actions. Along with the other stuff posted, take a look at http://phpsniff.sourceforge.net/ -- PHP General Ma

Re: [PHP] strlen question

2004-07-23 Thread Matt M.
> the form is separated into 5 sections and if there are no items filled out > in that section, then i need to hide the title too. > > I have been playing around with the syntax and am not having any > success...any suggestions? > > here is a sample of what i am trying: > > 0) { ?> > >

Re: [PHP] good PHP to PDF libary?

2004-07-23 Thread Matt M.
> PDF Lib is very COOL , its give you ability to encrypt an existing pdf file > its give you a powerful method to import pages from an existing pdf file and > do some thing on it , its have only one problem very expensive price for > full power . > if they only split php version annd change the pr

Re: [PHP] HTML Escaping

2004-07-23 Thread Matt M.
> Needless to say, the href is quite long and includes several "'" > characters. My conditional works great but I want to know if there is an > easy way to escape the whole href so that the "'" characters will not be > seen as PHP quote marks. See below... urlencode will escape the quotes -- PHP

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Good solution, but the problem is once the program is > completed it goes out of my hands and most prolly the > client wont know the exact paths, the templates folder > would *always* be one below...but the path before the > /templates will change. if you dont know what directory it will be in,

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Have you tried > > $_SERVER['DOCUMENT_ROOT'].'/'; > sorry, I meant include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] INSERT INTO using foreach

2004-07-23 Thread Matt M.
> foreach($_POST as $key => $value){ > if($key == 'Submit'){ > exit; > } > else{ > $sql = "INSERT INTO registration ('$key') > VALUES ('$value')"; > $result = mssql_query($sql); > } > } not sure if wrapping columns names in single quotes is valid mssql, try: $sql = "INSERT INTO

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> I've got a field in my database that contains a single numerical character > ("1" or "2" or "3", etc.). I need to load a different background image in > one cell of a table depending upon what the number the field contains. > What's the easy syntax for associating entries in the field ("1" or "2"

Re: [PHP] Array help

2004-07-23 Thread Matt M.
> > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => > > "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif"); > > You got it... > > imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" => "bkgrnd-positive.gif", > "3" => "bkgrnd-negative.gif"); > imgNeeded = table['field']; > imgName = ??? >

Re: [PHP] which user is a script executing as?

2004-07-23 Thread Matt M.
> How do I determine with which user's permissions PHP scripts are executing? > > I am experimenting with suEXEC and running PHPs as CGIs; I need to know > with which user's permissions PHP scripts are executing. > > I've tried using getmyuid() and get_current_user(), but these only report the >

Re: [PHP] Is there a brian I can pick?

2004-07-26 Thread Matt M.
> I need to kill that extra Texas and Virgina.here's how I'm doing this: > > > $query=mysql_query("SELECT DISTINCT state FROM members WHERE > country='US' ORDER BY state ASC"); > while($q=mysql_fetch_array($query)) { > $q1=mysql_fetch_array($query); > $q2=mysql_fetch_array($query); > $q3=mys

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Matt M.
> --snip-- > $char_code = strpos($char_set,(substr($input,$loop,1))); > --snip-- even a little shorter $char_code = strpos($char_set,$input{$loop}); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing PEAR on Windows

2004-07-27 Thread Matt M.
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ > www\pear\Archive\Tar.php on line 21 > > Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM > E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line > 21 > p

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matt M.
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén <[EMAIL PROTECTED]> wrote: > I am correcting myself... > > class foo {} > > $oObjectA = array(); > $oObjectB = array(); > > for($i=0;$i<2;$i++) { > $oObjectA[$i] = new foo(); > $oObjectB[$i] = $oObjectA[$i]; > } > > unset($oObjectA[1]);

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> My web host recompiled php with the freeTDS library for me so that I can use > the php mssql extensions but it still doesn't seem to work. He has told me > that I can change the configuration file...what needs to be done? any error messages? Can you use tsql to connect to the mssql databases?

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
> I was simply using a script which attempts to use the mssql_connect function > yet I still get the error that it is undefined > > http://mwvre.ht-tech.net/dbtest.php if you do a phpinfo() do you see any mssql information? php needs to be compiled with freetds http://us4.php.net/mssql --

Re: [PHP] perl LWP for PHP?

2004-07-27 Thread Matt M.
> I'm familiar with perl's LWP library. Today I searched through the PHP > documentation, but the only thing I found that was somewhat similar to > LWP was file() and some socket-functions to do http-GET/POST calls to a > foreign server. Are any higher level functions available so I don't have > to

Re: [PHP] Sessions Timeout

2004-07-27 Thread Matt M.
> Problem is that when someone goes so far in the ordering process, and then > (for whatever reason) leaves the site, and comes back hours, seconds or > whatever later, and goes again to place an order, the details are different > (time), and the session stays the same so the order entry is entered

Re: [PHP] Array assistance

2004-07-27 Thread Matt M.
> Ten separate arrays with an array at 0 that has the data I'm after. > This is where I'm getting stuck. How can I get to the keys that are > either 'mc' or 'truefalse' and sum them? foreach my man http://us2.php.net/foreach foreach ($_SESSION['arans'] as $arans) { $truefalse += $arans['truefals

<    5   6   7   8   9   10   11   12   13   14   >