Re: [PHP] Freetds + Sybase-ct + mssql problems

2002-08-20 Thread Adam Voigt
Hmm, weird, mine worked perfectly the first time through when I installed it, no havingto mess with permissions or anything. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-20 at 12:18, Benji Spencer wrote: Your path to the interface file must be wrong, in my php.ini I have it set to /usr

Re: [PHP] suggestions for a good php+mysql isp?

2002-08-20 Thread Adam Voigt
I've heard good things about hostway.com. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-20 at 12:27, db or not db wrote: They (futurequest) really are impressive, but 39.95/month is a little pricey for me...if they offered MySQL with the basic plans (with 1-2 db's instead of 6) I'd go

Re: [PHP] phpMyAdmin is this possible

2002-08-20 Thread Adam Williams
I always create a database by hand. On the console type: mysql -u root -p (It will prompt you for the mysql superuser's password. Then run: CREATE DATABASE db_name_here; Then you would use the grant statement accordly to give users permissions to it. Adam On Tue

[PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
. Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
Thanks! Silly me, I'm always forgetting about the mirror sites ;) Adam On Wed, 21 Aug 2002, DL Neil wrote: Is it just me having network connectivity problems, or is the PHP website, http://www.php.net down? I tried connecting to it from a couple of difference

Re: [PHP] Passing variables between servers

2002-08-21 Thread Adam Williams
Just suggestion but why not use md5($password) and then send the result of that in your GET? Adam On Wed, 21 Aug 2002, Mark McCulligh wrote: I have two server. One running PHP/Linux the other running ASP/2000. The user logins into the PHP server and session variables

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Adam Williams
$PSQL_START change the next line to: su -l postgres -s /bin/sh -c /usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o -i start /dev/null 21 /dev/null Adam On Wed, 21 Aug 2002, Ray Hunter wrote: Basically, That is your problem here: [Wed Aug 21 11:06:56 2002

Re: [PHP] mysql upate return false?

2002-08-22 Thread Adam Williams
mysql_query($sql_statement) or die (Couldn't run UPDATE statement); Adam On Thu, 22 Aug 2002, Randy Johnson wrote: I have a function update_trans(); in a mysql_query() that processes an update, what could i check for to see if it was successful

Re: [PHP] New to PHP/mySQL - Help on script

2002-08-26 Thread Adam Williams
] villas booked; } and do the same again but change the statement to villa_id = 0 Adam On Mon, 26 Aug 2002, Ray Healy (Data Net Services) wrote: Thanks for everyones help yesterday but nI have come up against a problem (as I am new). I have created my document as detailed

Re: [PHP] How do I call a CGI script from PHP?

2002-08-26 Thread Adam Williams
exec() and system() Adam On Mon, 26 Aug 2002, Matthew wrote: I'm new to PHP and want to build a basic page. The one thing I cannot find any documentation on is the seemingly simplistic question of how to run a Perl script. I just want to execute a site-tracking

Re: [PHP] PHP - Chat?

2002-08-27 Thread Adam Williams
look around for phpmychat Maybe its on freshmeat.net? Adam On Tue, 27 Aug 2002, Andy wrote: HI there, I am wondering if a Chat coded in PHP would be sufficiant for a medium sized site. Maybe someone has a working example online. It would be no problem to get

Re: [PHP] PHP - Chat?

2002-08-27 Thread Adam Voigt
PHPOpenChat: http://phpopenchat.sourceforge.net/ Very good. Adam Voigt [EMAIL PROTECTED] On Tue, 27 Aug 2002, Andy wrote: HI there, I am wondering if a Chat coded in PHP would be sufficiant for a medium sized site. Maybe someone has a working example online. It would be no problem

Re: [PHP] flaking out on foreach

2002-08-27 Thread Adam Voigt
Don't put a semicolon after the foreach. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-27 at 11:07, ROBERT MCPEAK wrote: Why is this code: ?php $bob=array(1,2,3,5,6); foreach($bob as $foo

Re: [PHP] Re: Command Line

2002-08-27 Thread Adam Williams
of each table. If you need the table names do SHOW TABLES; and if you need their structure use DESCRIBE table_name; Adam On Wed, 28 Aug 2002, Trevor Tregoweth wrote: Hi I am very new to mysql, so any help please how to drop tables from a database from the command

[PHP] Simple regexp

2002-08-28 Thread Adam Alkins
help me with this? IPv6 addresses are just Hex with : characters, so I just need to validate that for the entire string. Thanks for your time. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] file creation question

2002-08-29 Thread Adam Williams
Search the archives, this was explained 2-3 days ago how to dynamically generate a while without creating one on the server. Adam On Thu, 29 Aug 2002, John Hegele wrote: I'm currently building a site for a band and one of the features I'd like to offer is vCalendar

[PHP] Simple regexp

2002-08-29 Thread Adam Alkins
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg([a-zA-Z0-9:],$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] fun with register_globals

2002-09-04 Thread Adam Williams
use $_GET[id] in the place of $id for each instance. Like if you had $new = $id + 1 change it to $new = $_GET[id] + 1 and such... Adam On Wed, 4 Sep 2002, Kelly Meeks wrote: Hi folks, I might be late to the game with these questions, but I've just been bit

Re: [PHP] php mysql error

2002-09-04 Thread Adam Williams
whats the permissions on /tmp? it should be set to 1777 Adam On Wed, 4 Sep 2002, ROBERT MCPEAK wrote: Our box recently went down and after reconfiguring it we're left with a semi-operation mySQL. One error I'm getting is this: mysql select region from clip_art

Re: [PHP] simple problem

2002-09-04 Thread Adam Williams
if ($i%3 = 0) { echo something; } On Wed, 4 Sep 2002, Cirkit Braker wrote: what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this happens every time it runs

Re: [PHP] PHP MySQL Apache on Linux vs. Solaris

2002-09-05 Thread Adam Williams
Go to www.mysql.com and make sure you are using the latest version of MySQL. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: Hi Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine I'm having weird problems with MySQL crashing while running reports

RE: [PHP] PHP MySQL Apache on Linux vs. Solaris

2002-09-05 Thread Adam Williams
I haven't had any problems with mysql like you are having. I would recommand you recompile the source rpm to the binary rpms and then install them. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: I'm using 3.23.52-log -Original Message- From: Adam Williams

RE: [PHP] unix timestamp

2002-09-06 Thread Adam Voigt
$date = date(U,strtotime(-7 day)); Have a nice day. Adam Voigt [EMAIL PROTECTED] On Fri, 2002-09-06 at 12:37, Mike richardson wrote: The attached class is a date utility that I created a long time ago. It parses out SQL dates, does differences, and specific to your needs, you can use

Re: [PHP] php4 w/ apache2 using module

2002-09-06 Thread Adam Williams
what commands are you giving it to compile and what errors you getting? Adam On Fri, 6 Sep 2002, yoda2005 wrote: Is there any way to do it? I cant seem to get it to install as a module nomatter what I do. Right now I have it running as a cgi parser but some stuff I

Re: [PHP] How to print a mysql result

2002-09-07 Thread Adam Williams
echo $sql; Adam On Sat, 7 Sep 2002, Chuck PUP Payne wrote: Hi, I am having a problem with menu options being pass on to my database. Is there a way that I can see what is sql statement that is passing on to the database? Say maybe print $sql or something like

Re: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Adam Williams
search google for using PHP sessions and you will print the session ID into the URL. Adam On Tue, 10 Sep 2002, YC Nyon wrote: I been searching for a user authentication codes all night but got no where with the results. Therefore, if someone can tell me where to find

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Umm, maybe I'm confused, but here's an answer, not sure if it's right: The code in the braces will never be executed because $a will always be ateast $b if not greater (assuming $c has a value) which means that it couldn't be greater, however it could be = if $c was 0. Adam Voigt [EMAIL

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Oh, ok, I was wondering cause I thought the question was fairly basic, as for where in the actual source code to PHP expressions are processed I have no idea. I bet they know in the php-dev mailing list though, you might want to try there. Adam Voigt [EMAIL PROTECTED] On Mon, 2002-09-09 at 12

Re: [PHP] Server date and time

2002-09-10 Thread Adam Williams
If you are using mysql, you can use the NOW() function to insert the time into a date field. It will insert the time that is on the server's clock. Adam On Tue, 10 Sep 2002, Christian Ista wrote: Hello, When a use insert the row in a table, I'd like to know the date

Re: [PHP] basic voting

2002-09-11 Thread Adam Williams
Most sites log by IP but if its the IP of a firewall, it would only be one vote from everyone behind the firewall. Adam On Thu, 12 Sep 2002, Justin French wrote: Hi, I'm looking to implement very basic like it | hate it voting for a product on a site, but I'd like

Re: [PHP] question

2002-09-11 Thread Adam Williams
I just wanted to chime in here and say that Julie Meloni's books are awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours book. I plan to buy her PHP Fast and Easy 2nd edition very soon. Adam On Wed, 11 Sep 2002, Miles Thompson wrote: Julie Meloni

Re: [PHP] PHP and Special Characters

2002-09-11 Thread Adam Williams
use stripslashes() or turn on magic quotes in php.ini On Wed, 11 Sep 2002, Rick King wrote: Apache: 1.3.23 PHP: 4.1.2 Hello PHP Guru's! I have created a simple web form. When the form is complete and submitted, the results are emailed to an email account. But I have noticed that the '

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
Have a php page that runs exec() or system() and does a whois query on the domain you want and then have it output the text to a page. Very simple to do, less then 2 minutes of coding. Adam On Thu, 12 Sep 2002, yasin inat wrote: please anyone can help me about

Re: [PHP] Re: Cry for help

2002-09-12 Thread Adam Williams
it run cut -d | -f 4 yourfile.txt and then return you the output. Adam On Thu, 12 Sep 2002, Chad Winger wrote: Thanks for the reply :P I found it actually. Now I have the apache and php running, and am able to run my aforementioned test script locally. I am still

Re: [PHP] A question about .php file extension

2002-09-12 Thread Adam Williams
make a directory called phptest and put a file, index.php in it...never tried it tho. On Thu, 12 Sep 2002, LI DONG wrote: Hello everyone, It is a question about .php file extension. Is there any way to access PHP4 script in Apache 1.3.x without .php extension? For example, how to use

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try with p /p and see if that works. Adam On Thu, 12 Sep 2002, Tom Ray wrote: Yes, but how do you format the information that comes back out of the whois? I'm doing this: ? $whois = system(whois [EMAIL PROTECTED]); print pre$whois/pre; ? But all the information

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try using nl2br() on it before you print it. Adam On Thu, 12 Sep 2002, Tom Ray wrote: Nope still comes up with everything in one big line. I'm running through different options right now..but I'm tired and my brain is starting to hurt :) Adam Williams wrote: try

Re: [PHP] PERMISSIONS

2002-09-12 Thread Adam Williams
you don't. php/apache run as the user nobody for security purposes. Adam On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: HI, I am trying to use a script php with the command: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-09-18 at 13

Re: [PHP] editor php

2002-09-19 Thread Adam Williams
/bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: Hi, does any body knows a cool editor for php that run under redhat 7.x and where i can find? tanks -- Gian Michele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Adam Voigt
. I've never seen PHP round a number because it thought it was a string. =) Actually, if it's a string, it's more likely to interepret it as a don't touch me variable. (That makes sense to me anyway). Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-19 at 14:19, William wrote: I am interested

Re: [PHP] Best practice question

2002-09-19 Thread Adam Voigt
One extra variable to be declared to catch the true (if you do try and catch it) and one extra line (the return line in the function), I'd say skip it if you know your never returning anything different. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-19 at 13:17, Jon Haworth wrote: Hi list

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
Yeah, apache 2.0 and php don't like each other. Adam On Fri, 20 Sep 2002, pierre.samson wrote: I'm building a new server and would like to use: php4 apache 2.xxx mod_ssl MySQL mod_perl Is there any major hurdle? Thanks Pierre B. Samson CAMBAR -- PHP

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
The PHP coders are still working to have full compatability with apache 2.0. I know for example posting one variable in a form messes up, but posting 2 or more variables works fine. There is a entry n the bug database about this, so hopefully it will be fixed soon. Adam

Re: [PHP] apache problem......

2002-09-24 Thread Adam Williams
If you areusing IE you have to pu tin the http:// infront of it, its one of those quirky IE only things. Don't have to do that in Mozilla/Netscape. Adam On Tue, 24 Sep 2002, Anil Garg wrote: hi in my httpd.conf i have added a virtual host as: VirtualHost

Re: [PHP] Getting started with PHP

2002-09-26 Thread Adam Williams
read the install section of the PHP manual at www.php.net and then read the tutorial. Adam On Wed, 25 Sep 2002, Sauron wrote: Hi all I am brand new to PHP, I have a friend that develops in it and I'm interested in learning more about it. I am familiar with VB

RE: [PHP] Encrypted MySQL passwords

2002-09-26 Thread Adam Voigt
Maybe you could somehow setup your SSH tunnel before-hand (at server start up or something) and use that instead. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-26 at 12:40, John Holmes wrote: I am connecting to a mysql server on a remote machine, and opened up port 3306 for this purpose

[PHP] php script ownership

2001-09-25 Thread Adam Plocher
Is there anyway I could make a PHP script run as the user that owns the script?

RE: [PHP] Variable naming

2001-09-25 Thread Adam Plocher
$id = 1; ${sql_ . $id} = hey; print $sql_1; Try that -Original Message- From: Kyle Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Variable naming I want to use the value of a variable in a variable name. For instance:

RE: [PHP] How to obtain all the fields' names of a MySQL table?

2001-09-25 Thread Adam Plocher
How about this... $db = name_of_database; $query = DESCRIBE table_name; $query = mysql_db_query($db,$query); while ($row = mysql_fetch_row($query)) { echo $row[0]br\n; } -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 12:03 PM To:

[PHP] Stopping the browser from continuing to load

2001-10-18 Thread Adam . Whitehead
ideas? PS/ Not really keen on running a cron job to do the same thing when it would be easier just to stop the browser from loading. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Root Certificate

2001-10-22 Thread Adam . Whitehead
for this, and I'd like a better solution. I'd prefer not to go the route of having a link to the certificate, asking them to save it, right click it. install it etc. Cheers. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Informix Redback

2001-10-26 Thread Adam Plocher
Our company is looking into purchasing an application package that requires the use of the Informix (IBM) Redback application. We have been told that Redback objects can be used in php scripts but I was wondering if any of you have had experiece with it and if you have had any problems or

[PHP] Secure transfer between servers

2001-11-04 Thread Adam . Whitehead
could see their login and password. I'm looking for ideas on how to securely transfer users between these two separate websites? It is unfortunately not an option to have them login twice. Regards, Adam Whitehead Systems Developer - Computer Support and Maintenance Ph. (08) 8936 3164 E-mail: [EMAIL

[PHP] Regular Expression

2001-11-12 Thread Adam . Whitehead
that hyphens (-) be allowed in $fn and $sn as well. What do I need to add to the regular expression to allow hyphens? I know this is a relatively silly question. I plan on buying a book on regular expressions today and learning as much as I need to know about building them. Cheers. Regards, Adam

[PHP] LDAP sorting

2001-11-27 Thread Adam . Whitehead
function for sorting the array returned by ldap_get_entries() by any desired attribute, that would be a great help also. Cheers. Regards, Adam Whitehead Systems Developer - Computer Support and Maintenance Ph. (08) 8936 3164 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED] -- PHP General

