Search Results

Showing results 1 to 25 of 25
Search took 0.03 seconds.
Search: Posts Made By: jakesee ; Forum: PHP and child forums
Forum: PHP Jul 8th, 2009
Replies: 3
Views: 326
Posted By jakesee
What do you mean by properly and what is it showing now?

you will need to use the date() function and its formatting string.

http://sg.php.net/manual/en/function.date.php
Forum: PHP May 9th, 2009
Replies: 2
Views: 481
Posted By jakesee
Forum: PHP May 9th, 2009
Replies: 2
Views: 481
Posted By jakesee
Hi,

I have tried to find out on this, but I cannot be sure.

Anyone knows for certain fopen and file_get_contents (or any similar functions) will generate an entry in the target domain's website...
Forum: PHP May 7th, 2009
Replies: 4
Views: 433
Posted By jakesee
Like I said, everytime the update takes place, the permission resets. So it doesn't work out. =(
Forum: PHP May 6th, 2009
Replies: 4
Views: 433
Posted By jakesee
I do not know how to set it programmatically.

Setting it via FTP is useless because each update rewrites the permission.

by "update" I mean running file_put_contents() on the file using the web...
Forum: PHP May 5th, 2009
Replies: 4
Views: 433
Posted By jakesee
Hi,

I am setting up a cron using php.

I have a file which I want to update by doing file_put_contents() on it via cron and via web browser (manual).

everything via web brower works fine, but...
Forum: PHP Apr 30th, 2009
Replies: 0
Views: 277
Posted By jakesee
In a data/view architecture or template engine, should HTML forms be part of view or data?

I tried several methods to separate HTML form design and form names (variables) but seem like a chicken...
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
Oh.... so that works... ok, i learnt something new today. thanks!

but for me to use that will mean breaking up old code and base classes... =(

I think I can proceed from here now. thanks alot...
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
yah. not variables, it's vars. my typo error in the post.

no errors but not doing what I want. I have read the magic methods and all seems like none of them do what i want. so far, var_dump,...
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
finally! I actually given up on this thread because I thought no one would come inside a thread so many replies.

thanks for the insight ShawnCPlus. Unfortunately, that function doesn't do what I...
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
I do not want to argue with you, but in case you think I am sneaking around, I would like to inform you that I have to give you a negative reputation now because you are not answering the question.
...
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
Wikipedia is not a bible and standards change. I would appreciate if you can answer the question. If you do no know, its ok. thanks for the input.
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
That's not necessarily the case.


public function AddVar($name, $val)
{
$this->$name = $val;
}


So do you know how to get the list of variables? Please?
Forum: PHP Apr 30th, 2009
Replies: 13
Views: 1,406
Posted By jakesee
Hi,

Without first knowng what public class variables the class has, how can i display a list of all the variables in that class along with the values?

print_r(new MyClass());

will display...
Forum: PHP Apr 24th, 2009
Replies: 5
Views: 1,212
Posted By jakesee
or you can do a fopen HTTP POST from the email_order.php


$fp = fsockopen($host, 80);

// send headers
fputs($fp, "POST /cgi-bin/webscr HTTP/1.1\r\n");
fputs($fp, "Host:...
Forum: PHP Apr 20th, 2009
Replies: 4
Views: 414
Posted By jakesee
XML is a method of writing a document, not a template document that you just insert values and then dislay.

in this regard, you need to write your own XML.

MySQL is the database and SQL is the...
Forum: PHP Apr 20th, 2009
Replies: 4
Views: 410
Posted By jakesee
// this code will (should) do what you are asking for, but it's not the best method imo.
$final_array = array();
for($i = $val; $i >= 1; $i--)
{
$array = "array". $val;
$co = "co".$val;...
Forum: PHP Apr 20th, 2009
Replies: 4
Views: 414
Posted By jakesee
// create the XML data
$xmlData = CreateSomeXMLFromSQL();

// tell the browser its XML
header("content-type: text/xml");

echo $xmlData;
Forum: PHP Apr 20th, 2009
Replies: 4
Views: 410
Posted By jakesee
// get number of colors
$val = $_GET['val'];

// $val starts from 1
for($i = 1; $i <= $val; $i++)
{
$color = $_GET["col".$val];
echo $color;
}
Forum: PHP Apr 20th, 2009
Replies: 1
Views: 280
Posted By jakesee
the most correct way to do it is probably through the use of a 301 .htaccess redirect.

create a file known as an .htacess file with the filename ".htaccess" using notepad (or any ascii text...
Forum: PHP Apr 18th, 2009
Replies: 2
Views: 748
Posted By jakesee
if the data values were populated by PHP and the HTML gnerated by PHP, the sums can be calculated with a for loop.

if this is just a plain HTML somefile.html, then at best you can use clientside...
Forum: PHP Apr 17th, 2009
Replies: 5
Views: 864
Posted By jakesee
initially i needed to block out access to some websites on the local windows systems, hence I used the host file method to "alter" the IP addresses. (i do not know any other way)

then I began...
Forum: PHP Apr 17th, 2009
Replies: 5
Views: 661
Posted By jakesee
never say "simple" until you know how to do it. nothing is ever so simple:

You will need to store all the blog posts which consists of all the information such as title, date and body into the a...
Forum: PHP Apr 15th, 2009
Replies: 5
Views: 864
Posted By jakesee
Thanks for your answer. =)



I was only thinking maybe there's a way to put an overriding host file in .../usr/etc/hosts so that the system checks there before the global one.
Forum: PHP Apr 15th, 2009
Replies: 5
Views: 864
Posted By jakesee
Hi all,

ok this is quite general in a sense but there's no other approperiate forum to put this so here goes:

When thinking how the langauges resolve IP when given a hostname, am I right to say...
Showing results 1 to 25 of 25

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC