Re: [PHP] Php Projects

2002-02-08 Thread mike cullerton
in. playing with routers late on a friday night after a few cold ones was always fun :) -- mike cullerton michaelc at bakednotfried dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] copy + chmod problems ...

2002-02-07 Thread mike cullerton
i just tried a test and it works on MacOS X. even with the space between 'chmod' and '('. what platform are you on? is this a standalone script/app or from a web page? can you perform the chmod from the command-line? what is the entire error message? also, the error doesn't really suggest this,

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread mike cullerton
on 2/4/02 11:32 AM, Peter J. Schoenster at [EMAIL PROTECTED] wrote: > Hi > > If I use $snippet = ""; and escape the quotes in the block then it > works. But if I use it as is below, it fails with no useful error > message. Why? not sure if this is it or not, but from the manual http://www.php

Re: [PHP] Attaching a file via MAIL()

2002-02-01 Thread mike cullerton
on 2/1/02 11:36 AM, Dave at [EMAIL PROTECTED] wrote: > How can I add an attachment to an email using MAIL(). So far I have been > able to successfully send email by using: > > mail($to, $subject, $message, $headers); > > Is there something I can add in the $headers to add an attachment??

Re: [PHP] function arguments

2002-01-18 Thread mike cullerton
passed... > > example: > function func($arga, $argb, $argc) > { > do_something_with_arga; > do_another_thing_with_argb; > and_if_argc_was_passed_do_something_with_it_too; > } > > because i dont want to pass argc if i dont need it, and to pass void arguments > like '' is annoying... > &

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
what about the "[EMAIL PROTECTED]"? is it failing on a 'bad' email address? or maybe putting everything in variables and trying mail($to,$subject,$message); on 1/18/02 9:14 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: > nope. no difference. > > jeff. > >

Re: [PHP] $this objects and vars

2002-01-18 Thread mike cullerton
context isn't referring to itself at that point but some memory space allocated to the variable named 'this' instead, i guess. ? mike -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] help installing php

2002-01-18 Thread mike cullerton
so I can make the PHP work along > with apache and mysql as well? Or at least tell me > what indicate a source code directory (what files > are in). Maybe I can search it manually. -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
t; > php mail_test.php > > and getting, > > X-Powered-By: PHP/4.0.6 > Content-type: text/html > > attempting to deliver the mail > Warning: Unknown error in mail_test.php on line 3 didn't notice any other responses, and this is just a guess here, but how a

Re: [PHP] PHP Security - "view source code"

2002-01-17 Thread mike cullerton
erver runs as. my webserver runs as www.www so i added myself to the www group. -- mike cullerton michaelc at cullerton dot com -- 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] Php.ini file missing

2002-01-17 Thread mike cullerton
ch/software/macosx/php/ > Which values do you think I should write in the hostconfig file? My usual > provider domain (i.e. www.tiscali.it)? ideally, you would type the fully qualified domain name of your computer. so, to test all this - login to your isp - find out your hostname (nslookup i

Re: [PHP] Linux Book

2002-01-16 Thread mike cullerton
gest starting with the Guides at the Linux > Documentation Project, > http://www.linuxdoc.org/guides.html > and work from there, and don't forget the HOWTO's. >> S. slightly OT, but what is the best linux book out there, aimed at >> admin/DNS/Networking?

Re: [PHP] PHP Security - "view source code"

2002-01-16 Thread mike cullerton
ne requests a file ending in .inc, apache won't deliver it. however, php will still be allowed to include those files itself. -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] PHP & HTML: newbie question

2002-01-16 Thread mike cullerton
fact that have to use their CGI > server to run PHP??? > > Cheers > > Richard S > -- mike cullerton michaelc at cullerton dot com -- 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] mySQL select statement with mulitple where definitions

2002-01-16 Thread mike cullerton
ice"; > select * from products where catalognumber in (120106,120095) order by you may need quotes around the stuff in the parens, ('120106','120095') -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] PHP as a cron job

2002-01-16 Thread mike cullerton
>>> >>> Yes. Same thing happens with absolute or relative paths. >> >> what's the line in your code where this error occurs? > > it doesn't run any line at all. don't matter what I put on my code, it just > says "unable to open"

Re: [PHP] mysql_insert_id?

2002-01-16 Thread mike cullerton
n the last_insert_id of previous INSERT query (from previous > 'session') but of course, you'd have checked that the result id returned a valid result and not an error in this case and never looked for the last_insert_id, right? ;) mike -- mike cullerton michaelc at cullerton

