[PHP] single dimensional array questions

2004-08-04 Thread Adam Williams
Here is my snippet of code. It takes cardnum from the database, removes the duplicates for each individual date, and then counts how many discrete numbers there was. //database connect and selection here, now my sql statement: $sql = "select convert( varchar,eventime, 110) as date, cardnum f

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Adam Bregenzer
alue 0. Also, note the following: var_dump(0 == "0"); //bool(true) var_dump(0 === "0");//bool(false) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Hosting

2004-07-09 Thread Adam Voigt
mmendations are also greatly appreciated. http://www.spenix.com Very good prices, very good support. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting a char variable to an int?

2004-06-14 Thread Adam Williams
eh nevermind, I found settype(); :) thanks On Mon, 14 Jun 2004, Adam Williams wrote: > Hi, I have a variable that is created using the date command: > > $date = date("Ymd"); > > but its not working in my database this way (when I explicity enter > 20040614 in

[PHP] converting a char variable to an int?

2004-06-14 Thread Adam Williams
Hi, I have a variable that is created using the date command: $date = date("Ymd"); but its not working in my database this way (when I explicity enter 20040614 in my database, it works though). so I think PHP is making $date a character variable, so how can I force or change the caste of $date

Re: [PHP] Can someone explain this?

2004-06-08 Thread Adam Voigt
g about signed versus unsigned integers? What I really > would like to do is convert that negative number (-71788), which I > suppose is unsigned to a signed integer (3961595508) without having to > convert it to hex, then back to decimal. > > Rene -- Adam Voigt [EMAI

Re: [PHP] getting the line number

2004-06-07 Thread Adam Bregenzer
call was made from > the parent script to the subroutine. > > I know that I can get the line number of the current script, but that > doesn't tell me where the function was called from... debug_backtrace[1] should get you everything you want and then some. [1] http://ww

Re: [PHP] row colours

2004-06-05 Thread Adam Bregenzer
lternatively you could do: print "$item_1$item_2$item_4$item_5\n"; if ($i % 8 == 7) { print "\n"; } which would keep them the same color and add a blank row after every eighth; again adjust $i as necessary to fit. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenze

[PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Adam Reiswig
there. Thanks for any pointers, ideas, advice or help you may have. -Adam R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class variable unexpected behavior

2004-05-15 Thread Adam Bregenzer
"; > } > } $this->$a should be $this->a same with '$b': $this->$b should be $this->b -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Adam Voigt
Any recommendations? > > Thanks! > Amanda -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
On Mon, 10 May 2004, Richard Davey wrote: > Hello Adam, > > Monday, May 10, 2004, 7:03:36 PM, you wrote: > > AW> Hi, I have a randon group of numbers I need the average of. When I add > AW> them up and divide by how many there are and print the result, I get a > AW&g

[PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
Hi, I have a randon group of numbers I need the average of. When I add them up and divide by how many there are and print the result, I get a lot of decimal places. The number comes out to look like 29.3529411765, but I don't need that many decimal places. rounding to one decimal place will

RE: [PHP] system command?

2004-05-10 Thread Adam Voigt
> > P.S. Stop top posting too. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system command?

2004-05-10 Thread Adam Voigt
defined at http://us2.php.net/manual/en/ref.exec.php and none > seem to have the desired effect. > > $tailed = shell_exec('tail -f /path/to/log'); > //$tailed = exec('tail -f /path/to/log'); > //$tailed = system('tail -f /path/to/log'); > print

Re: [PHP] List() help

2004-05-09 Thread Adam Bregenzer
d a copy: $d = $MyArray; If you only want $d to be an array when there is more than one entry left do this instead: if (count($MyArray) == 1) { $d = array_shift($MyArray); } else { $d = $MyArray; } [1] http://www.php.net/array_shift -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/

Re: [PHP] Re: form submission logic

2004-05-07 Thread Adam Voigt
ames for the buttons, for example: -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] LAMP

2004-05-07 Thread Adam Voigt
I've also heard the Perl Zealots claim the P could or does stand for Perl, but ignore there Jedi mind tricks. On Fri, 2004-05-07 at 11:00, Jay Blanchard wrote: > [snip] > Anyone know what LAMP stand for > [/snip] > > > All of us but you. > > Linux Apache MyS

[PHP] adding -'s to a numeric string

2004-04-21 Thread Adam Williams
Hi, I have a form where I have a user entering in the date in a numeric string. For today they would enter 04212004 and so on...I'm working on this date within mysql server, and mssql server handles dates as 04-21-2004 when you use convert(varchar,field,110). So how in PHP can I change a vari

Re: [PHP] PHP Web Hosting

2004-04-19 Thread Adam Voigt
r web hosting company before my site just goes away. > > Stanley G. Martin > System Administrator > Sprint - EAS Business Intelligence > [EMAIL PROTECTED] -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF Page Pulling

2004-04-07 Thread Adam Voigt
I need to be able to pull a certain page out of a multi-page PDF, and then be able to save that single page to it's own PDF file. Anyone know how to do this with free tools? Thanks. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: $this variable reference question

2004-04-02 Thread Adam Reiswig
itself inside the class, sort of an object inside an object? I guess my problem in understanding this is not so much where this sort of coding should be used but rather what is really going on here. Thanks again! -Adam Reiswig Jason Barnett wrote: It's not the same thing. When an vari

[PHP] $this variable reference question

2004-04-02 Thread Adam Reiswig
ce to the class/object itself. Isn't this like saying outside the class "$myref =& new test;"? What would be the point of referring to itself inside the class in this manner? Thanks for your help in advance! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, I figured out what was wrong, I had php_oci8.dll uncommented in php.ini but not php_oracle.dll. Fixed that and now I get an ORA-12705 error, which looking on google has something to do with NLS. Going to do more reading, thanks :) -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
es.ora ($ORACLE_HOME/network/admin) > > Let's say that you make connection to Oracle using sqlplus: > User: scott > pass: tiger > dbstring: test > > this in PHP would be: $conn = OCILogon("scott", "tiger", "test"); > > > -William

[PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon("user","pw","zed.alpeh0") and connect fine, but on a remote server I try ociogon("user",

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Adam Voigt
m > http://www.phpcommunity.org/wiki/People/BenRamsey > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] transactions

2004-03-29 Thread Adam Voigt
gt; to undo the insert! > > Any suggestions, I guess I could get the last inserted row id and perform an sql > delete but is there a more elegant way? > > Cheers > > Matt -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_fetch_array

2004-03-26 Thread Adam Voigt
1, '%W %M %Y') FROM table > > How do I know what name mysql_fetch_array assigned to the date_format ? > -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question

2004-03-25 Thread Adam Voigt
t; > $test = 22; > > The " denotes a string and without quotes it denotes a value > > > HTH, > Roger -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question

2004-03-25 Thread Adam Voigt
écrit : > > Hey, there. > > I'm a new php student from Brazil, and sorry about my ignorance writing > > in English. > > I'd like to know if exists any function in php that identifies a string > > as a-z, like is_num() to the numbers. > > > >

[PHP] CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Adam Reiswig
x27;s possible with out conflicting with existing css styles and as long as it didn't insert font tags and tables all over. Is there a good open source php based cms system out there that can do the above? I'd sure like to know about it. Thanks for any pointers! -Adam R. -- PHP Gener

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-19 Thread Adam Voigt
f there is, I would use that instead. On Thu, 2004-03-18 at 14:38, Chris de Vidal wrote: > Adam Voigt said: > > If I ran XP I might be able to do that. From reading the security > > release my MS, it sounds like some times the POST request gets b0rked, > > Yep. > >

Re: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Adam Voigt
some times the POST request gets b0rked, if this is the case, I'm not sure there's much that can be done about it. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace or regex

2004-03-18 Thread Adam Williams
Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to $$z. $$a all the way to $$z needs to be ch

Re: [PHP] Thank you, Microsoft! Now I need an alternate login method

2004-03-18 Thread Adam Voigt
l) > { > if (ereg ("^([^[:space:]]+)@(.+)\.(.+)$", $email)) > { > return TRUE; > } else { > return FALSE; > } > } > ?> > = > > open_db.php is just mysql_connect and mysql_select_db, while close_d

Re: [PHP] php code to connect to MS-SQL SERVER

2004-03-18 Thread Adam Voigt
or her authorized agent, the reader is hereby notified that > any dissemination, distribution or copying of this e-mail is prohibited. If > you have received this e-mail in error, please notify the sender by replying > to this message and delete this e-mail immediately. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to keep a timestamp from updating?

2004-03-18 Thread Adam Voigt
t want that to happen - I want it to remain as > the original creation timestamp. How do I prevent this from happening? > > Thanks, > > - Brian -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Adam Voigt
http://www.php.net/str-replace On Wed, 2004-03-17 at 15:48, Vernon wrote: > I want to be able to replace a space that comes from a form field (such as > in 123 My Street) with a + sign. > > Can anyone help me with this? > > Thanks -- Adam Voigt [EMAIL PROTECTED] -- PHP Ge

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Adam Voigt
n't write a log by default as best I can tell, but I did find something. > > The MySQL on the webserver is: mysql-standard-4.0.16-sun-solaris2.9-sparc > > The MySQL on the dbserver is: mysql-3.23.54a-sun-solaris2.8-sparc > > > Do you think the version skew could cau

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
Bhost, $DBuser, $DBpwd) >or die("Could not connect : " . mysql_error()); > > mysql_select_db($DBconf) >or die("Could not select database"); > > > > > Could not connect : Can't connect to MySQL server on '192.168.1.44' (2

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
) > > Not very helpful huh? > > Any ideas? > > Cameron -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
So what error prints out when you try and connect from PHP? On Wed, 2004-03-17 at 15:03, Cameron B. Prince wrote: > Hi Adam, > > > What happens when you try to use the "mysql" client on the > > web machine, to connect to the production database server? >

Re: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
ersistent Unlimited Unlimited > mysql.trace_mode Off Off > > Can anyone give me ideas to get this working? I must admit, I'm stumped. > > Here's the mysql_error: Can't connect to MySQL server on '192.168.1.44' > > >From the webserver error l

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

2004-03-17 Thread Adam Voigt
because for some reason the $counter++; doesn't work. It just doesn't > work, no incrementation of the variable. Is there something in php.ini that > can prohibit this from working? > > Thanks, > Jake > > -- > PHP General Mailing List (http://www.php.net/) > T

Re: [PHP] PDF Creating

2004-03-17 Thread Adam Voigt
; My question is how to I know how/where the pages will break, and how can > I make the generation of the PDF files work automagically? The first > page will always have a header set of information, and then the quote > following it, all other pages will just have the quoted items. >

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

2004-03-17 Thread Adam Voigt
work. It just doesn't > work, no incrementation of the variable. Is there something in php.ini that > can prohibit this from working? > > Thanks, > Jake -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-03-17 Thread Adam Voigt
f(!isset($correct)) { > $correct = 0; > } else { > $correct = $correct++; > } > > Seems like it should work? > > Thanks! > Shane -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] memory_limit doesn't work (4.3.3, Mac OS X)

2004-03-14 Thread Adam Nohejl
Thanks for any idea -- Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Adam Voigt
a > script that is being launched several hundred times an hour. > > Ideas? > > Ian -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how classes interact question clarification question

2004-03-11 Thread Adam Reiswig
To clarify my question, can one class directly call a function or change a variable of another class or is the main php file the only way to interact between the two or more classes? Thanks again!! -Adam R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] object oriented php game... how classes interact question