[PHP] xslt extension and encodings

2001-08-17 Thread Adam Rambousek
have sablotron 0.60; iconv is installed could anyone help me please? -- Adam Rambousek email: [EMAIL PROTECTED] ICQ: 47596279 Jabber: [EMAIL PROTECTED] * Linux is like teepee - no windows, no gates, Apache inside... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] looong date formatting for MySQL

2001-08-17 Thread Adam Rambousek
date(Y-m-d) should do the job There's gotta be an easier way to get create a date properly formatted for MySQL's standard -MM-DD DATE field format. Any suggestions, smacks-upside-the-head, etc. on how to reduce this would be greatly appreciated. -- Adam Rambousek email: [EMAIL

Re[2]: [PHP] looong date formatting for MySQL

2001-08-17 Thread Adam Rambousek
look into the docs, there's possibility to display zeros (but I don't remeber exact letter) Thanks for the reply, however, that function call doesn't zero-substitute (i.e., 07 for 7, 03 for 3, etc.); that's why I've added this: -- Adam Rambousek email: [EMAIL PROTECTED] ICQ: 47596279

Re[2]: [PHP] Adding records to a MySql database

2001-08-17 Thread Adam Rambousek
mysql_query() is universal for any SQL query so mysql_query(INSERT INTO table () values ()) is what you're looking for I was looking for the command something like mysql_insert or something, just found dba_insert() is this it ?!? -- Adam Rambousek email: [EMAIL PROTECTED] ICQ: 47596279