Re: [PHP] Maintenance of POP3 accounts

2002-01-16 Thread mike cullerton
t the answer you wanted to hear, but i've lived on both sides of this fence :) mike -- mike cullerton michaelc at cullerton dot com -- 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] PHP as a cron job

2002-01-16 Thread mike cullerton
>> I have no idea why PHP parser is making this confusion. >> Could anyone bring some light to this mistery please? >> >> Atenciosamente, >> >> Tiago Luchini >> Diretor Técnico-Comercial >> Galluch Soluções Internet >> Tel.: 0xx11 6912-3255 &g

Re: [PHP] Lazy evaluation?

2002-01-16 Thread mike cullerton
d". >> >> i'm new to all this stuff, so i'll bite. hopefully someone can explain what >> i'm missing. >> >> if i have a statement like >> >> if (($a == 'a') && ($b == 'b')) blahblahblah(); >> >> a

Re: [PHP] mysql_insert_id?

2002-01-16 Thread mike cullerton
ive MySQL persistent link identifier on success this is why you use the link identifier in things like mysql_query, and lets mysql 'know' what 'your' last insert was. hope this helps, mike -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http:

Re: [PHP] Lazy evaluation?

2002-01-16 Thread mike cullerton
so i'll bite. hopefully someone can explain what i'm missing. if i have a statement like if (($a == 'a') && ($b == 'b')) blahblahblah(); and, $a != 'a'. why should php even look at the value for $b while evaluating this line? shouldn

Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread mike cullerton
27;$weight'"; > > $result = mysql_query ($query); > $num_results = mysql_num_rows($result); > > ...the $num_results is ALWAYS zero unless I typed in all four fields. > > Any help? > > Thanks! > -- mike cullerton michaelc at cullerton dot com -- 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] Php.ini file missing

2002-01-13 Thread mike cullerton
- to MAILSERVER=-YES- (isn't everything different in macosx) again, you need to do this from an administrator account. this will start sendmail each time you reboot. i'm not exactly sure how to start sendmail correctly from the command line, but one of the sites i mentioned earlier might

Re: [PHP] Php.ini file missing

2002-01-13 Thread mike cullerton
o find anything clear about this question. > > I would really appreciate if you could give me some tips or some web site's > addresses where I can find easy information, or where I can download a copy > of the "php.ini" file. > > I thank you in advance for the kindn

Re: [PHP] External Function

2002-01-13 Thread mike cullerton
on 1/13/02 10:06 AM, Cory at [EMAIL PROTECTED] wrote: > Is it possible to put all of my functions in a text file and just call it > and use the functions in it? http://www.php.net/manual/en/function.require-once.php http://www.php.net/manual/en/function.include-once.php -- mike cul

Re: [PHP] beginer

2002-01-13 Thread mike cullerton
on 1/13/02 10:32 AM, Vania Lavielle Castro at [EMAIL PROTECTED] wrote: > how work with sql server and code php? > i try with the functions and the results are bad > i need examples, please :( http://www.php.net/links.php -- mike cullerton -- PHP General Mailing List (http://ww

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread mike cullerton
me for getting dates in and out of mysql using $month,$day,$year. for any project, i also create functions for formatting $month,$day,$year however the customer requires the output. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Newbie database question

2002-01-13 Thread mike cullerton
ll it exactly the same each time. you may need to figure out some other unique identifier to determine if it's the 'same' person. hope this helps, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] 404 Redirection

2002-01-13 Thread mike cullerton
nclusion (include_path='') in > /var/virt/home/stuffwefound-co-uk/public_html/index.php on line 70 > > I have got an error page for any other url i.e. apagenotfound.php but I > dont know how to overcome the above. > > Thanks in advance > > Lee > -- mike cull

Re: [PHP] mysql_fetch_row win32 to Linux

2002-01-12 Thread mike cullerton
ult)){ this tells me that $myresult is not a valid mysql result resource identifier. how do you obtain $myresult? -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] preg_replace help

2002-01-11 Thread mike cullerton
on 1/11/02 8:20 PM, Gaylen Fraley at [EMAIL PROTECTED] wrote: > Can someone recommend a good tutorial > or book on this subject? Mastering Regular Expressions Jeffrey Friedl O'Reilly & Associates ISBN 1-56592-257-3 -- mike cullerton -- PHP General Mailing List (http://w

[PHP] RTFM code snippet

2002-01-11 Thread mike cullerton
eally going on in the RTFM code with the "false !==" part? thanks y'all, mike -- mike cullerton -- 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] php executing system commands..