2004-03-11 Thread Adam Reiswig
all this so please be patient with me if none of this makes any sense at all. Let me know if I need to be more specific with something and I'll do my best. Thanks for any help or advice in advance. Also if anyone knows of any good articles online that you could point me to, I'd be most grateful. -Adam R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] AI:Categorize

2004-03-10 Thread Adam i Agnieszka Gasiorowski FNORD
Evan Nemerson wrote: > There is an artificial neural network extension in the CVS repository at > sf.net/projects/fann (disclaimer, I'm the author of that extension and a > developer for the FANN library). I don't know of any bayesian networks for > PHP, but I could be wrong. Sorry to hea

[PHP] AI:Categorizer

2004-03-10 Thread Adam i Agnieszka Gasiorowski FNORD
Is there avaiable something alike a port of PERL AI:Categorizer? -- Seks, seksić, seksolatki... news:pl.soc.seks.moderowana https://hyperreal.info/pomoc/ { 1488 } WiNoNa => ) ( Szatan, Szatan...http://666-666.0-700.pl foReVeR( * ) Poznaj jej zwiewne kształty... http://www.opera.com

Re: [PHP] Re: using mail() for multiple email address...

2004-03-09 Thread Adam Reiswig
yes, my webhost is on Unix. Thanks, that must be it because I sent a regular email to both address's at the same time and I only received one. -Adam Reiswig [EMAIL PROTECTED] wrote: On 8 Mar 2004 Adam Reiswig wrote: Normally, the two emails would end up in the same pop account but don&#

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
is and if there is a remedy, I'd sure like to know about it. Thanks a lot!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
is and if there is a remedy, I'd sure like to know about it. Thanks a lot!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using mail() for multiple email address...

2004-03-08 Thread Adam Reiswig
is and if there is a remedy, I'd sure like to know about it. Thanks a lot!! -Adam Reiswig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
Thank you, that works great! On Thu, 4 Mar 2004, Richard Davey wrote: > Hello Adam, > > Thursday, March 4, 2004, 3:36:06 PM, you wrote: > > AW> What would be the PHP expression to change any and all ' to ? in a > AW> variable? > > AW> I want to c

[PHP] regex to change ' to ?

2004-03-04 Thread Adam Williams
What would be the PHP expression to change any and all ' to ? in a variable? I want to change any and all ' in $_POST[data] to ? what would be the statement? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Updating content on the line. (cli)

2004-03-03 Thread Adam Voigt
one way. It's currently in development for Win32, but it > would be nice if it works on *nix later on aswell. Got a tip from a user > in a chatroom to use Ncurses for it, but then I can't use it on win32. > > Just to correct myself; it's chr(8) and not 7. > > //Si

Re: [PHP] Updating content on the line. (cli)

2004-03-03 Thread Adam Voigt
ns of console applications. Like some "please wait" > thing that changes from - to \, |, /, and so on (looks like a rotating > line). > > Ideas? > > //Simon -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
Well yes, I know there are utilities, on the Linux server I can just use the "pdftotext" program, but I'd like to make it platform-independent instead of relying on outside utilites. On Fri, 2004-02-27 at 11:43, Stuart wrote: > Adam Voigt wrote: > > >I need the abi

[PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
I need the ability to take a PDF and pull the text out of it, I looked at the manual for the PDFlib extension, but didn't see anything like this. Anyone know a way to do this? -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Adam Bregenzer
good_name}; done This will find any characters followed by a '.' and any upper or lowercase letter. This should grab everything except for the newline at the end and rename the file accordingly. Since I don't have any files with newlines in their names I didn't test it so

Re: [PHP] Re: Image resize on upload

2004-02-26 Thread Adam Bregenzer
e load. [1] http://www.imagemagick.org/ [2] http://www.imagemagick.org/www/convert.html [3] http://www.php.net/exec -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Adam Bregenzer
nd can not control PHP's settings search the archives for code based solutions to this. Welcome to the most annoying PHP feature ever. :) Regards, Adam [1] http://www.php.net/ref.info#ini.magic-quotes-gpc -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] function.date.php

2004-02-25 Thread Adam Bregenzer
On Wed, 2004-02-25 at 15:58, John Taylor-Johnston wrote: > I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... Use strtotime[1] then date[2]. [1] http://www.php.net/strtotime [2] http://www.php.net/date -- Adam Bregenzer [EMAIL PROTECTED] h

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
see here a request for someone to design your application for you. -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
d[1] and echo your selection. If you have PHP < 4.2.0 you will also need to use mt_srand[2]. $field = array('a','b'); $field_max = count($field) - 1; echo $field[mt_rand(0, $field_max)]; [1] http://www.php.net/mt_rand [2] http://www.php.net/mt_srand -- Adam Bregenzer [E

Re: [PHP] Make sure folder is writable

2004-02-24 Thread Adam Bregenzer
> can copy the files to the new folder. Anyone got any ideas? How about is_writable[1]? Just to throw it out there. My favorite, non-portable, hackish solution is `touch $dir`; :) [1] http://www.php.net/is_writable -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP Gen