[PHP] Link Checker

2001-08-28 Thread Adam Plocher
Is there any function that will allow me to check to see if a link is valid?

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Adam Plocher
From what I heard, the acronym originally stood for Personal Home Page, but it kind of changed (unofficially?) to Hypertext Preprocessor. I could be wrong -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 3:08 PM To: John Meyer; [EMAIL

[PHP] Image manipulation

2001-08-31 Thread Adam Plocher
types (gif, bmp, png, etc) into a jpeg? Any help will be very appreciated, thanks. -Adam Plocher

[PHP] using system() as a different user

2001-09-20 Thread Adam Plocher
I'm trying to use the system() function to execute a shell command, but the shell command that needs to be executed, needs to be executed as a different user (not the default 'nobody' user). Can somebody show me what I need to do, to accomplish this. Thanks -Adam

[PHP] Running virtualhosts under different users

2001-09-21 Thread Adam Plocher
that user. Does anybody know how I can do this? I installed the suexec module for apache, and either it doesn't work the way I need it to, or I just misconfigured it. I'm baffled, any information would be greatly appreciated. Thanks -Adam

[PHP] Manipulating Images into JPG

2001-05-09 Thread Adam Plocher
I want to build a personal page that will have functionality to change many types of image formats into a jpg. Ie, convert gif to jpg, png to jpg, even bmp to jpg. Assuming this is possible, does anybody have any sample code I can take a look at? Thanks much. Adam Plocher If ignorance

Re: [PHP] Recursively create directories

2001-05-15 Thread Adam Wright
This should do what you want... $dir = dir1/dir2/dir3/dir4; $dir_array = explode(/,$dir); $full_path = ; foreach($dir_array as $current_dir) { $full_path .= /$current_dir; if (!is_dir($DOCUMENT_ROOT . $full_path)) { mkdir($DOCUMENT_ROOT./ .$full_path,0700); } } adamw -

Re: [PHP] SQL statement for clearing a table

2001-06-22 Thread Adam Wright
DELETE FROM table_name; adamw - Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 1:17 PM Subject: [PHP] SQL statement for clearing a table Hi all, anybody knows the mysql statement for clearing the contents of a table and

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Adam Huffman
. Adam -- 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]