2002-01-11 Thread mike cullerton
on 1/11/02 1:35 AM, louie miranda at [EMAIL PROTECTED] wrote: > Hi, can php execute system commands > like df, and then print it to html ? http://www.php.net/manual/en/ref.exec.php -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Form Question

2002-01-10 Thread mike cullerton
keep the data in a variable and do something like on 1/10/02 1:30 PM, Lerp at [EMAIL PROTECTED] wrote: > Hi there, how do I keep values in a form if the user has to go back and fill > in some missing fields? > > Thx Joe :) > > -- mike cullerton -- PHP General

Re: [PHP] headers showing up in browser

2002-01-10 Thread mike cullerton
#!/usr/local/bin/php -q on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED] wrote: > I've got this problem that won't go away. > > The headers are showing up at the top of the page when I run php in > cgi mode. any ideas? -- mike cullerton -- PHP General Mailing Li

Re: [PHP] eregi

2001-10-02 Thread mike cullerton
on 10/2/01 8:51 AM, CC Zona at [EMAIL PROTECTED] wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Mike Cullerton) wrote: > >> eregi("^[a-z0-9_\-]+$",$string) >> >> notice that i had to escape the dash with a backslash > > Are you s

Re: [PHP] eregi

2001-10-01 Thread mike cullerton
in message >>>>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >>>>>> See php.net/strcspn >>>>>> >>>>>> On Mon, 1 Oct 2001, Tim Ballantine wrote: >>>>>> >>>>>>> Hello, >>>

Re: [PHP] DB.php, and how to use?

2001-09-25 Thread mike cullerton
programming in a long > time, and I've never done it in PHP. > > -- > Matthew Walker > Ecommerce Project Manager > Mountain Top Herbs > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.2

Re: [PHP] Determining IP address

2001-09-06 Thread mike cullerton
mes from > elsewhere. If your system contains sensitive or confidential data then I > would suggest you do both - username/password and IP -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] networking

2001-08-31 Thread mike cullerton
twork, > and the internet from the linux machine? -- mike cullerton -- 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] The future of PHP

2001-08-28 Thread mike cullerton
manner they are comfortable with. after all, it's their itch. ya know, making the best HTML-embedded scripting language seems a pretty noble goal to me. > Regards, > Manuel Lemos have a good one, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Sessions and Cookies on Macs

2001-08-28 Thread mike cullerton
session problem? i use a mac to develop my sites, and many of them use sessions without a problem. when i turn off cookies in the browser (usually the latest version of ie) php handles it smoothly. let me know if you have any questions, mike -- mike cullerton -- PHP General Mailing

Re: [PHP] $i % 2 ? 0:

2001-08-25 Thread mike cullerton
; does step by step? I was looking in PHP docs for "?" and ":" and > didn't find it there. I use this line in my script to assign different > value for $bgcolor variable to color rows in result, but I want to > understand what does it mean. > > Thank you in adva

Re: [PHP] How can I read the value of an existing cookie?

2001-08-25 Thread mike cullerton
to use $language mike > Thank you for your support. > > Pere > > -- mike cullerton -- 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] print_r question

2001-08-23 Thread mike cullerton
and the output shows that newlines are created. > > Am I missing something? > > Newbie, here. Hope this is the right thread for such question. > > Thanx, > James > > > > -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] code check

2001-08-23 Thread mike cullerton
t;/ppc/i", "$HTTP_USER_AGENT") || > preg_match("/PowerPC/i", "$HTTP_USER_AGENT")): > $basefont = "Geneva"; > else: > $basefont = "Verdana, Helvetica, Serif"; > endif; > > It doesn't return an error, but that doesn't mean it

Re: [PHP] server run page

2001-08-12 Thread mike cullerton
n i do the same thing under php ? > > inside php.ini ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file = -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] checking for null form fields fails

2001-08-07 Thread mike cullerton
27;m not really sure what the difference is between function, statement and >> language construct (which is what echo is). syntactically, i know that >> functions require parentheses. >> >> with echo, the manual says you _cannot_ use parantheses if you are echoing >> mo

Re: [PHP] if(!$submit)

2001-08-07 Thread mike cullerton
then get an error; > Parse error: parse error, expecting `T_VARIABLE' or `'$'' > Could someone please tell me the more than likely simple sollution. > > Thanks > > Taz -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

Re: [PHP] checking for null form fields fails