Re: [PHP] Re: Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
egards, > Manuel Lemos > > PHP Classes - Free ready to use OOP components written in PHP > http://www.phpclasses.org/ > > PHP Reviews - Reviews of PHP books and other products > http://www.phpclasses.org/reviews/ > > Metastorage - Data object relational mapping layer gener

Re: [PHP] date functions

2004-02-24 Thread Adam Bregenzer
above. If you are using MySQL and the date field is one of the date formats (ie. not char/varchar) take a look at MySQL's date formatting functions[1]. Regards, Adam [1] http://www.mysql.com/doc/en/Date_and_time_functions.html -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/

Re: [PHP] running php3 files

2004-02-24 Thread Adam Voigt
ill he have to make the changes so that his scripts will run if its > .php or .php3 ? > > Thanks, > -Ryan -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
angerously - it can be difficult to write robust code that will recover > from a problem that way. > > Adam Voigt wrote: > > > Why can't you just mount the share on-the-fly when they enter the > > username and pass? > > > > > > On Tue, 2004-02-

Re: [PHP] Parsing large log files with PHP

2004-02-24 Thread Adam Bregenzer
ound for you. Regards, Adam [1] http://www.php.net/file [2] http://www.php.net/fopen [3] http://www.php.net/fgets [4] http://www.php.net/fread [5] http://www.php.net/fclose [6] http://www.php.net/stream -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (h

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