[PHP] Stopping stolen / spoofed / linked sessions

2001-06-27 Thread adam (dahamsta)
check the HTTP_REFERER to see if the user came from my own site, but that can be spoofed. I can log and check the users IP address, but that can't be relied upon. Is there any reliable way around this? Am I missing something obvious? Cheers, adam -- PHP General Mailing List (http://www.php.net

RE: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-29 Thread adam (dahamsta)
with HTTP. Maybe a better question is: What is the ideal model for a PHP4 sessions authentication scheme? Thanks anyway, adam -- 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

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
it's not someone spoofing. Granted, it's not foolproof, but it'd be pretty hard to spoof, right? Anyway, I'd be interested in your opinion, and I'd also be interested in whether you're coming to Dublin for ApacheCon Europe? I hope to meet you there if you are. adam -- PHP General Mailing List

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
Hat, sorry :). Anyway, thanks Richard, adam -- 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] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
wrong here, I'm genuinely interested in your opinion. If you think I'm wrong, tell me, I'd prefer to know. And if you have a better solution for the problem I'm facing, I'd love to hear about it. I just have a blank wall in front of me and I can't find my sledge. :) adam -- PHP General Mailing

[PHP] [JOB OFFER] Mandarin Chinese speaking PHP Programmer needed

2001-07-03 Thread Adam Powell
, or would be willing to relocate to the Los Angeles area (we are located in Glendale). Thanks a lot, Adam Powell -- 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