2001-08-07 Thread mike cullerton
e construct (which is what echo is). syntactically, i know that functions require parentheses. with echo, the manual says you _cannot_ use parantheses if you are echoing more than one thing. http://www.php.net/manual/en/function.echo.php -- mike cullerton -- PHP General Mailing List (http://www.ph

Re: [PHP] How do I write a compound variable?

2001-08-06 Thread mike cullerton
oops, that's printf("avg for %s is %s",$year,($$high + $$low)/2); :) sorry on 8/6/01 6:17 PM, mike cullerton at [EMAIL PROTECTED] wrote: > try > > for ($year=1995;$year<=2001;$year++) { > $high = "high_" . $year; > $low = "low_" . $yea

Re: [PHP] running stand-alone php

2001-08-06 Thread mike cullerton
> Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] How do I write a compound variable?

2001-08-06 Thread mike cullerton
_2001=23; > > $low_1995=22; > $low_1996=23; > $low_1997=20; > $low_1998=18; > $low_1999=20; > $low_2000=21; > $low_2001=23; > > for ($year=1995;$year<=2001;$year++) > { > $avg_$year=($high_$year"+$low_$year)/2 // create $avg_1995, ... > print "$

Re: [PHP] Form call a function on submit

2001-08-06 Thread mike cullerton
i do is... switch ($submit) { case "my_value": my_function(); break; case "my_other_value": my_other_function(); break; default: my_default_function(); break; } so, when the form is submitted, i check the value of submit and run the corresponding function. ho

Re: [PHP] What's the difference between echo and print?

2001-08-06 Thread mike cullerton
function. it is a language construct. (i'm not sure of all the implications of this) also, you do not need parantheses. so, echo $thing; is valid. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] Session problem

2001-08-06 Thread mike cullerton
#x27; AND > PASSWORD = '$PASSWORD'"); > > if ($row = mysql_fetch_array($res)) { > $NAME = $row[NAME]; > session_register("NAME"); > } > > ... > > Header("Location: menu.php"); > > > > menu.php: > > session_star

Re: [PHP] Re: Host OnLine ?

2001-08-06 Thread mike cullerton
on 8/6/01 11:17 PM, Arcadius A. at [EMAIL PROTECTED] wrote: > What if the host I'm checking is a simple workstation not running neither a > HTTP nor a FTP server ? > I'm writing this script for an intranet to check which machines are > currently on ... maybe some kind o

Re: [PHP] weird behavior with a form

2001-08-04 Thread mike cullerton
and one of them (i can't remember which) handles it differently if there is more than one button on the page. i think if the browser is ie and there is only one submit button, hitting enter also returns submit='whatever'. otherwise, no guarantees. it appears that hiddens are the way

Re: [PHP] Phone Number #s Only?

2001-08-03 Thread mike cullerton
e: >> on 8/2/01 5:32 PM, Jeff Oien at [EMAIL PROTECTED] wrote: >>> Is there a routine out there to strip all characters from a phone >>> number except the numbers? I was going to write my own but >>> figured there must already be one out there I can use. Thanks. >

Re: [PHP] web traffic report

2001-08-03 Thread mike cullerton
another vote for analog. on 8/2/01 9:46 PM, Chris Fry at [EMAIL PROTECTED] wrote: > analog seems to be the industry standard - use it with the extended log > format. > > http://www.statslab.cam.ac.uk/~sret1/analog/ > -- mike cullerton -- PHP General Mailing List (htt

[PHP] thoughts on sessions and members

2001-08-03 Thread mike cullerton
hin the dog object constructor, but of course can't get that to work now :) is this a good approach? is it possible (should i want) to make this check within the dog constructor? what are other approaches? thanks everyone, mike -- mike cullerton -- 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] Re: Phone Number #s Only?

2001-08-03 Thread mike cullerton
o_3(). i use phone_from_3() to set $phone = $phone1 . $phone2 . $phone3. i then put $phone in the db. when i want to display the phone number somewhere, i use phone_to_3() to turn $phone into $phone1, $phone2, $phone3. i can then format the phone number making it easy to read. hope this helps, mike

Re: [PHP] mySQL Autoincrement Field

2001-08-02 Thread mike cullerton
pe. i believe you are ok with MyISAM or InnoDB tables. check out the docs on table creation and column types at mysql.com. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] html parsing question

2001-08-02 Thread mike cullerton
en the next pair of tags. > > Anyone have a quick solution? i would check out http://php.net/strpos > > Thanks, > Chuck > > -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: [PHP] Phone Number #s Only?

2001-08-02 Thread mike cullerton
lace ("[^0-9]","",$string); -- mike cullerton -- 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] Adopt A Newbie (ME)

2001-08-02 Thread mike cullerton
dude, aren't you being a little harsh? > I hereby nominate Kyle as the official George W. Bush of the PHP General > mailing list. Anyone second it? to dubya, that is :) -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

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

2001-08-02 Thread mike cullerton
7;ll add GD for real later, but 20% is fine for the > proof-of-concept I'm working on right now. > > Anyway, you may be able to add in new PHP extensions without re-compiling > everything, but you'll need to check up on the stability issue. this is cool to know, thanks.

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

2001-08-02 Thread mike cullerton
ot;UPDATE TABLE seminar SET >> > title='$title',speaker='$speaker',event_date='$tdate',time='$time',bldg='$bu >> ilding' >> ,rm='$room' WHERE id='$id'"; >> >> Without the quotes, SQL doesn't know that Something Amazing is > supposed to >> go together in the same string. >> >> HTH > -- mike cullerton -- 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] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread mike cullerton
t;; > } > > function __sleep() { > $this->svar['Hello'] = "Yawn"; > // return list of instance-variables to be serialized > return array('error', 'svar'); > } > > function __wakeup() { > $this->svar['test'] = &qu

Re: [PHP] not null

2001-08-01 Thread mike cullerton
gt; > ex: if($value == ???) > { > bla > bla > bla > } > > > My condition wants there to be nothing in $value. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] Fun Question - What if...

2001-08-01 Thread mike cullerton
applications can you imagine setting up and running >> in this environment? What else would you need, if anything? -- mike cullerton -- 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] fopen(fd, "w") doesn't work?

