Looking For A Highly Modular Time Manager/task Manager System
I'm looking for a highly modular time manager/task mananger which is (of course!) written in PHP.
Any suggestions?
Btw. the system shall be open source developed under a GNU licence or such as we - a web developing tem - plans to fiddle with the code and integrate it in another to-come content management system...
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Htaccess Manager?
I'm looking for a script that could administer htaccess scripts for several folders. Our website has over a hundred folders which need protection, and it would just fabulous if there was a script that could make it all happen from the same front-end. The server is a Windows-server, running php5. I've searched hotscripts.com, but all there was were either for a single folder or just didn't work.
Webhosting Manager App
I am tasked to develop an CPanel like web app and I am stuck. Stuck at the start. I've downloaded a few others open source control panel hosting apps (vhcs, gplhost, virtualmin..etc) to give me inspiration. I know what to include, but the problem is how to make it work. I am not relatively new to linux, for i am using it since as an office workstation for the past 4years. With the help of 'man' and 'google', i am able to modify confs of different services. the real question i am wanting to ask is how those amazing CP/WH Managers able to modify the confs without 'root' or using a 'sudo'. i am implementing it on a CentOS4 distro.
Download Manager
Ive written quite a complex download manager using PHP MySQL and when the user clicks the download image i call a script like so download.php?file=[filename] Ideally i would like the page to stay static, im pushing the file to the browser with a META TAG and the page goes blank, i cant redirect with an header(); because im using sessions and i get loads of errors. Ive seen loads of download sites that dont need another page to redirect to, how do i keep the same page and allow the file to be downloaded.
File Manager Acting Up?
The thing is that I'm developing a file manager at the moment, I'am however having a couple of problems with opening directories and one other small issue too. Can anyone see the problems with this code : if(!isset($filename)) { $current_dir = getcwd(); $dh = opendir($current_dir); while (false !== ($files = readdir($dh))) { $dir_listing[] = $files; } sort($dir_listing); echo "<font color=white><b>CURRENT DIRECTORY:"; echo $current_dir; echo "</b></font>"; } else //this is the part where I'm having trouble, for the 2nd and susequent changes of the dir. { chdir($filename); $current_dir = getcwd(); //echo $filename, "<<filename "; //$goTo = "$script_root/$filename"; //$goTo = "$current_dir/$filename"; //echo $goTo, "<<< go to is "; //echo getcwd(); //$current_dir = getcwd(); $dh = opendir($current_dir); while (false !== ($files = readdir($dh))) { $dir_listing[] = $files; } sort($dir_listing); echo "<font color=white><b>CURRENT DIRECTORY:"; echo $current_dir; echo "</b></font>"; } $filename is the name of the directory to open and get info on it's files and stuff. When I load filemanager.php, the directory it is installed into is used and everything works as normal, but then if I go to another directory such as .. everything works normal, however when I try to change back to the orig dir or to another dir from .. it trys to open it relavtive to the orig dir. I hope you know what I mean. Does anyone know how to fix this. Also when I try to display the current_dir, in windows it works as expected but on unix it gives my /home/.falcon/username/folder1/folder2..... where does this ./falcon thing come from. I would use path_translated thingy but it does not work on Windows systems.
FedEx Ship Manager API
I was was wondering if anyone had experience using FedEx's Shipping API's. Is their any online resources? From what I have seen (which isn't much) there are two APIs that I am interested in; one using XML; the other using a SDK developed in C. Either, I assume can be interfaced with using PHP.
Robust Session Manager
I'm trying to create a robust session manager which does not rely on PHP sessions. I'm aiming to put it online as a free script when it's polished. The code below is designed to be included at the top of every page and uses the database table shown below. By relying on neither paths nor cookies this should be a more robust solution to PHP ecommerce. Links are written: http://www.domain.co.uk/page-script/pagename/session/ page-script = script to build page pagename = variable passed to page-script to load content from database (e.g. 'homepage' could be an index entry in a sitetext table) By adding an .htaccess file with: <Files page-script> ForceType application/x-httpd-php </Files> In the document root the rewriting is done automatically. This does not require any access to httpd.conf or mod_rewrite which many shared hosting users do not have. An added advantage is that it is search engine friendly, many search engines do not like indexing URLs which are clearly database driven, i.e. page.php?var=345&var2=4589 Anyone have suggestions/opinions on this method of tracking sessions? Code:
Writing A Kind Of Download Manager In PHP
I'm writing a kind of download manager. Now the problem is that all the files are on different servers with different extensions. I'm quite new (not totally) to PHP and I cant find the solution. I've tried headers, but they only work on same server as download.php.
Error Msg Trying To Play With Sqlite Manager
error msg... the procedure entry point spprintf could not be located in the dynamic link library php4ts.dll i dumped the contents of the download of sqlitemanager in a web server directory. at first it couldnt find the sqlite extension so i went to the php website and retrieved one and placed it in the extension directory. now i get this message and i dont even have php4ts.dll installed on my machine. i have a php4ts.lib i believe. i'm wondering since the version of php i have on my machine didnt already have this extension set up ready to go maybe i need a newer version. php works fine on my machine when i am not trying to use this new program. this sqlitemanager will give me a few more features that i wouldnt get unless i bought sqliteplus. programming is just a hobby for me and i dont make any money doing it. right now i am learning tcl/tk with sqlite to practice making a gui database. that is what led me to the new sqlitemanager. there was an sqlite browser but that didnt let me execute sqlite queries.
Creating Download Manager For Multiple Files
Has anyone run across some sort of download manager to be able to download multiple files at a time via http with PHP? I run a mp3 site and I would like to be able to allow people to download whole folders at a time basically the same functionality as ftp but with http. It would be kind of like the smart download thing that netscape has but cross platform compatible. Any ideas?
Reccomendations For A Good File Manager Script.
I would like a nice php based file manager script so when someone goes to a directory they can see the contents and be able to download files. Currently my Apache can do this but the rows are limited to 25-30 characters long and that makes identification of files a little hard. I know there are an array of files out there which is why i am asking for recommendations. :)
Warning: SQL Error: [Microsoft][ODBC Driver Manager]
Cannot get an ODBC (or MSSQL) connection to MS Sql Server 7. Using a system datasource and it connects fine, but PHP does not like it. I've had no problem with NT4 but Win2K is another story... Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:inetpubwwwrootindex.php on line 8
Looking For A Database-driven Email "contact Manager" Application
I'm going to be collecting lots (a few thousand) email addys. Each of these people will be interested in recieving mail on one or more topics, with an open ended and growing number of topics. Mailman with a BD application behing it might be ideal as it would let users add and delete themselves and each topic would have it's own email list name identity.
Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let users to reach out to all recipient on the list by simple send the email to a specific maillist- address. Mailman has this functionn but as a just got a webserver account I can't use mailman nor install it.
Time Online User System
I'm building something special but dont really know whats the best way to start this i want to messure time online from users that signup for it So i can make a toplist of the best visitors that where online and active But how do i messure time and how do i abort it when they are not active for a <? while ?>?
Is PHP Suitable For This Task?
I have a project that resulted eventually in a few tousands of HTML-files on the following form. file name: F1717.HTML ---------------------------- <html> .... <h1>Text to the F1717-object</h1> <img src = "../images/img1717.gif"> <embed src="../movies/f1717.mov"> </embed> .... </html> Above that i have a, of course, a few tousands of MOV and GIF stored as well. It's all more or less finished but the maintaince is a bitch. What i wish to do is to use something, let's call it MOC as in Method Of Choice, that will let me storage all data in a more convienient way. Now, to the main question - is the combination PHP/SQL a suitable choice for that task? Is there a better combination? I have a few years experience of Java but i'm rather sure that the users won't have it installed nor will the bunch be able/willing to do it.
Launch A Background Task From A PHP Script?
For example, when a user posts on my message board, it may fire many e-mail notifications to other users, and other tasks. I want the posting confirmation page to end displaying quickly, without waiting for those notifications or other tasks to complete. So basically what I want is to launch 'background.php' from 'main.php', with the user seeing only the output of - and waiting only for the end of - 'main.php'. Without the need to wait for the end of the possibly long 'background.php', like if I had simply included it in 'main.php'. According to the PHP Manual, the function register_shutdown_function() was the solution "in PHP 4.0.6 and earlier under Apache", but "since PHP 4.1 the shutdown functions are called as the part of the request" so that PHP waits until the shutdown functions are completed before closing the connection to the user. E.g. in PHP 4.1+ this <?php function background () { echo 'Starting background task... ' // Do something long that I don't want the user to see or wait for sleep(5); echo 'End of background task. ' } echo 'Starting main script... ' register_shutdown_function('background'); echo 'End of main script. ' ?> will output: Starting main script... End of main script. Starting background task... End of background task. I want a way to output only: Starting main script... End of main script.
Modular PHP
I am about to write some back end software for my business. I want a system that I can create invoices, clients etc... I can do this no problem. However I want to write it in modules so its extendable in the future. Like someone else can write a module for it and it can plug stright into my system. I can't figure out a good way to do this in php. I was thinking of hooks or something, but PHP does not support this. Does PHP 5 have anything like this? Or does anyone else know a good way to do it in PHP 4?
Strange Characters When Script Run By Scheduled Task
I've written a script that is run on a Windows server which gets headlines from a remote webpage, and I'm using a scheduled task to run it on a regular basis. The problem is that swedish characters (åäö) gets replaced with other characters.Example: Quote: Boverket sõger ja till ICA Maxi. v- och mp-r÷ster hotar budgetf÷rslaget. When I run the script from the web through my browser, it works fine. This only happens when I run it with a sheduled task.
Modular Programming?
I still have a difficult time seperating design from logic... I have tried to "move" code (that can be "moved") into functions; which I've heard are *much* faster than classes (can anyone confirm this?) But, especially when querying a data, I find it hard to return result w/o including any design (html) aspect into php or the functions. i.e. function site_sidebar_show_cats() { $sql="SELECT ..."; $result=mysql_db_query($db_name,$sql); if (!$result || mysql_num_rows($result) < 1) { $display_cats = ' <FONT COLOR="red">Error: no categories</FONT> ' return $display_cats; } else { while ($row = mysql_fetch_array($result)) { $display_cats .= '<FONT COLOR="blue"><A HREF="page.php?". $row['categories_id'] .'/">'. $row['categories_name'] .'</A></FONT> ' } return $display_cats; } } This was just a quick scribble for demonstration. If I wanted to use this function (retrieve categories) from xml or even flash, I'd be in trouble. How can I truly seperate logic from design? Also, I've heard of script where people have programmed them (modularly) where they could "plug-in" new features / components without any changes (or very few) to the original script. Where can one learn this kind of programming?
Modular PHP Websites And Macromedia Contribute
I have been "asked", aka ordered, to do some research into Macromedia Contribute. From what I can tell, it's a nice enough piece of software. Does everything a CMS should, within reason of course. Anyway, I make my websites very "modular". This is how I set them up. I have in the root of my website a .htaccess that redirects any URL request to the index.php, e.g. URL request of "www.mydomain.com/somepage/?test=true" is made into "www.mydomain.com/index.php?a=somepage/" and the query string is passed too. I then have the index.php load in a set of PHP classes that builds a web page from templates and MySQL DB information. Now, will I be able to get Contribute to edit this kind of system or should I look at changing how I build my sites for this upcoming project?
Making A Site Template (or Modular)
I don't wish to rely on a pre-done system (like FastTemplate, etc) to create what I want, for one, so I can learn PHP; and also what I wish to do, I believe is simple and doesn't call for something overtly complex (plus, the server the site wil be hosted on does not have SQL or database integration that the client will pay for). So, I'm stuck on how to easily create this. I know most lingo to create this in PHP, but not sure how to string it all together to actually work. I've created all the modules (seperate pieces - like nav, subnav, headers, content, footers, etc), but not sure how to get these to display without creating the usual pages. I'd rather things be used based on what the user does (or where they navigate); having a shell page that displays the correct subnav, content, etc; based on where you click to go ... I've tried this but I'm not sure what I'm doing. http://stage.jpauldesign.com/chca/html/about.php I have all the pieces, but what do I do in the subnav (say, Welcome) on the link to make it display those pieces that are waiting to be called (with if statements and variables). I know this seems far reaching. What I have happening is the modules loading and only displaying things if a variable is met (i.e., if ($page=="about") ... or if ($sub=="welcome")... ), but how do I get those variables to function based on what a user clicks - what has to go in the <a href> tags? How do I set the variable name through what you click? Is it possible? Or is it best just to do it the old way of creating all the pages .
"Modular Site" Mod Writers Name Vars Or Use Ident Supplied By App
I'm writing a test "modular site". So far I have created an App class, a Module Manager class and a couple of test modules. The Manager looks in a directory called 'modules' and then for every ..php file is try to create a class of type <filenameminus the .php, so eg. for testmodule.php it tries to create a class "testmodule" and puts it into an array within the module manager called $_modules Module Manager has a dispatch_message function which accepts an ID for the type of message to send, which recurses through the modules in $_modules and uses their ReceiveMessage function to send them the message. example: public function dispatch_message( $message_id ) { foreach ( $this->_modules as $module ) { $module->ReceiveMessage( $message_id ); } } This is all working well and good, the thing I'm wondering about is when modules want to postback information, should i rely on module users naming their form inputs specifically to their module, or should my app (when register the modules) supply a module with a unique 'ident' that the module writer should then check for in their code and all for in their forms etc. eg., should i force module writers to make forms as such: <input type="text" name="<?phpecho $mymodules->ident()?>_username" value="" /> How do these modular sites normally differentiate from one modules POSt to anothers?
Building A "modular" PHP Site
Not really a specific PHP problem this, but... I have been pondering over building a "modular" site which accepts add-ons built by other people. I was wondering if anyone has any links to any reading material on how you build this kind of facility into your site? Obviously I could take something like Mambo's source and try to fathom out how their com_ type modules work, but I once looked at Mambo/Joomla's source and the code was a lot to take in in one go. Does anyone have any good short examples or links to articles that explain how you make a site that accepts 'add-ons'/'modules', ie. a quickly and easily extendable site?
System(); Command Not Working On Remote System. Windows.
My server is a windows machine, on the same domain as python(also a windows machine). Apache is running as a service as an administrator. This is a test only environment to whom it may concern(I hate people telling me how insecure my system is) I'm just trying to run: $last_line = exec('dir pythonc$', $retval, $g); print_r($retval); echo '<br>'.$g.'<br>'; echo '$last_line= '.$last_line.'<br>'; Which outputs: Array ( ) 1 $last_line= The command from the command line works fine. And apache can access directories that only administrators can access on the local machine.
Problems With Php Date/time - Real Time Clock
On my website i would like to have a real time clock....i mean to show seconds running one after another...how can i do this? Another problem is how to get time into a variable (which then i will insert into a database table)?
Adjusting Time Displays For User's Local Time
I have a news/comment site where stories and comments are accompanied by the date they were posted. Currently I'm doing that in the GMT format, simply because it's easiest. What I'd like to do, however, is have the page display posts and comments with "your time," i.e., the local time of the user (example of what I'm talking about here). I know how to get local time variables from a user with javascript, but I'm not sure how to pass that information to PHP, especially since I'd like to do this on the front page, which means no passing javascript information via query strings.
Determining If Time Falls Into Time Frame
I am having problems determining whether the current time falls into a certain time frame. I want to be able to allow my users to set a start and end time of when they do not want to be disturbed. for example: between 11pm and 3am every day. I would then store this as 23:00:00 and 03:00:00 in a table. If the times were on the same day then this code would work: PHP Code:
Convertint Time String To Time Stamp
I want to convert the time string from the if-modified-since header into a unix time stamp, so I looked at the strtotime() function. The PHP manual on that function makes reference to a GNU manual page, which indicates that only UTC and Z are unambiguous. However, a last-modified-header is followed by "GMT". They are synonymous, but can I safely use it with strtotime()?
Displaying Time In Different Time Zones
I'm trying to get to grips with times, and as an exercise am trying to create a function to display the time in various places. The way I'm currently doing this is as follows: // ------------------------------- putenv("TZ=GMT"); //set to GMT $time_to_convert = mktime(15,0,0); //gives me 3pm GMT echo(strftime('%d/%m/%y %H:%M',$time_to_convert)); //3pm putenv("TZ=CET"); echo(strftime('%d/%m/%y %H:%M',$time_to_convert)); //7pm // ------------------------------- That seems to work fine, and gives me the dates in the various places. The question I have, is how can I determine if a given country is in daylight-savings? Essentially, what I want to achieve is a list that will tell me what time it is in a given country right now. (A bit like the World Clock
Time Difference Change Over Time
Is there a way to print the time different depending on how long the time has been. So like if the user has not been logged in for 24 hours or more... it will say 1 day rather than 24 hours. And if its less than 1 hour it will say it in minutes... and if its greater than 1 hour but less than 1 day it will say minutes and hours? This is my query which i have done so far but don't know how to do the above checking! //get register date and now date $GetLoginDate = mysql_query("SELECT DATEDIFF(NOW(), LoginDate) AS LastLogin FROM userregistration WHERE UserID='{$_SESSION['Current_User']}'") or die(mysql_error()); $lastlogin = mysql_fetch_assoc($GetLoginDate);
Show Time In Local Time
I tried searching for the answer, but didn't really get anything back. Maybe it's the terminology I was using. Can anyone help me in a direction for how to change what time zone a time is displayed for? My timestamps default to California and would like to show them as EST. Or even show the time in whatever time zone the person viewing the time is in. Does that sentence make sense?
PHP To Select Chance - 50% Of Time X - 50% Of Time Y
I'm sure this is very simple, and I believe has something to do with generating random numbers (although I could be wrong). What I need is simple, code that will show picture X 50% of the time, and picture Y 50% of the time. So that the views on each picture will be exactly the same.
Php.ini Sets Max Time To 90 Seconds, Yet I Get A "Max Execution Time Of 30 Seconds Exceeded"
This is weird. When I use getId3 to try to read meta tags out of multimedia files, I get this error: Fatal error: Maximum execution time of 30 seconds exceeded in /home/ httpd/vhosts/bluewallmultimedia.com/httpdocs/getid3/getid3/ getid3.lib.php on line 54 But if I run phpinfo(), I get this: max_execution_time9595 and if I ssh to the server and look in php.ini, this is confirmed: max_execution_time = 95 ; Maximum execution time of each script, in seconds This is on a RackSpace server, running RedHat. It's got Plesk installed.
MLM System
Is there anyone who has developed some online MLM System, i need to develope a system where i need to calculate the total numbers of members in the downline both, seperately for left and right leg. This system works on 2 x 2 matrix.
Pat System..
How would you use patsystem for your templates in php? How would it make it easier? Where can i learn more about this? Also, Is their a script for making a today's featured sites? Thanks a lot.. I am learning more php with my books, i also want some good tutorials online.
Doc System...
Any one have any idea where I ca get a documentation system like the one php.net uses? Have a list (and sub lists) of topics, display details about a topic, and allow users to BLOG that item at the bottom.
An API System?
I am creating widgets on my website. but right now I am limited. because the ones I have are hard coded into the page. Like (if i have the notepad widget, then show it here), etc. How would I make an API type system to allow people to make their own, similar to Facebok, Google, and now Meebo. Well not like Google. more like Facebook.
Switching From 24 Hour Time To 12 Hour Time
In a form I enter a time. The database stores it in a 24 hour format, but I want it to be displayed on the users screen in 12 hour format. For example, Instead of 16:30 I want to have the output displayed as 4:30pm. How do I achieve this? For what it is worth I am using PHP 4.0.4 and mySQL 3.23.22-beta.
Rating System
Im tring to create a top10 rating system for my site.. but i have one problem.. i cant see to be able to find a way to code.. the sites levels ( ex: 1 - 10 ) i tried counting the tables.. but.. when i do count then.. then all sites with have the same number level.. forexample.. lets say.. 1 first hightest url here 2 second highest url here 3 etc..... but.. when i count it with mysql_num_array( ); then all numbers will be that number of the colums that i have in my database instead of 1 2 3 it will just say 2 2 2 does anyone knows a good way of doing this..
Template System
Could anyone explain the different ways there are to keeping HTML and PHP seperated?
Stats System
Is it possible to built a stats system in PHP that just says how many hits a day you're getting, perhaps go far enough to say what browser they're on, where they're coming from, what countries they're in. That kinda thing?
|