after authenticating a user and setting a session key what is the best way to make sure the user has the permission
getCalendarMonth($month,$year,$fmtstring)
Returns your basic 2d array for iterating.
hrm
available since when?
Been part of the PEAR Date package for years.
as in can i use that in PHP4 ?
ahh, PEAR
from pear search: Sorry, but we didn’t find anything that matches “date_calc”.
what is the easist way to check to make sure a varible is an integer
does anyone have any experiance with installing php on linux machines?
Three cheers for crappy search engines. The package is just called ‘Date’
is_int()
ALL`: Sure, apt-get install php5
cool
Or rather, libapache2-mod-php5
thanks
i’m so close to a solution though with my code already
well my problem is that i just need the sockets extension that is with php 4.3.11
but when i do a ./configure –enable-sockets
it doesnt install the sockets exentsion
atleast i cant find the sockets extension
and yes, i do a “make install clean” after the ./configure
I don’t believe the socket extension can be built standalone.
is there a quick command to compile al lthe extensions?
http://hashphp.org/pastebin?pid=24320
like –enable-all –with-all
something like that?
anyone got suggestions on how to accomplish that, but… correctly?
e.g. if for example you put + 1 on line 12, you get a completely blank month
i know why that is, but i’m not sure how to alter the logic to accomodate the beginning and end padding of the “blank” days
that code does, however, display the current month perfectly
i’d rather my code didn’t rely on PEAR and i also want to do this for the “academic thrill” if there is such a thing
nm figured it out
Ugh.
Stupid muppets who wrote this code used exec(“curl…”);
grrr.
I hate fixing old crusty poorly written code
meh, i fixed it actually, i’m pretty sure
So how can I set a multidimensional array again? $ParsedKeyWords[$guideid][$KeyWordsTemp];?
Kai_wp, did you try? did you check php.net (they do have a page on arrays)
$variable [][]
i could be wrong, i have never used them in PHP, but i have in C++ and php syntax is based kinda off of c++
ui could be wrong, i have never used them in PHP, but i have in C++ and php syntax is based kinda off of c++/u
[] is append, so your kinda ambiguous, it might work but its not what you expect
doesn’t work, I get blank page
dlaroche, i think you need to read the page on arrays as well
probably
_mcf-, don’t include() it, file_get_contents()
i’ve never declared an array, but i do know how to access them in PHP
edman007 how come include doesn’t work?
it gets into infinite loop?
include is not a function and it does not return the contents of a file.
include() gets the file and parses it
oh
and its actually a language construct that has no return value
do I get into infinite loop with include?
since it didn’t display anything
_mcf-: ?
_mcf-, probably
the file includes itself, then that file includes itself, etc
http://www.webcheatsheet.com/php/multidimensional_arrays.php
include.php has include(‘include.php’) ?
duryodhan yes
php allows you to do that ?
file_get_contents works except that newlines aren’t displayed. i guess I have to read the file line by line?
no and yes
duryodhan I didn’t get any errors
_mcf-: try require(‘index.php’)
yes. php allows that. include_once is what you use to prevent accidental includes
_mcf-: see what happens … does it give error?
_mcf-, file_get_contents() has the newlines, the browser is not showing them because you sent the html header per default, send the text header to make em show
cos I think your include got an error and stopped (not an infinite loop) , but include never throws a fatal error
$variable = array( array(“data”, “data” ), “more data” );
dlaroche, there are a lot of ways
edman007 what do you mean by text header? it’s html, so I’d need after each line