2001-08-01 Thread mike cullerton
on 8/1/01 8:39 AM, Ibrahim Noor at [EMAIL PROTECTED] wrote: > I tried to create file by fopen(fd, "w") function, but it didn't work. > Permission Denied, server said. maybe you (the user your script is running as) don't have permission to write the file? -- mike cu

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

2001-08-01 Thread mike cullerton
out what you want in support from your vendors. support is support. even monkeys can be trained. it takes someone who cares to provide good support. > I just figured that I would ask the PHP community exactly what they wanted. > Thank you for any insight that you can give me. well, not much of my

Re: [PHP] HTTP_SESSION_VARS

2001-08-01 Thread mike cullerton
PROTECTED] wrote: > SORRY i just coppied it wrong > the actual code is capitalized > > while(list($k, $v) = each($HTTP_SESSION_VARS)) > -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Re: include_once vs require_once

2001-07-31 Thread mike cullerton
s > imported into the file whereas an included file is only imported if the > include() statement is executed. The same is true for the _once() > versions except that the statement evaluates to nothing if the file has > already been imported by another statement. > > Cheers, > S

[PHP] include_once vs require_once

2001-07-31 Thread mike cullerton
lmost like one is a copy/paste and the other is some kind of read. is there any different behavior we should expect in scripts using one method vs another. my first guess was that require_once wouldn't evaluate the file, but i can execute code from within a file using either method. thanks,

Re: [PHP] dumb mysql_connect issue

2001-07-31 Thread mike cullerton
is a column, but "FROM" expects a table. try "select table_name.column_name1,table_name.column_name2 from table_name" -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] dumb mysql_connect issue

2001-07-31 Thread mike cullerton
t; Philip > > > On Tue, 31 Jul 2001, CGI GUY wrote: > >> Is there anything (add. parameters, etc.) that I'm >> missing that would possibly explain why the following >> code won't execute? >> -- mike cullerton -- PHP General Mailing List (http://

Re: [PHP] Execute mixed php code from mysql?

2001-07-31 Thread mike cullerton
ion similar to include(), but can take strings > instead of files. If the content that was in the database and I include()'d > it, it would have the desired effect. > > Thanks in advanced > > - Kyle > > -- mike cullerton -- 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] issues with __sleep() and __wakeup()

2001-07-31 Thread mike cullerton
should be serialized? can this even be used when one (or more) of the variables is an object itself? thanks, mike -- mike cullerton -- 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] Attitude of B van Ouwerkerk