[PHP] explode()

2001-07-16 Thread Adam Plocher
$reqmonth = ${explode(-,$row[5])}[1]; Is there anyway I can get that to work without having to use multiple lines of code?

Re: [PHP] Testing CONNECTION Speed

2001-02-08 Thread Adam Knight
e is flaky. =) On Thu, 8 Feb 2001, Matias Banzas wrote: Is there any way to do this?? i mean.. test the connection speed of a client machine??? -- ____ Adam Knight [EMAIL PROTECTED] AIM:

[PHP-CVS] cvs: php4 /ext/yaz php_yaz.c

2001-02-19 Thread Adam Dickmeiss
dickmeiss Mon Feb 19 09:06:39 2001 EDT Modified files: /php4/ext/yaz php_yaz.c Log: Bug fix: number of records in yaz_range wrongly set to zero. Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.10 php4/ext/yaz/php_yaz.c:1.11 ---

[PHP-CVS] cvs: php4 /ext/yaz php_yaz.c

2001-02-20 Thread Adam Dickmeiss
dickmeiss Tue Feb 20 03:40:36 2001 EDT Modified files: /php4/ext/yaz php_yaz.c Log: Yet another bug fix regarding present. Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.11 php4/ext/yaz/php_yaz.c:1.12 ---

[PHP] finding Friday's date