2004-02-24 Thread Adam Bregenzer
gt; > > The output I am receiving is: > 0: Array > Recipient = Array > > Obviously, I want to see the output of each array element as well as the > final contents of $form['recipient']. You need to look up how to use explode[1], my guess is you don't want

Re: [PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Adam Bregenzer
uery. (ie. you want to find the third fieldset child of the body element that has an attribute set to "foo") As a side note, that article has a link to a similar one that lists a regexp based XML parser as the only PHP solution. :) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.breg

Re: [PHP] Accessing SMB (Samba perhaps) resources

2004-02-24 Thread Adam Voigt
or PHP to be able to manipulate the files therein. > > Maybe this is easy, but I can't see how to do it!! Any help appreciated. > > Thanks!! -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Adam Voigt
http://www.freetds.org Enjoy. On Tue, 2004-02-24 at 08:53, [EMAIL PROTECTED] wrote: > Hello, > > How can we connect to MS-SQL Server ? > What tools ( where can we download ) must be installed ? > > Thank a lots. > > PS : the php programs under Linux / Unix... > &

Re: [PHP] enum('part1','...')

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 22:57, John Taylor-Johnston wrote: > district enum('part1','part2','part3','part4') > > while (district??) > { > echo "".district[0]." > } Are you doing this in PHP? I do not think you

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 23:02, [EMAIL PROTECTED] wrote: > Adam, > Thanks for your repsone(s) now back the root of the problem. > As stated above I need to be able to run the database from with the home > direcory/document root? I hesitate to answer this so as to not create a naming con

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
been started. If I touch index.php > then the problem disappears, but then if I restart apache the problem reappears. > > If you want to see the output of the script go to http://outreach.net.nz/test/ Wow, looks like a bug to me, good find! -- Adam Bregenzer [EMAIL PROTECTED]

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
etely > correct. I also use MMCache, mind sharing the problems you are experiencing? -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] delete a function

