RE: [PHP] Server Uptime

2005-02-07 Thread Sam Masiello
There is no function, but you could shell out and grab the output from the "uptime" command and use regex to parse the resultsor use one command line with uptime piped to awk to pull out what you need. HTH! --Sam -Original Message- From: Brad Ciszewski [mailto:[EMAIL PROTECTED]

RE: [PHP] PHP Hosting

2004-07-09 Thread Sam Masiello
I think you mean GEOS :) --Sam -Original Message- From: Alex Hogan [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP Hosting > Don't you require Windows 3.1.11 for proper network support > :) - at least 3.1 was stable. Poke f

RE: [PHP] Function Date

2004-06-14 Thread Sam Masiello
Use the strtoupper function: http://www.php.net/strtoupper HTH! --Sam -Original Message- From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Function Date Hi! I am using date("j M Y"), the format date is 14 Ju

RE: [PHP] Re: WDDX

2004-05-17 Thread Sam Masiello
Hehe must be too early on a Monday for Craig :) --Sam -Original Message- From: Craig [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: WDDX take a look on http://www.phpclasses.org Good luck, Craig "Dave Avent" <[EMAIL PROTECTED]

RE: [PHP] php email functionality

2004-04-02 Thread Sam Masiello
What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email functionality does not

RE: [PHP] date()

2004-03-18 Thread Sam Masiello
Are you sure that you aren't echoing something else somewhere in your script as well? My output from this code is: 18/03/04 --Sam Khalid Judeh wrote: > hello all, > i am new to php, i am trying to call the date function this way: > and the result i get is: object18/03/04 > any help would

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Sam Masiello
This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: >> No. >> >> $correct++; >> >> Is all you need for the second condition, it automatically sets >> itself back. >> > > > Does this always w

RE: [PHP] I have a problem In Mail Function

2004-03-15 Thread Sam Masiello
This doesn't sound like it has anything to do with the mail function. It appears that your newsletter is getting caught by their spam filters. --Sam PHP wrote: > Hi > In a web application I need to send mail for each members whith a > different content . mail message must be in HTML Format and

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Since I am assuming "Type" is a text field, you will want to enclose it in single quotes. Also, because I am anal retentive, I like to also use the addslashes() function on any input coming in on the GET string or via a POST. Also, since all variables are preceded by a $ character, your call to

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Not trying to sound rude or anything, but have you looked up the mysql functions at http://php.net/mysql in your research? I would start with mysql_connect(), mysql_query(), and mysql_fetch_array()/mysql_result(). There are lots of user notes on each page as well which should be of assistance.

RE: [PHP] Problem with cookies on new server

2004-03-09 Thread Sam Masiello
If the install on the new server is a fresh install, you might want to start by comparing the php.ini files being used on both machines to see where they differ. HTH! --Sam Teren wrote: > Hey, I'm having some trouble with one of my scripts that is on a new > server I just launched. The script

RE: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread Sam Masiello
I believe that using "http://"; in the front of the URL is required when using this syntax. --Sam [EMAIL PROTECTED] wrote: > Hi there i am having issues trying to get php to log into a htaccess > protected directory. I used be able to simply have the username and > password in the url like > u

RE: [PHP] odd, sporatic upload problem ...

2004-03-05 Thread Sam Masiello
ints... --Sam -Original Message- From: Kenn Murrah [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 2:58 PM To: Sam Masiello Cc: php Subject: Re: [PHP] odd, sporatic upload problem ... No, it happens immediately upon click

RE: [PHP] odd, sporatic upload problem ...

2004-03-05 Thread Sam Masiello
How long is it before the "Page Not Found" error occurs? Is the browser possibly timing out? --Sam Kenn Murrah wrote: > Greetings. > > I have an odd (to me) problem ... from most computers, the upload > code (shown, in part, below) works just fine but from at least > one > computer, if

RE: [PHP] Link List

2004-03-04 Thread Sam Masiello
Are you sure that file exists? When I try to access it with my browser I get a 404. --Sam Lopez, Kaleb (GEAE, Foreign National, CIAT) wrote: > I'm sorry. I got confused. I'm using file. Here's a part of the code, > more or less. I don't get anything. The table is blank. > > // I'm creating

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Sam Masiello
This is because the file is uploaded as the user running the web server process; apache, in this case. --Sam Mike Mapsnac wrote: > It works now. > > I run the script as user mike and mike:mike is owner of the > directory, when > I upload something to directory the owner of the file is > apach

RE: [PHP] function.date.php

2004-02-25 Thread Sam Masiello
Actually, your use of substr is incorrect. The third parameter is how many characters you want to go from your offset, not the ending character. Also, your last variable shouldn't be year...it should be day (or whatever you want to name it...anything but year or month :) ), otherwise you will ov

RE: [PHP] frameset und php-script in frame

2004-02-25 Thread Sam Masiello
aking your top frame bigger (change the 83 to 200) to see if you can see the text? --Sam joe-at wrote: > Thanks for the hint, but the frames are wide enough. > I also tried it on my test server and on a real web server with the > same result. > > "Sam Masiello"

RE: [PHP] frameset und php-script in frame

2004-02-24 Thread Sam Masiello
I am afraid that I don't get the same problem that you do. If I request frameset.html in my browser I get the text that you are echoing in your PHP statement in the top frame. Is it possible that your resolution is such that you need to scroll in the top frame to see it? Try viewing the source

RE: [PHP] Transfering a file

2004-02-24 Thread Sam Masiello
How about FTP? --Sam Mike Koponick wrote: > Hello everyone, > > I will apologize in advance if this has been discussed previously. > > I would like transfer a file that is created by PHP. Once written, I > need to transfer (or write it) to another server. The destination > server is on anoth

RE: [PHP] apache mysql php windows

2004-02-24 Thread Sam Masiello
I believe you are looking for: http://www.easyphp.org HTH! --Sam Shane Nelson wrote: > Hi Folks > > A few days ago on the list I saw someone mention a package that > includes apache, mysql and php for Windows. The one install file > included all these programs. Anyone remember what it was?

RE: [PHP] date functions

2004-02-24 Thread Sam Masiello
Depending on your database engine (which you didn't mention in your post), some allow you to format the date however you want it as you pull it out of the database in your sql query. I always find this to be the easiest way to do it. That way you don't have to worry about formatting the data aft

RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Sam Masiello
If you want to see the contents of an array, use the print_r function: http://www.php.net/print_r HTH! --Sam Donpro wrote: > $emails = > array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); > $addresses = explode(",",$emails); > for ($i=0; $i < count($addresses); $i++) { >e

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Sam Masiello
Are you getting an error when trying to read/parse your log file? If so, what is that error? --Sam Pablo Gosse wrote: > Hi folks. Has anyone encountered any problems parsing large log > files with PHP? > > I've got a log file that's about 1.2 gig that I need to parse. > > Can PHP handle th

RE: [PHP] saving form data

2004-02-23 Thread Sam Masiello
If the PHP configuration doesn't have "register_globals" turned on in the php.ini file, you will be able to access the form variables via the _POST array like this: $_POST["my_form_var"] Of course, substitute my_form_var with the correct variable from the form that you are submitting. If the se

RE: [PHP] Can anyone tell me why this code doesn't insert anything?

2004-02-23 Thread Sam Masiello
What happens if you echo out $query to the browser window and try to copy and paste the query into a command line mysql session (be sure to connect to the database using the same authentication credentials that you have in the script)? Does it work? --Sam Brian Dunning wrote: > This inserts n

RE: [PHP] Php and GpG

2004-02-23 Thread Sam Masiello
What is the error that you get when you try to use gpgext? --Sam Paul Marinas wrote: > Those anyone know hoh to use php with gpg. I've tryed gpgext, but > doesn't seems to work maybe my php is not compiled with some kind of > support. > > thanks > > > Paul > GnuPG Key http://sgi.rdscv.ro/~

RE: Re[2]: [PHP] Self Submitting Form

2004-02-23 Thread Sam Masiello
Ah ha! I think I found where the problem lies(and also our confusing disconnect). Even though you and I were doing pretty much the same thing, your case worked fine in the instance where the parameter being submitted in the self submitting form was only one word. If you changed your test case t

RE: [PHP] Self Submitting Form

2004-02-20 Thread Sam Masiello
:[EMAIL PROTECTED] Sent: Fri 2/20/2004 6:07 PM To: Sam Masiello Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Self Submitting Form Hi Sam, I am not sure I know what you want to do... I tried to recreate your problem: test.html window.open("test2.html&qu

[PHP] Self Submitting Form

2004-02-20 Thread Sam Masiello
My apologies if this post is somewhat OT. I am having some trouble figuring something out, and I am hoping you can help. I have a PHP web form on which a user can enter a number of different things into both text and textarea fields. At the bottom of the form is a preview button which opens ano

RE: [PHP] compile problem

2004-02-13 Thread Sam Masiello
The --with-curl directive can also take a directory (--with-curl=[DIR}). Try passing in the directory where cURL is installed to. (I am not sure where this is since you didn't mention whether cURL is installed on your system via RPM or if you did it from source). Good luck! --Sam Donpro wrote

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
Thank you for the reply, Adam, but unfortunately it didn't work. --Sam Adam Bregenzer wrote: > On Wed, 2004-02-04 at 14:06, Sam Masiello wrote: >> $rule = ereg_replace("[[:alpha:]+*/.|<>()$]", "0", $rule) ; >> >> But if the u

[PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
I am kind of stuck on a problem that I am hoping you can help with. I am working on an application where the user can input a regular expression into a text box on a web form. This regular expression will be put into a postgres database, then later into an XML file. My dilemma is that if a user

RE: [PHP] Newbie question

2004-01-13 Thread Sam Masiello
It appears as if you don't have MySQL support compiled in with your PHP build. If you installed it from source you will want to recompile PHP with the --with-mysql option. I have never installed PHP from RPM though so if you installed it that way, perhaps someone else in the group can provide so

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Sam Masiello
Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren wrote: > Error: > Parse error: parse error, expecting `']'' in > /usr/local/apache/htdocs/UP/index.php on line 871 > > Line 871: > mysql_query("INSERT INTO domainregistrations > (domain,typ

[PHP] PEAR::SOAP using PHP...please help!

2003-12-19 Thread Sam Masiello
I have posted this question to both the PHP SOAP and the PEAR General lists and have not received a reply on either list (not a very responsive group, I guess :) ) so I thought I would try to reach a larger audience in hopes that perhaps one of you out there might be able to help. Any assistance

RE: [PHP] MySQL newsgroup

2003-12-18 Thread Sam Masiello
The URL below lists all of the MySQL mailing lists. Just choose the one that is most specific to your issue: http://lists.mysql.com/ HTH! --Sam JLake wrote: > Can anyone point my to a MySQL specific SQL newsgroup. having some > problem corectly extracting data. > > Thanks, > > J -- PHP G

RE: [PHP] Help with php output to file

2003-12-18 Thread Sam Masiello
Anytime I need to do something similar to this I prefer to use "lynx -source [[URL]] > [[output_file]]" HTH! --Sam Paul Godard wrote: > Hi > > I have develop an online catalog in php/mysql. Now the client needs > the web site on a cd. Of course without php or mysql... > > What is the fast

RE: [PHP] What is a XSS attacks?

2003-12-12 Thread Sam Masiello
That is correct. http://www.derkeiler.com/Mailing-Lists/securityfocus/bugtraq/2003-11/006 5.html --Sam Richard Davey wrote: > Hello orlandopozo, > > Saturday, December 13, 2003, 12:04:02 AM, you wrote: > > oicv> What is a XSS attacks? > > Cross Site Scripting Attack I think. > Like when peo

RE: [PHP] display settings

2003-12-09 Thread Sam Masiello
Since PHP is a server side language, you cannot get information like the users display settings. If you want this information, you will need to use a client side language like Javascript or VBScript. --Sam Hartley, Matt wrote: > I am sort of new at this, I am wondering if it is possible to f

RE: [PHP] can mail() function send emails to any email account?

2003-12-03 Thread Sam Masiello
Did you get a bounce? Perhaps to the root account on your local machine? Some domains do reverse DNS lookup and if sendmail is not configured properly the receiving domain might kick the email back if it doesn't recognize where the email claims to be coming from. --Sam -Original Message--

RE: [PHP] Dealing with large classes over several files

2003-12-02 Thread Sam Masiello
This URL might be of some assistance to you: http://www.php.net/manual/en/ref.classobj.php It is a page on how to write classes and its associated member functions in PHP. There are a couple of other pages in the documentation which may be of assistance to you as well. HTH! --Sam -Orig

RE: [PHP] Argh! nulls un stuff..

2002-10-14 Thread Sam Masiello
t;] > 0 && $_SESSION["temp"] != "" && is_numeric($_SESSION["temp"]) HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Francis [mailto:[EMAIL PROTECTED]] Sent: M

RE: [PHP] is php.net down ?

2002-07-22 Thread Sam Masiello
You could try one of the mirrors. For example, http://php.ca is up and running. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:56 AM

RE: [PHP] Re: how to popup a new browser window from php

2002-04-19 Thread Sam Masiello
Your message was clear, and as stated by several people already, you can't do it in PHP. PHP is a server side scripting language, Javascript and VBScript are client side languages. Popping up a dialog box is a client side function, thusly cannot be done in PHP. :) HTH --Sam -Original M

Re: [PHP] PHP and passwords

2002-02-28 Thread Sam Masiello
sword were to change, you only have to change one script instead of changing many. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "webmaster" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: [PHP] Unusual Form situation?

2002-02-27 Thread Sam Masiello
($myimage_x) || isset($myimage_y)) { // do something } If the image was clicked, this will submit your form, and both $myimage_x and $myimage_y will be set. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From

Re: [PHP] force refresh?

2002-02-07 Thread Sam Masiello
You can force the browser to refresh using a meta tag: This will cause the page to refresh every 180 seconds. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "Chris Wright" <[EMAIL P

Re: [PHP] Help with Logical 'OR'

2002-01-28 Thread Sam Masiello
is always necessary to evaluate both conditions as both conditions need to be true in order for the entire statement to be true. If any condition in a set of AND conditions is false, the value of the entire expression is also false. HTH Sam Masiello Software Quality Assurance Engine

Re: [PHP] OOP Problem

2002-01-22 Thread Sam Masiello
ation. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "Charles" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 10:25 AM Subject: [PHP] OOP Problem > Hi,

Re: [PHP] MySQL and PHP

2002-01-17 Thread Sam Masiello
What is the error that you are getting? --Sam - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 5:25 PM Subject: [PHP] MySQL and PHP > Hello, > > I am trying to use mysql through php. When I tr

[PHP] Re:[PHP] Mysql

2002-01-14 Thread Sam Masiello
Even though this is OT as it is not a PHP question it is an easy one :) Please see the following URL: http://www.mysql.com/documentation/mysql/bychapter/ It is the MySQL manual broken out by chapter. You will find the next URL particularly useful as it is the syntax for the "create

Re: [PHP] does this work?

2002-01-10 Thread Sam Masiello
I think it will really help if you post more of your code. It is obvious that the parse error is not contained within the lines of code that you pasted :) I think more of your code will reveal the answer rather quickly :) HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853

[PHP] ora_numrows() function

2002-01-02 Thread Sam Masiello
. Could someone please give me a quick clarification? Thanks :) --Sam Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] PHP & FRAMES Question

2001-11-15 Thread Sam Masiello
In your printf statement, you are targetting "sub_detl" whereas in your frameset you name the frame "sub_dtl". Naturally, these values should match. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Messag

Re: [PHP] PHP on fu!$#@ing PWS

2001-10-22 Thread Sam Masiello
receiving. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "German Benzano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 11:19 AM Subject: [PHP] PHP on fu!$#@in

Re: [PHP] Spam messages (Was: FREE S E X O

2001-10-18 Thread Sam Masiello
...but then what do you do about the people who have legitimate questions who don't want to subscribe to the list? This is a fairly high traffic list and not everyone wants that much mail coming at them just to have the occasional one-off question answered. Sam Masiello Software Qu

Re: [PHP] can you pls tell me where is php ./configure file in linux 7.1

2001-09-25 Thread Sam Masiello
like as part of the PHP install. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "Caleb Carvalho" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 1:33 PM

RE: [PHP] test for empty $result??

2001-09-10 Thread Sam Masiello
Then you can use: if (mysql_num_rows($result) == 0) { stuff here } This will check the number of rows returned from your query. If zero, then do somethingmodify as you need. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED

RE: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello
You could do: "which mysqldump" (without the quotes, of course :) ). This is provided that mysqldump is in your path (if you can enter just "mysqldump" from the command line, then it is). HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X

RE: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello
Have you tried putting in the fully qualified pathname to the mysqldump executable? /usr/somepath/mysqldump HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] -Original Message- From: Tony Frasketi [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Sam Masiello
I would say that you have a permission problem with where PHP is trying to write the file to. Try outputting the file to /tmp/db.dump and see if you have the same problem. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] -Original

RE: [PHP] fix my query please

2001-08-28 Thread Sam Masiello
It has outer joins: http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#JOI N HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Tuesday

RE: [PHP] Re: order of update??

2001-08-23 Thread Sam Masiello
Why "can't you update" ? What error message are you getting? Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 3:28

RE: [PHP] order of update??

2001-08-23 Thread Sam Masiello
The order doesn't matter, but perhaps you might want to put single quotes around your $a at the end of your SQL statement. You didn't mention the error that you were getting, but this might help nonetheless :) update tablename set x='$x', y='$y', z='$

RE: [PHP] Sort a an array?

2001-08-16 Thread Sam Masiello
Instead of trying to sort the result AFTER it returns from the query, you could use an ORDER BY clause in your query to sort the results prior to trying to output it? You could change your query to something like: "SELECT * FROM tablename ORDER BY fieldname" HTH Sam Masiello Softwa

RE: [PHP] get value

2001-08-06 Thread Sam Masiello
ycount should now be the value held from your count in the SQL statement. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 4:07 P

RE: [PHP] mysql_numrows

2001-08-06 Thread Sam Masiello
I believe the function you want is mysql_num_rows, not mysql_numrows HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 9:35 AM To

RE: [PHP] New lists (was [PHP] Attitude of B van Ouwerkerk)

2001-08-04 Thread Sam Masiello
al Forum, so I am not convinced that creating more specialized mailing lists would accomplish much more than creating MORE mail traffic (from the spammed questions) and alienating people who used the more specialized lists because most everyone else is still mainly reading the "General Forum.&quo

RE: [PHP] Installing PHP probs

2001-08-01 Thread Sam Masiello
Exactly what error are you getting? The install is pretty straight forward. Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 9:26 PM To

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

2001-08-01 Thread Sam Masiello
E id='$id'"; Without the quotes, SQL doesn't know that Something Amazing is supposed to go together in the same string. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Chris Worth [mailto:[E

RE: [PHP] HELP!! What wrong with this code...

2001-07-31 Thread Sam Masiello
You need to put backslashes before your quotes in your echo statement. Like this: echo "Your feedback has been sent to mailto:$address\";>$name"; HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message-

RE: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread Sam Masiello
Didn't we go through this the other day? :) :) There are lots of sites available with LOTS of scripts you can look at that do very practical things. Scripts that I am sure some of us have even used on occasion (I know *I* have!). Besideshow is someone sending you one of their scripts "hand

Re: [PHP] Hack on Server.

2001-07-19 Thread Sam Masiello
I think the following link might shed some more light on the situation: http://news.cnet.com/news/0-1003-200-6604515.html HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] On Fri, 20 Jul 2001 10:12:25 +1000 Brian White <[EM

RE: [PHP] php- something that i don't understand

2001-07-17 Thread Sam Masiello
Pardon my ignorance if you can really do it this way (because I have never seen it done like this): In line 4, I wasn't aware that you could call mysql_connect() without any parameters. Can you? HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROT

RE: [PHP] PHP irc chatrooms

2001-07-12 Thread Sam Masiello
Try #php :) Lots of people hanging out in there all the time. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Bernie Kruger [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 8:46 AM To

RE: [PHP] Easy question...grabbing variables...

2001-07-11 Thread Sam Masiello
hin your send_email.php script, you can access $from which will have the value 25 upon entry to your script. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11,

RE: [PHP] Accesing Oracle

2001-05-21 Thread Sam Masiello
Sounds like you need to recompile PHP with Oracle support. Recompile PHP with the -with-oracle flag when running the configure script to include the Oracle functions. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Kike

RE: [PHP] Blank Field Values

2001-05-18 Thread Sam Masiello
Did you echo out $CharacterName before your SQL statement to ensure that it is being set? Or your $SQL variable before calling odbc_do? This might provide you with some insight as to why the query doesn't return anything. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [

RE: [PHP] Parse error help!

2001-05-18 Thread Sam Masiello
Perhaps you want something like this: $Msg = $H.$NL.$R.$NL.$D; HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Taline Makssabo [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 11:18 AM To: [EMAIL PROTECTED

RE: [PHP] How do I have a Authentication box pop up?

2001-05-17 Thread Sam Masiello
See the following URL in the manual: http://www.php.net/manual/en/features.http-auth.php HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 1:48 PM To

RE: [PHP] MySQL and LIKE?

2001-04-25 Thread Sam Masiello
Why not do something like: SELECT myTable.col FROM myTable, otherTable WHERE myTable.id = otherTable.ID AND (otherTable.data LIKE "a.%" OR otherTable.data LIKE "s.%" OR otherTable.data = "io.bean") HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EM

RE: [PHP] multiple connects

2001-04-19 Thread Sam Masiello
Well, you won't have two persistent connections to the same database (for the same username/password). So, as long as you use the link identifier as the third argument to the mysql_query function (or mysql...whichever you are using), that is guarantee enough. HTH Sam Masiello Systems An

RE: [PHP] Close Window script

2001-04-06 Thread Sam Masiello
You need to do this using Javascript since it is a client side function. window.close() is the function you are looking for. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Friday

RE: [PHP] scramble the code

2001-04-05 Thread Sam Masiello
Perhaps we could all better assist you if you posted the code for your form ("X"-ing out any sensitive material that you wouldn't want us to see)...or maybe the URL that the form is at so we can see it for ourselves? HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1

RE: [PHP] Delete Problem

2001-03-30 Thread Sam Masiello
27;)" ; if you want to use a comma separated list, you can use the find_in_set function: $query="DELETE FROM EmailAddress WHERE !find_in_set(Email, 'value1,value2,value3, ,value_n') " ; HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED]

RE: [PHP] Oracle, Win2000, Apache, OCI

2001-03-21 Thread Sam Masiello
After reading my last post, I realized that I am a dope :) You DO need to compile in Oracle support, but you don't do it with -with-oracle. That is in Linux :) Sorry about that! Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message-

RE: [PHP] Oracle, Win2000, Apache, OCI

2001-03-21 Thread Sam Masiello
It sounds like PHP was not compiled with the -with-oracle directive when the configure script was run. This will compile in support for the PHP Oracle functions. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Brooks, Ken

Re: [PHP] $PATH_INFO

2001-02-27 Thread Sam Masiello
;somevalue" is supposed to be the name of a page? I am sure someone will chime in if this is wrong, but I would doubt that it isof course, I guess the best way to find out is to try it :) -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.27 11:1

Re: [PHP] Using a variable in a variable

2001-02-13 Thread Sam Masiello
Why not just use an array? $testtext[1] = "value1" ; $testtext[2] = "value2" ; etc.. -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.13 16:06:54 -0500 Brandon Orther wrote: > Hello, > > Is there a way to use a variabl

Re: [PHP] Getting ASPELL to work?

2001-02-07 Thread Sam Masiello
When you compile PHP, you also need to include the --with-aspell flag (similar to how you did to include MySQL support). HTH -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.07 14:19:38 -0500 Nicholas Pappas wrote: > Is there a secret to get

RE: [PHP] Listbox Data Entry

2001-02-02 Thread Sam Masiello
You need to be sure that you are defining the select list similar to this: The size field can be whatever you want to show, but you need to use the brackets in the NAME attribute to indicate an array, then treat the data submitted as an array after the form is posted. HTH Sam Masiello

RE: [PHP] How do I to declare a function or procedure in PHP???

2001-01-25 Thread Sam Masiello
Hello Bruno! See the following URL in the PHP manual: http://www.php.net/distributions/bigmanual.html#functions HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Bruno Freire [mailto:[EMAIL PROTECTED]] Sent: Thursday

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
two different people running queries), you should not have a conflict. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:49 PM To: 'Sam Masiello'; P

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
You probably stated this in your previous post, but what is the result from your call to mysql() ? Is this call failing so that when you get to mysql_insert_id(), the id doesn’t exist? HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
sql_connect like: $result = mysql("mydb", "My SQL statement", $my_connect) ; $last_id = mysql_insert_id($my_connect) HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] S

RE: [PHP] ID value

2001-01-23 Thread Sam Masiello
If you are using mysql as your database, you can use mysql_insert_id. See http://www.php.net/manual/en/function.mysql-insert-id.php for more info :) HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Robert Morrissey [mailto

RE: [PHP] Selecting max(id) of a table

2001-01-22 Thread Sam Masiello
Try this: $result=mysql_query('select max(id) as max_id from mytable'); $max=mysql_result($result, 0, 'max_id'); print ('Max id in the table=$max'); HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- F

RE: [PHP] mcal installation

2001-01-19 Thread Sam Masiello
ps in the manual", but then learn to find out that they either did something wrong or skipped a step along the way. Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19,

RE: [PHP] mcal installation

2001-01-19 Thread Sam Masiello
Since you didn't mention it specifically, I thought I should ask: Did you also download the mcal library or did you only include -with-mcal when you compiled PHP? Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: johnny p. [m

  1   2   >