|
Word-for-word identical to Q&A here
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
How i can add template to php page ?
|
|
|
|
|
What do you mean with how can I add template to PHP.
Do you want to use a template for the visual part so that you can easily switch the part of the website visitors see. If so look into Smarty which enables you to create flexible templates and seperate the front-end look of a website from the back-end logic.
|
|
|
|
|
ok no problem u just learn how to write (html $ css) to php environment.
just look like
this is simple php date function we are use css on this output text:
////////////////////////////////////////////////////////////////////
$today = mktime(0, 0, 0, date("m") , date("d")-2, date("Y"));
/////////////////////////////////////////////////
echo "<b style='color:#006400; margin-top:35px; padding-bottom:15px; font-size:35px; color:#FF6600;
height:50px;margin-left:107px; cursor:default; padding-right:40px;'>".date("M",$today)."</b>";
echo "<b style='color:#006400;padding-top:15px; padding-bottom:15px; font-size:35px; color:#FF6600;
height:50px;margin-left:0px; cursor:default; padding-right:15px;'>".date("d",$today)."</b>"."<br><br>";
////////////////////////////////////////////////////////////////
another way :
use this code in your page.
include('yourpagefile.php');
|
|
|
|
|
Hi there
I have a slight problem which io hope someone might be able to help me with...
http://www.something.something/profile/index.php?profile_id=The Long Knives
As you can see this would not show as a proper link because of the spaces in the last bit of the url
is there a way that i could say use this
http://www.something.something/profile/index.php?profile_id=The_Long_Knives
And have some php take out the _ before the page opens, i presume this would be some sort of function in php but not being that up with it am not sure, also if the user puts the original url with the spaces it must use that.
Thanks you for any help or advice on the matter in advance
Regards
Ray
|
|
|
|
|
|
The better way is to use urlencode. Thats the best way to get rid of spaces.
|
|
|
|
|
When user visit www.site1.com i need to set cookie with time of visit.
Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time.
Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?
|
|
|
|
|
I found this[^] on stackoverflow.com via Google, maybe it will help you?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
You should find what you want by making use of a database session manager instead of the default one in php. You can google this and find a number of articles on how to implement this. Besides sharing the session data between different domains you can also use this for load balancing multiple servers.
|
|
|
|
|
And how would you identify a session without setting it in a cookie that multiple sites can access. (Which cannot be done btw.)
You can set cookies for multiple of domains, or even easier call an image (PHP file) of another website that sets the cookie for you. (EG: call example2.com/images/cookie.php?mydta=1 from example.com)
|
|
|
|
|
you forgot that a session ID can also be stored in a url, which can be passed between the user and server. all session data would have to be stored in a common session database and you may still need to make custom session functions.
|
|
|
|
|
nevermind i found the way to do this!
|
|
|
|
|
and it would be good for you to post it here, so others can benefit.
|
|
|
|
|
i will post here once i get my project full tested and finished!
|
|
|
|
|
|
Hello All,
I am developing outlook addins using python programming lang. and I am not able to fetch Message-ID of the selected Mail.
I have googled and read lot of post and reply but didn’t get any satisfying solution and I don’t; want to use any other Property except Message-ID.
My whole Outlook Addin is Based on logic of the MessageID cause I have mine own server and I want dump that mail to My server and using the I am creating contact and documents on my server, in addition to this I have same Plugin for the Thunderbird so I want to both plugins to work same way. So I want to fetch Message-ID so I can use both plugin without thinking of OS weather it is Windows or Linux.
Is their any way I can fetch hat Message-ID.?
If it possible in some other programming lang than also please do reply on this.
Waiting for Positive reply
RegardsThumbs Up
Thank You... Smile
|
|
|
|
|
I have an array with 5 items and I want to increase index of array everytime when browser get refresh. In case when array is last index then next index whould start from first item.
Regards.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
To do this you will need to store the index that you are currently visiting in the session of the user, unless you want to include it in every link which won't cover a refresh (F5 button).
Storing it in the session could be done simply by:
session_start();
if ( !isset($_SESSION['index']) ) {
$_SESSION['index'] = 0;
}
$_cur_index = $_SESSION['index'];
$_SESSION['index'] = ++$_cur_index;
Note that if a browser uses caching this might not work, as the browser may never issue a request to the server.
|
|
|
|
|
Beginner ask some questions ?
- Is there any tools to develop PHP App like visual studio ?
- And in ASP.Net I am make Master page to add the design to all web pages ...How can i do somethings like this and what is the best to do ?
|
|
|
|
|
Honeyboy_20 wrote: Is there any tools to develop PHP App like visual studio ?
See my posts a few threats below.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Where ? I can not reach to post.
|
|
|
|
|
|
i m new to the linux. and have a knowledge of c,c++ but want to learn linux programming.
please provide me starting lesson about c programming in linux environment?
|
|
|
|
|
http://www.advancedlinuxprogramming.com/alp-folder[^]
The PDF's are pretty good One even describes how to write a server in C
Good luck!
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|