2004-02-23 Thread Adam Bregenzer
implementation will be somewhat unique. Also, if a user changes state you will have to issue an HTTP redirect to reload the correct functions. Fortunately, I would guess that would rarely, if ever, happen in the middle of a script's execution. In looking for a non-OO solution, my opinion is

Re: [PHP] preg guru again.....

2004-02-23 Thread Adam Bregenzer
lowing elements > the :date: in the format mmddmmdd > The expression I'm using is > (":16[0-9]:") > ie matching the : with 16 digits : here's a start: /:(\d+):([EMAIL PROTECTED])@([\w&=+\/:\\%-]+)/i -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.

Re: [PHP] PHP 5

2004-02-23 Thread Adam Bregenzer
ough bugs are fixed and enough people do not complain about it not working right when they use it. If you want to shorten the time to release you can always go and fix some bugs. :) -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Bregenzer
with that doesn't rely on mime types or file extensions, both of which can easily be inaccurate. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
gt; fopen() for that matter, is binary or not and going with that result is > the elegant solution to this problem. There has to be a way to do it. > > Nick > > Adam Voigt wrote: > > >Couldn't you just check the extension on the file? > > > > > >On M

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
result and determine if the file is binary? > > I'd like to be able to block binaries from being processed without > > having to try to think of all the possible binary extensions and omit > > them with a function that looks for these extensions. > > > > Nick >

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Adam Bregenzer
ling. Here, here, PGP adds more benefits as long as you don't leak your private key. You could always try and wrap everything as a mime message or zip the two together. Also, place a link to the pgp signature in the README file. Not that anyone ever reads those though. ;) -- Adam Bregenzer [E