2001-02-27 Thread Adam Plocher
Could somebody show me an example of a script that will find out the date of each upcoming Friday, thanks. Adam Plocher -- 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

[PHP] DB Problem

2001-04-08 Thread Adam Charnock
help you can give. Thank you Adam -- 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] isset() VS if($var)

2001-04-09 Thread Adam Wright
isset actually sees if the variable exists, and has been assigned a value (where if is obviously checking for boolean truthfulness). Thus... $a = 0; if (isSet($a)) print "A is set"; //This line will execute if (isSet($b)) print "B is set"; //This line never will, as B has not been set to

[PHP] parsing text for special characters

2007-11-29 Thread Adam Williams
I've got an html form, and I have PHP parse the message variables for special characters so when I concatenate all off the message variables together, if a person has put in a ' or other special character, it won't break it when it used in mail($to, MMH Suggestion, $message, $headers); below

Re: [PHP] mysql DATE_FORMAT() question

2007-12-12 Thread Adam Williams
nevermind, I see I had a mistake in my mysql statement, I should of been: select DATE_FORMAT(testdate, '%m\-%d\-%Y') as date_column from testtable; please disregard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql DATE_FORMAT() question

2007-12-12 Thread Adam Williams
I ran the commands: CREATE TABLE testtable ( testdate DATETIME); INSERT INTO testtable (testdate) VALUES (now()); and then I want to select it but format it to show the date only (not the time, and yes I know I could use DATE instead of DATETIME, but there may be cases where I need to show

[PHP] how to handle inserting special characters into a mysql field

2007-12-14 Thread Adam Williams
I'm going to be inserting data from a PHP form into a mysql field. The data could contain special characters like ' \ /, etc. How do I handle that? just $data = addslashes(htmlspecialchars($data)); before the insert query? because later on the data will be read back from the mysql db

Re: [PHP] how to handle inserting special characters into a mysql field

2007-12-14 Thread Adam Williams
Thanks for all the replies everyone. I have a question on mysql_real_escape_string(). The PHP example page shows: $query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s', mysql_real_escape_string($user), mysql_real_escape_string($password)); and I

[PHP] Wrong parameter count for imap_open()

2008-01-02 Thread Adam Williams
I'm running PHP 5.2.4 and getting the error: *Warning*: Wrong parameter count for imap_open() in */var/www/sites/intra-test/contract/login.php* on line *9 *My code is: $mbox = imap_open(\{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\, \.$_POST[username].\, \.$_POST[password].\); //

[PHP] Fatal error: Function name must be a string

2008-01-02 Thread Adam Williams
I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST[perform] == View Contracts ) {

[PHP] mysql date question

2008-01-03 Thread Adam Williams
I have a field in mysql as shown by describe contract; | length_start | date| YES | | NULL || Which stores it in the mysql format of -MM-DD. However, I need the output of my select statement to show it in MM-DD- format. I can select

[PHP] Re: mysql date question

2008-01-03 Thread Adam Williams
nevermind, figure it out, had to take the ' ' away from contract.length_start :) Adam Williams wrote: I have a field in mysql as shown by describe contract; | length_start | date| YES | | NULL || Which stores it in the mysql format of -MM

