no problem vashafnas.
Does that answer your question?
-odobo...
User Profile
Collapse
-
-
vashafnas -
well it's well past my bedtime.. I will be on tomorrow about 12 hrs from now..
hope that what i posted helps.
-odoboLeave a comment:
-
hey yasmine...
no problem..
I wrote the function popUp, it accepts many parameters...
the only crutial ones that you need to supply are the first 5..
as follows:
1. the url to open in a pop up.
2. the width you want the pop up
3. the height you want the pop up
4. the location from the left of the screen in pixels
5. the location from the top of the screen in pixels.
now the rest...Leave a comment:
-
try something like this
[PHP]/**
*returns a value that determines weather the user is still within a trial period
*@param string $EndDate the date the users trial ends
*@access public
*@return true if the end date is less than the time called
*/
function IsUserStillFree ($EndDate)//2008-02-29 12:30:00
{
$cd=getdate();
$d=explode(" ",$EndDate) ;...Leave a comment:
-
-yasmine
php is server-side scripting.. meaning that the code is processed by the server not by the client. You need to use client side code.
just use javascript.
like so:...Code:<script type="javascript"> function popUp (URL,Width,Height,Left,Top,Toolbar,Resizeable,ScrollBars,MenuBar, StatusBar,Resizeable) { Toolbar = Toolbar==null||Toolbar==""?1:Toolbar; ResizeableLeave a comment:
-
vashafnas-
can you show me what the date format looks like for the startdate and enddate fields?
-odobo...Leave a comment:
-
anyone?? has anyone seen this?
I'm a .net developer and am just getting into php so any comments would help.
do I need to rephrase??
thanks -
odoboLeave a comment:
-
ok - maybe that was a little too much for php-- it's actually a lot easier than this.. just do this...
[PHP]$filename = "ftp://tgftp.nws.noaa. gov/data/observations/metar/stations/KMEM.TXT";
$lineNumber = 1;
if (!($filearray = file ($filename))) {
print "Can't open file $filename";
}
else {
while (list ($line_number, $line_contents) = each ($filearray)) {...Leave a comment:
-
flydev -
well i'm really a .net developer and do not have a lot of experiance with php, but if I understand your question correctly, then I understand the logic of what you are trying to accomplish.
first you need to get the data into your application. in .net i would use a web request object to make my request for the file (using the ftp url you provided)... I searched around for a webrequest object for php and could not...Leave a comment:
-
instance creation problem.
Hi all,
I am using a static method to instantiate a member of my class (the member happens to be a class too). When I assign to that member, nothing seems to be sticking and all properties inside my member are null. But if I directly create my member without using a static method to create it, I have no problems.. heres an example... [using php 4.4.4 by the way so there are no descriptor keyowrds *static*]
[php]
class...
No activity results to display
Show More
Leave a comment: