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
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,
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
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??
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...
>
&
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.
>
>
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
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/)
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
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]
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
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?
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
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]
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
>>>
>>> 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"
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
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]
>> 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
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
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:
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
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]
-
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
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
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
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
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]
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
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
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
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
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]
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:
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
#!/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
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
in message
>>>>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>>>> See php.net/strcspn
>>>>>>
>>>>>> On Mon, 1 Oct 2001, Tim Ballantine wrote:
>>>>>>
>>>>>>> Hello,
>>>
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
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
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]
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
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
; 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
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]
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
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
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
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
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-
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
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
> 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]
_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 "$
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
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
#x27; AND
> PASSWORD = '$PASSWORD'");
>
> if ($row = mysql_fetch_array($res)) {
> $NAME = $row[NAME];
> session_register("NAME");
> }
>
> ...
>
> Header("Location: menu.php");
>
>
>
> menu.php:
>
> session_star
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
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
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.
>
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
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]
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
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
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
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]
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
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.
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]
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
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
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]
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
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
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
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
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,
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
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://
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]
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]
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.
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
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
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
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]
> 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
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
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]
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
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
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
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
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
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 $
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
->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]
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
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]
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 - 100 of 129 matches
Mail list logo