[PHP] handling ' with mysql/php insert and select

2008-01-03 Thread Adam Williams
In my form, I am parsing all the text inputs through mysql_real_escape_string() before inserting the data. however, when I look at the SQL query in PHP, when I type the word blah's to my text box variable, and then insert it into mysql after being ran through mysql_real_escape_string(), it

[PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Adam Williams
I'm having users enter dates in MM-DD- format. is there a way to check if what they have entered is invalid (like if they enter 1-15-2008 instead of 01-15-2008) ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Adam Williams
Thanks, I think I have it: $dateexplode = explode(-, $_POST[date_entered]); if (!preg_match(/^(\d{2})$/, $dateexplode[0],$data1) || !preg_match(/^(\d{2})$/, $dateexplode[1],$data2) || !preg_match(/^(\d{4})$/, $dateexplode[2],$data3)) { die (you have entered an invalid date);

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Adam Williams
Andrew Ballard wrote: Just curious why you won't take 1-15-2008. Once you validate it, you can always assign it to a variable as either a timestamp or a DateTime object and then format it however you want when you display it, send it to a database, or whatever you are doing with the date.

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Adam Williams
Andrew Ballard wrote: All the more reason I would turn it into a timestamp or DateTime object in PHP first. That will prevent trying to insert something like what I used above. Then I would get rid of the MySQL STR_TO_DATE function in the $mysqli_insert_sql value just replace it with something

Re: [PHP] New search related question

2008-02-05 Thread Adam Williams
http://search.mnogo.ru Jason Pruim wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want to redo the entire

Re: [PHP] Create .php file with php

2007-06-26 Thread Adam Schroeder
into usage within a high usage web app. =) Adam Daniel Brown wrote: On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Adam Schroeder
... if you really couldn't write it as dynamic PHP -- you could also save it in a database. Edward Vermillion wrote: On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote: On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most

Re: [PHP] Removing Spaces from Array Values

2007-07-02 Thread Adam Schroeder
/function.str-replace.php Adam kvigor wrote: Need to remove all spaces from Array Values... And this doesn't work. This is similar info that's within array values: $someArray[0] = PHP is awesome;s/b PHPisawesome This is similar info that's within array values: $someArray[1] = The Toy Boat

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