-
Posts
1,285 -
Joined
-
Last visited
Never
Everything posted by ohdang888
-
open and get contents of a word document with PHP?
ohdang888 replied to ohdang888's topic in PHP Coding Help
thanks for responding! That script works, but it doesn't preserve formatting (underlines, bold, etc.) Any ideas? -
I am running PHP 5 on a linux server. I want to be able to open a .doc or .docx file with PHP (or any way possible, for that matter) in order to grab the contents from it. How can i do this? I know COM classes work with windows for this, but i have linux. Any ideas are greatly appreciated. Thanks.
-
http://lmgtfy.com/?q=ajax+and+php
-
I've seen some feedback tabs like the one here: http://www.feedbackify.com how do they get that image to stay put while a user scrolls the page? thanks
-
the slider thing i have on the main page of my site works in everything but IE. it used to work in IE but doesn't now. I haven't done anything to do it in awhile any thoughts? http://www.theBlonk.com thanks
-
I have dates in this format: Wed, 26 May 2010 14:59:42 +0000 how can i get the mysql datetime or unix timestamp from this date? Thanks
-
on a lot of rss feeds, theres a tag called <content:encoded> this is the post itself </content:encoded> i use xml_parse_string, etc. and have converted that into an array (but i still have it saved in an object too anyways... how do i get the data in "<content:encoded>"... simply calling one for <content> doens't work. thanks.
-
yes. this is a rough example: class first { public $name; function __construct(){ $this->name = "it works!"; } } class second { public $other; public function go(){ echo $this->other->name; } } ////////heres the rest: $first = new first(); $second = new second(); $second->other = $first; $second->go(); basically, you're storing that other instance in a global variable of another instance
-
Re: I need to put this in the form of a function, help!
ohdang888 replied to canadian_angel's topic in PHP Coding Help
dude we need way more information this this. try to put what in a function? are you trying to do with this function? whats it doing now? are there any errors? -
alright so i had some font issues but i think i've fixed them now. Check out my site and i would appreciate any feedback you have at all. http://www.theBlonk.com Also, could you tell me this: 1) can you tell what the site is about and what it does? 2) if you blog, do you think you would register? (i have it closed now btw) Try our the stats page: Email: demo password: demo http://www.theblonk.com/account/stats.php?bid=1 Thanks!
-
in your SQL query, in the Where clause, you need something like this WHERE (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`date_added`)) < (60*60*24*182) that set of numbers is the number of seconds in half a year (ish)... so whatever you do needs to follows this logic: number of seconds since epoch to right now - number of seconds since epoch to the date added must be less than the number of seconds in 1/2 of a year (60 seconds * 60 min * 24 hr * 182 days)
-
i solved it by pulling 20 records from the filemanager rather than 10. pretty stupid ha but actually i do have quite an error that i can't figure out now, and was the reason i was playing with its location.. i talk about it here: http://www.phpfreaks.com/forums/index.php/topic,301022.msg1424648.html#msg1424648
-
by using the backslash "\" something like this: echo "<div id=\"test\"> yup</div> ";
-
have you tried yourself?
-
I have this simple line in my .htaccess file Alias /phpmyadmin /usr/share/phpmyadmin and it keeps on giving me 500 internal server errors whats wrong?
-
nvm solved it. gah.
-
So i was fooling around with my .htaccess file on my var/www/ folder of my VPS account, and when i edited it i accidently moved it to the main directory ("/") and when i go there to find it, its not there. But i know its there because when i try to create a .htaccess file in that directory it gives me an error saying it already exists, Also i try to move a new empty one and it says i can't overwrite it. Anyways, its become quite a problem because now i get a 500 interal error on all my web pages. Gah. and i can't figure out how to fix it. Any ideas?
-
I have this query: SELECT COUNT(impression_id) AS total FROM impressions WHERE widget_id='$widget_id' GROUP BY YEAR(datetime), MONTH(datetime), DAY(datetime) What i am trying to do is get a COUNT of impression from each individual 24 hour day. so.. for this table i have 2 dates right now (they are in datetime format) lets say 2010-05-06 and 2010-05-07... i want the count for each day... right now... all its returning in total = 1 ... but i have 2 dates with about 5 impressions each in them
-
post the code of both files
-
your error has nothing to do with the query itself, its the connection. are you connecting the to database before this code is executed?
-
do you do graphics? i suck at em
-
http://lmgtfy.com/?q=php+basic+tutorials
-
Thanks. that font is actually white... so you know of any way to have better contrast? I use gimp.