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] 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] 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:

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] 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] 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
>>> >>> 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 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] 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] 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] 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] 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.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] 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] 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] 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] $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] 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] 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] 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] 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] 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] 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] newbie has include path error & new problem

2001-07-01 Thread mike cullerton
> inclusion (include_path=") in unknown in line 0. >> >> I've tried putting in this include path in my php.ini file to no effect. >> Please help. I have several projects I'm working on that require php and I >> have no way of working on them on my development

Re: [PHP] mail function fails

2001-07-02 Thread mike cullerton
> > Any ideas as to what could be wrong? > > I am using the latest PHP version and am running Red Hat Linux 7.1 > > Ryan Shrout -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Showing an Image

2001-07-02 Thread mike cullerton
_query($sql); > $data = @mysql_result($result, 0, "PICTURE"); > $type = @mysql_result($result, 0, "FILETYPE"); > Header("Content-type: $type"); > echo $data; > > > but after this I also want to show some text info. How can I do this ? I > will have to

Re: [PHP] setuid

2001-07-02 Thread mike cullerton
me an help on how to run suid root > while i have script that run by apache > i had alread set the file like this > -rwsr-xr-x 1 root www 384 Jul 2 16:36 test > but no luck > > Thanks in Advance -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] newbie has include path error & new problem

2001-07-02 Thread mike cullerton
at the > prepend path was set incorrectly. > >> >> for your network problem, it seems that you didn't really achieve >> 'networking linux box to windows host' correctly. can you currently ping >> localhost? what does your route table look like? -- mike

Re: [PHP] newbie has include path error & new problem

2001-07-02 Thread mike cullerton
you on? what steps (specifically) did you take to 'set up networking'? -- 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] newbie has include path error & new problem

2001-07-02 Thread mike cullerton
None > eth0 199.33.57.3 None > > > Routing > > Default Gateway 199.33.57.7 > default gateway device eth0 > > > Again, I appreciate your help. > > best, > > daniel > > -Original

Re: [PHP] New on PHP, need help with sessions

2001-07-02 Thread mike cullerton
able. session_start() session_register("variablename") once set, the variables are available as $HTTP_SESSION_VARS["variablename"] or (depending on how php is configured) $variablename. on my macos x box, $variablename does work. > > Thanks in advance, > > Sincere

Re: [PHP] any reasons to compile apache instead of usingdistribution binaries ?

2001-07-03 Thread mike cullerton
ge, each of the next times are a piece of cake. when you use rpm's, you are stuck with the way they compiled it and you have to wait for a package to come out when a bug fix is released. curious, why do you think it's ok for your sysadmins to compile php but not the other stuff? -

Re: [PHP] New on PHP, need help with sessions

2001-07-03 Thread mike cullerton
depending on how php is configured) $variablename. > > I've run into this problem myself and it's very annoying -- any idea the > setting in php.ini that controls this? > > Thanks. > > --kurt -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing List (http://www.p

Re: [PHP] Troubleshooting syntax ?

2001-07-03 Thread mike cullerton
f reading through hundreds of lines > of code, hopefully catching the problem? -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

Re: [PHP] loading data into mysql from txt file from php

2001-07-03 Thread mike cullerton
s tab-delimted but could be reformatted. > > Right now the file is uploaded and after copy($new_file, $file_loc) > would like to refresh the db. > > unix box running php4 and mysql 3.22 and of course apache > > Thanks in advance, > clif > -- mike cullerton [EMA

Re: [PHP] Help Please

2001-07-03 Thread mike cullerton
OBALS); yes, but since you won't be 'referred' from anywhere, you won't see $HTTP_REFERRER :) > > Saludos... ;-) > -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [PHP] Help Please

2001-07-03 Thread mike cullerton
t;> $HTTP_REFERRER :) > > ouch! You're totally right! :-) > > P.D.: But the variable will be there, only that it will be empty, right? i don't think so. atleast not in my browser :( > > Saludos... :-) -- mike cullerton [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] image button troubles

