Search found 28 matches

by asif_phpdn
Sat Oct 27, 2007 8:39 am
Forum: PHP - Code
Topic: Read the content of the file randomly
Replies: 3
Views: 433

Read the content of the file randomly

How can I read the content of the file(i.e,the sentences of a text file) randomly?
:?
by asif_phpdn
Sat Sep 29, 2007 12:12 am
Forum: PHP - Code
Topic: Array function problem
Replies: 4
Views: 461

Array function problem

I'm facing a problem with array functions. $menu=array('breakfast' => 'butter and bread','lunch' =>'normal','dinner' =>'dish and salad'); echo is_array($menu); echo "<br>"; echo array_values($menu); the problem is array_values() function return just "Array" but not the values. I ...
by asif_phpdn
Sun Sep 09, 2007 7:58 pm
Forum: PHP - Code
Topic: Load a page dynamically
Replies: 4
Views: 459

How far I could understand is you need a page that already exists. But If I want a page load reading the content of a file then waht to do???
by asif_phpdn
Sun Sep 09, 2007 11:34 am
Forum: PHP - Code
Topic: Load a page dynamically
Replies: 4
Views: 459

I think there are more than a solution... One possiblity is that when you click the button you always call the same page with a parameter that tell which page you want to call and in this page you put a redirect line. Supposing you pass the parameter "page_name" with the GET method, in th...
by asif_phpdn
Sun Sep 09, 2007 10:28 am
Forum: PHP - Code
Topic: Load a page dynamically
Replies: 4
Views: 459

Load a page dynamically

I want to load a page dynamically after click the next button. How can I do that? Any help :roll:
by asif_phpdn
Thu Sep 06, 2007 12:21 pm
Forum: PHP - Code
Topic: html to php
Replies: 28
Views: 2797

convert html to php. but this converting something like simple to complex, happy to sorry, ........ 8O
by asif_phpdn
Thu Sep 06, 2007 12:15 pm
Forum: PHP - Code
Topic: Sorry, but only users granted special access can post topics
Replies: 7
Views: 705

Then search tutorials. :arrow: :idea:
by asif_phpdn
Wed Sep 05, 2007 7:13 pm
Forum: PHP - Code
Topic: Sorry, but only users granted special access can post topics
Replies: 7
Views: 705

Re: Sorry, but only users granted special access can post to

The Phoenix wrote:
Post a proposed tutorial[/quote]

What do you mean by proposed tutorial???

If I need tutorials or documents on php then where can I find that? Doesn't Tutorial section of phpdn stand for that?
:o
by asif_phpdn
Wed Sep 05, 2007 1:17 pm
Forum: PHP - Code
Topic: Sorry, but only users granted special access can post topics
Replies: 7
Views: 705

Sorry, but only users granted special access can post topics

Why not I'm permitted to post a topic in Tutorial ???
by asif_phpdn
Wed Sep 05, 2007 11:42 am
Forum: PHP - Code
Topic: html to php
Replies: 28
Views: 2797

Rovas wrote:Just put

Code: Select all

<?php
echo 'content of file' 
//or 
print ''
?>
Then just put the html code in echo and that brings php from html???
by asif_phpdn
Mon Sep 03, 2007 9:00 pm
Forum: PHP - Code
Topic: html to php
Replies: 28
Views: 2797

html to php

Can I convert any html file to php?
by asif_phpdn
Mon Sep 03, 2007 8:48 pm
Forum: PHP - Code
Topic: variable substitution
Replies: 21
Views: 1797

volka wrote:try

Code: Select all

<?php
$i = 1234;
echo <<< dfh
- $i -
dfh;
echo '- $i -';
echo "- $i -";
see also: http://de2.php.net/string
heredocs and double quote print the value of i.
single quote print what is between the quotes not the value.
by asif_phpdn
Sun Sep 02, 2007 8:33 pm
Forum: PHP - Code
Topic: variable substitution
Replies: 21
Views: 1797

volka wrote:try

Code: Select all

<?php
$i = 1234;
echo <<< dfh
- $i -
dfh;
echo '- $i -';
echo "- $i -";
see also: http://de2.php.net/string
OK. I'll try and tell you immediately.
by asif_phpdn
Sun Sep 02, 2007 1:39 pm
Forum: PHP - Code
Topic: variable substitution
Replies: 21
Views: 1797

:D Thanks everybody. I've almost done. Thanks again for replies. But I've another question.

In every example everybody used single quote. But what about double or heredocs (still I'm not clear about this 8O
) ???
by asif_phpdn
Sat Sep 01, 2007 10:32 pm
Forum: PHP - Code
Topic: variable substitution
Replies: 21
Views: 1797

volka wrote:
asif_phpdn wrote:Why a variable need to parse to it's value especially for string???
Let's try it the other way round, shall we?
What happens here

Code: Select all

<?php
$i = 'little';
$s = 'Mary had a ' . $i . ' lamb.';
echo $s;
?
just concatenate. Anything more?