Re: [PHP] Php and GpG

2004-02-23 Thread Adam Bregenzer
mething from the exec family[2], or backticks[3]. [1] http://www.php.net/popen [2] http://www.php.net/ref.exec [3] http://www.php.net/operators.execution -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Adam Voigt
.squirrelcart.com/ looks to be pretty good for a shopping cart- > does anyone have any experience with this or others? > > Also, what suggestions do ya'll have for a payment gateway? > > > thanks > matt -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List

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

2004-02-23 Thread Adam Voigt
st_name','email','session','last_name') > VALUES > ('0.0.0.0','0.00',NOW(),'Bob','[EMAIL PROTECTED]','12345','Smith')"; > $result = mysql_query($query); -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Voigt
-02-23 at 11:53, [EMAIL PROTECTED] wrote: > Adam Voigt wrote: > > Check these guys out: > > > > http://spenix.com/WebHostingPlans.aspx > > > > Very cheap, very reliable, great features, and support is second to none > > I've ever experienced, and before

[PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Voigt
2-23 at 09:53, [EMAIL PROTECTED] wrote: > Howdy -- > Would someone point or provide me with an example of PHP + libMysqld > (Embedded MySQL server)? > > My problem is my churchs web site doesn't provide a MySQL database as > a default package (add $15.95/mo)for a MySQ

Re: [PHP] Padding the decimals

2004-02-22 Thread Adam Bregenzer
4.30 > etc. I assume you mean adding zeros to the end for displaying, not for further calculation? Look at printf[1] and sprintf[2]. Here's an example: printf("%.3f", 4.1) // 4.100 [1] http://www.php.net/printf [2] http://www.php.net/sprintf -- Adam Bregenzer [EMAIL PROTECTED]

Re: [PHP] running php through cron

2004-02-21 Thread Adam Bregenzer
e through php) and write to the file and not let anyone else (besides root of course) to do anything with it. Technically, if an executable can be read it can be executed. If it's a binary it can be copied by a user and the copy can be run, if it's a script it can be passed to an interprete

Re: [PHP] delete a function

2004-02-21 Thread Adam Bregenzer
bed is, but it sounds to me like you are trying to implement the factory pattern[1]. I would recommend looking into using classes in PHP and giving it a shot. http://www.phppatterns.com/index.php/article/articleview/49/1/1/ -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ --

Re: [PHP] resize an image with php

2004-02-20 Thread Adam Voigt
> Thanks ! -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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