2001-07-31 Thread mike cullerton
an politley say to newcomers. "hey, nice to have you around. hope we can help you out some. two places you should go to get started are php.net and link.to.list.faq" let me know if there already is one. have a day, mike -- mike cullerton -- PHP General Mailing List (http://www.

Re: [PHP] Can't write to file via php, just via ftp...Can anyonehelp?

2001-07-30 Thread mike cullerton
interarchy as well. in interarchy, after you have uploaded the file, select the file and choose "Set Permissions..." from the Listing diresctory. then make sure the box for group write is checked. > Have a nice day, > > Stephan Huebner hope this helps, mike -- mike culler

Re: [PHP] mkdir

2001-07-28 Thread mike cullerton
may need to make them in two steps. i believe mkidir has a switch to force it to create any needed directories along the way. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To co

Re: [PHP] idiotic question

2001-07-27 Thread mike cullerton
on 7/27/01 3:46 PM, Jerry Lake at [EMAIL PROTECTED] wrote: > for the life of me I can't remember > how to convert a string to just the first > letter of itself i.e. $string = test > ...a function > $string_first = t > $word = substr($word,0,1); -- mike cullerton

Re: [PHP] array through url?

2001-07-27 Thread mike cullerton
y. www.domain.com/add.php?num[]=2&num[]=3&num[]=4&num[]=5 -- mike cullerton -- 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] How to get the current date and time in to the inputfield of a form with running time.

2001-07-26 Thread mike cullerton
> on 7/26/01 9:55 PM, Balaji Ankem at [EMAIL PROTECTED] wrote: > > Hi, dear friends, > How can i get the current date and time in the following input field. > > > > DATE: > > STATUS: > > > > > Thanks in advance. > > Regards

Re: [PHP] asp to php

2001-07-26 Thread mike cullerton
finitely have to edit the code it produces, but you'll find patterns and you can search and replace some. it's a great way to get some of your typing done if nothing else. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Using Variable Variables...

2001-07-26 Thread mike cullerton
ct is a > global variable... > maybe try global $_VARIABLE_, $$_VARIABLE_; -- mike cullerton -- 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] Session variable listing

2001-07-26 Thread mike cullerton
on 7/26/01 2:33 PM, Cole Tuininga at [EMAIL PROTECTED] wrote: > Is there a way to easily list the variables that are registered within > a session? while (list($key, $val) = each($HTTP_SESSION_VARS)) { do_something(); } -- mike cullerton -- PHP General Mailing List (http://www.p

Re: [PHP] Session - to restrict same user from two logins

2001-07-26 Thread mike cullerton
ution would be for php to do it by itself when the session > expires.. > instead of a boolean you could use a timestamp and update it each time a page is loaded. then a cron job could come by periodically and delete sessions older than some specified time. -- mike cullerton -- PHP Gene

Re: [PHP] IE -> View Source

2001-07-26 Thread mike cullerton
7;. GET http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd";> Untitled Connection closed by foreign host. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] newbie seeks template info

2001-07-25 Thread mike cullerton
ng--not too clearly, I admit--about > apps like Smarty and PhpLib and Pear, which I've heard so much about. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the lis

Re: [PHP] max_execution_time & header

2001-07-09 Thread mike cullerton
on 7/9/01 8:17 AM, Peter Schumacher at [EMAIL PROTECTED] wrote: > I still run into the max_execution_time!!! I thought it would be reset as I > redirect to another page. within your script ini_set("max_execution_time", $some_bunch_of_seconds); -- mike cullerton -- PHP

Re: [PHP] Post a form within a running php-script

2001-07-08 Thread mike cullerton
form? Or > some way to simulate the entering of the information and clicking of the > submit button? > i'm not sure if this is what you are asking, but i can have an url like http://mysite.com/?submit=click_me&opt=my_option and refer to those inside my program as $submit and $

Re: [PHP] Question about how to do this...

2001-07-08 Thread mike cullerton
from http://php.net/include An important note about how this works is that when a file is include()ed or require()ed, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. For this reason, any code inside the target file which should be

Re: [PHP] Global Variables -- why not have them?

2001-07-08 Thread mike cullerton
->query($query); if (!DB::isError) { do_something_cool(); } else { if (DEBUG) printf("\n",$rid->getMessage()) } -- mike cullerton -- 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] magic functions

2001-07-08 Thread mike cullerton
turning an array of variables to serialize. should i include the db object in this array? anyone have a simple example to start from? any help appreciated, thanks, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Re: when to delete a temporary file ?

2001-07-08 Thread mike cullerton
name of the file includes the session id. http://www.php.net/session -- mike cullerton -- 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] add user from the web interface

2001-07-08 Thread mike cullerton
your case) one option is to have the web application create a file, and then have a cron job as root come by and read the file and add the user(s). -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

  1   2   >