2001-07-03 Thread mike cullerton
.. it still says it's "unable to open" the image I give it... > > hmmm.. > > Susan > -- 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 prevent people from downloading images

2001-07-03 Thread mike cullerton
ng^w using images without paying for them. it's a fairly involved process and definitely isn't exact. anyone else? mike > > Thanks in advance. -- 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] max_execution_time

2001-07-03 Thread mike cullerton
hey folks, i've got a script running into my max_execution_time. is there a way to override the value in php.ini from within a script, rather than increasing the time in php.ini? thanks, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] max_execution_time

2001-07-03 Thread mike cullerton
his is the correct link: > http://php.net/manual/en/function.set-time-limit.php > > -maxim maletsky > > > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 04, 2001 2:07 PM > To: mike cullerton > Cc: php php > S

Re: [PHP] writing a query that returns similar numbers

2001-07-04 Thread mike cullerton
Sort of like this: > > $sql = "SELECT rowid FROM numbers WHERE (mynumer is within 10 of number)"; > > > but I've gotten stuck do I have to do this: > > > $sql = "SELECT rowid FROM numbers WHERE (((mynumer+10) < number) AND > (mynumer-10) > number

Re: [PHP] PHP Run Command Line

2001-07-05 Thread mike cullerton
n as root if i can help it. being forced to type 'sudo command' always makes me think about what i'm doing. and this is on a box with no users. is this script being run from within apache or on the command line? -- mike cullerton -- PHP General Mailing List (http://www.php.ne

Re: [PHP] php binary ??

2001-07-05 Thread mike cullerton
parate executable > > something like #! /usr/bin/perl -w with a script except then for php. preface your script with #!/your/path/to/php -q > > Marc van Duivenvoorde -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] Printing a root link into HTML

2001-07-06 Thread mike cullerton
what do you mean by 'previous directory'? there's no real chronological order to directories. on 7/6/01 6:27 PM, Chris Anderson at [EMAIL PROTECTED] wrote: > To specify, I want to link to a file in a previous directory, none of those > methods seem to work for that.

Re: [PHP] chdir() help

2001-07-07 Thread mike cullerton
name."\n  "; > > if (chdir('e:\work\image')) { > echo "current dir is e:\work\image"; > } > echo ""; > } > } > closedir($dir); > ?> > - > > Please help me to fix the problem. Thanks. > -- 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] registering objects as session variables

2001-07-07 Thread mike cullerton
l you own using serialize? maybe i'm missing something easy... 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] Question: Processing files in directory and parsing...

2001-07-07 Thread mike cullerton
); $field1 = substr($buffer,0,x); $field2 = substr($buffer,x,y); $field3 = substr($buffer,x+y,z); ... where x is the length of the first field, y length of the second ... also, you may want to trim() the fields. i'm sure others around here can come up with something better. :) -- mike cul

Re: [PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread mike cullerton
on 7/7/01 7:38 PM, mike cullerton at [EMAIL PROTECTED] wrote: > on 7/7/01 7:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote: > >> So I need to know how to process the files in the directory and then how to >> process a few lines. The structure will always be the same and hav

Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread mike cullerton
"green"; > $myarray[5] = "blue"; > $myarray[6] = "red"; > > and i'd output "red", "blue" and "green", but not have multiple instances of > each. > > Thanks in advance! > -- > Aaron Bennett > -- mike

Re: [PHP] registering objects as session variables

2001-07-08 Thread mike cullerton
on 7/8/01 5:53 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > Hi mike! > On Sat, 07 Jul 2001, mike cullerton wrote: > >> hey folks, >> >> i'm trying to register an object as a session variable and feel like i'm >> chasing my tail. i either g

Re: [PHP] can't generate gif!!!

2001-07-08 Thread mike cullerton
on 7/8/01 10:51 AM, Tom Carter at [EMAIL PROTECTED] wrote: > I thought convert was an imagemagick command, rather than unix by default? > could be wrong tho... yes, but you can install it on a box without xwindows and still use it. a pretty cool tool. -- mike cullerton -- PHP G

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

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]

[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] 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]

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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]

  1   2   >