1,317 Posted Topics
Re: If you want to run on a windows server and use Microsoft tools like SQL Server or Visual Studio ($799 and up) then this might be an OK solution. If you are aiming to write PHP applications that use MySQL and may run in Linux or Windows, then there are … | |
![]() | Re: This utility will work without CRON and can be triggered by activity on your site instead. You can't depend on it to run at a specific time however unless your site gets regular traffic. [URL="http://www.phpjobscheduler.co.uk/"]http://www.phpjobscheduler.co.uk/[/URL] I have another possible option for you and I will send you a PM for … |
Re: You should build a second version of the page with just the info to be exported and create the excel file from that. | |
Re: Get the current time as a timestamp [ $wk = strtotime("$my_date $my_time"); ] Subtract your 5 minutes / 300 seconds from it [ $wk2 = $wk - 300; ]. Then you can do whatever you need to do with it: e.g. display it: [ echo date("Y-m-d H:i:s",$wk2); ] | |
Re: If you are looking for something simple, this might do it: [code=php] function is_mobile(){ $regex_match="/(nokia|iphone|android|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|"; $regex_match.="htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|"; $regex_match.="blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|"; $regex_match.="symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|"; $regex_match.="jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\*mini|320x320|240x320|176x220"; $regex_match.=")/i"; return isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT'])); } [/code] This comes from: [URL="http://mobiforge.com/developing/story/lightweight-device-detection-php"]http://mobiforge.com/developing/story/lightweight-device-detection-php[/URL] | |
Re: If I was going to take a screenshot,I would use the Print Screen or Snipping Tool facilities in Windows. I don't understand why you would want to do this in PHP. If you are running under Linux then I'm sure there are similar facilities available. It's a manual process of … | |
Re: Have a look at this: [URL="http://www.w3schools.com/PHP/php_file_upload.asp"]http://www.w3schools.com/PHP/php_file_upload.asp[/URL] | |
Re: You will need to use javascript. have a look at the following item as a start: [URL="http://www.webreference.com/programming/javascript/mk/column2/"]http://www.webreference.com/programming/javascript/mk/column2/[/URL] There are some JQuery drag and drop plugins here: [URL="http://plugins.jquery.com/project/Plugins/category/45"]http://plugins.jquery.com/project/Plugins/category/45[/URL] | |
Re: Have a look at the PHP mail command. If you do a search you can find libraries that support this and examples. ![]() | |
Re: This is usually the result of unpaired braces (e.g. on an iF or While) or possibly unpaired quotes for a string. The problem could be anywhere in your code so you have to go through the module and look for that type of situation or compare the current version with … | |
Re: At a minimum, you need some sort of text editor to use in writing your code. There are other useful free tools out there. You can see my list at: SNIP | |
Re: There are quite a few systems that do this sort of thing but I don't know if any of them are free. At a minimum it may give you some ideas if you wish to continue building your own: [URL="http://www.capterra.com/school-administration-software"]http://www.capterra.com/school-administration-software[/URL] | |
Re: I'm not sure exactly what you are trying to accomplish but if you need to run a program on a timed basis, then you need to have a look at Cron. It's usually available on most servers. | |
Re: This works: [code] http://checkurl.phishtank.com/checkurl/index.php?url=http://.google.com [/code] | |
Re: How you go about it depends on how you learn best. Some people need to have a course with an instructor, others can do tutorials and others like me prefer to jump in an thrash about and go looking for the info as they need it. [URL="http://www.w3schools.com/"]W3Schools[/URL] provides good tutorials … | |
Re: The answer is probably yes but the question isn't totally clear. If this is your database, then at the start of the program, you read the database, determine if they did it before or not and then display the appropriate page. Could anything be simpler? There may be more to … | |
Re: If you have a function (definition) in the executable path of your code more than once you will get an error. If you will potentially have that situation and want to avoid the problem rather than re-engineer your code, use: [code=php] if (!function_exists(xxx) { function xxx( ) { ... } … | |
Re: It's pretty simple and you [B][U]don't[/U][/B] need to pay for a gateway. You can send an SMS message just like an email. The wrinkle is that the email format differs between cell phone providers. When you want to do an SMS authentication, you must ask the person (on the website) … | |
Re: If you use a relative address like include "inc/xxxx.php" or one that points to the root like $_SERVER['DOCUMENT_ROOT']... I don't see why you would need to change it. I don't understand why you would anticipate a need to totally change the structure. Once you define a need to have $_SERVER['DOCUMENT_ROOT']."/inc/top.inc.php" … | |
Re: You created the query statements but you didn't actually call MySQL to take action on them. You need a mysql_query statement to execute each query. | |
Re: If multiple people could potentially update the file in parallel and then try to upload it to the server, you will eventually have the problem of one user overwriting someone else's changes. You could build an application to control this or maybe find an open source program that will do … | |
Re: You may have a cooling problem. When you run on the battery, it is no-doubt running on a lower power setting. You could try changing your power settings to run much leaner when on AC power. Then you can see if it still shuts down on AC. Obviously, cleaning the … | |
Re: So what is the issue? If you display another page within the iframe you are still on the original page and that address should still show in the address bar. | |
Re: Please fix your post to use code tags properly. Your code is showing up as text. | |
Re: Good luck getting an answer! First: You have dumped a large amount of code into your post without code tags so that makes it difficult for anyone to make sense of the code. Second: Debugging is part of programming. You give no indication as to what you have already done … | |
Re: Your question is vague and might be interpreted in different ways depending on how much importance that you put on 'properly'. You can easily mix php and html in a PHP module. Just end the PHP section with a ?> and start your html. You can go back and forth … | |
Re: You can do a session_start at the beginning of the module and then add to a session counter (e.g. $_SESSION['tries']++;).You can check the value of the counter and if it is over the limit, you can print an error message and exit. | |
Re: You could separate your fields with a comma or some other unique character (when the file is written) and then use explode when you read the line to separate the fields. | |
Re: If you have some sections that should be standard on every page (like a header or footer) then you can define those parts of the page as separate PHP files and use include / require to make them part of every page that needs them. | |
Re: I see that you posted the same question at: [URL="http://forums.digitalpoint.com/showthread.php?t=1858971"]http://forums.digitalpoint.com/showthread.php?t=1858971[/URL] A Google search of unix2data brings up your two posts and nothing else. What is unix2data? | |
Re: Have a look at this: [URL="http://forums.techguy.org/windows-xp/799007-vaio-laptop-constantly-restarting.html"]http://forums.techguy.org/windows-xp/799007-vaio-laptop-constantly-restarting.html[/URL] | |
Re: You are implying that you had another video card and that was working (?) and then you installed the GEForce 8600 and it is no longer working. If that is not correct, then you need to provide a more thorough explanation if you expect to get any help. If it … | |
Re: See if this helps: [URL="http://social.answers.microsoft.com/Forums/en/vistawu/thread/55baee78-abb0-4610-958b-35c5b6a6202d"]http://social.answers.microsoft.com/Forums/en/vistawu/thread/55baee78-abb0-4610-958b-35c5b6a6202d[/URL] | |
Re: You need to provide more information on when this occurs (what happens leading up to it) and what have you already tried to recover from it. If you took it to a technician, did you ask him to fix this problem and if so, what did he tell you? If … | |
Re: There are PC utilities that do a good job of this. You may be able to do it through PHP but it may not give you as good and accurate a result as you can get from the free PC utilities. If you are determined to try it, you can … | |
Re: If they are entering the code that you send them into a box in your online application (as I would expect) then you don't need to pay for a gateway service. You just need to have them enter their cell number and choose from a list of cell phone service … | |
Re: To export to Word, Excel and other formats see: [URL="http://innovationsdesign.net/wb_2.7/pages/tech-resources/downloads/desktop_write.php"]Desktop Write[/URL] To create a file as a PDF, you can use built in support and open-source classes to construct your file OR, you can create the output as HTML and then convert to PDF. I have used this latter approach … | |
Re: It looks as if your first attempt to post your code didn't work correctly as it has all come out as text. This makes it more difficult for anyone to help you. Suggest that you try it again. | |
Re: Probably time to visit your local tech and see if it can be salvaged. | |
Re: See: [URL="http://forums.codewalkers.com/php-coding-7/delete-all-files-in-directory-714057.html"]http://forums.codewalkers.com/php-coding-7/delete-all-files-in-directory-714057.html[/URL] | |
Re: Something like <input name="item_price_1" type="hidden" value=$due /> should work. | |
Re: You can only retrieve the value from the database once you have stored it there. The way your question is stated, it isn't clear if you are asking how to save the value or how to retrieve it. The value of the checkbox (whatever you defined for the value if … | |
Re: You cannot have any output prior to the session start. Thus, you can't echo anything or have any text coming from any html. If you haven't done this intentionally, it can sometimes be the result of a blank line (e.g. an empty line before the intial <?PHP) | |
Re: In this format it would normally be trying to execute the index module in the folder called 120. I don't believe that this has anything to do with passing variables. | |
Re: For starters, you are opening the file with an 'a' which is write only then you are trying to read it and that should fail. It seems that you are trying to insert into the file rather than append. If that is the case, you could try another option like … | |
Re: There isn't one solution for all of the file types. What type of file do you want to upload? | |
Re: The first thing to check is how you saved the module. If it doesn't have a .php suffix (xxxx.php) then it won't be recognized as a php module and your php code won't be executed. | |
Re: The most straightforward way is to use a table: 1. Define the table before the foreach statement (e.g. $results .= "<table width=95%>") 2. You may want to define a header row (e.g. $results .= "<tr><th>xxxx<th>yyyy...) 3. Keep a count of what column you are processing. When you get to column … | |
Re: You can start with this: [URL="http://www.victorchen.info/accessing-php-class-variables-and-functions/"]http://www.victorchen.info/accessing-php-class-variables-and-functions/[/URL] | |
Re: You won't see the php when you view the source. The php executes on the server and all you see in the browser is the html and javascript if there is any. In this case, the "Hello World" string should appear after the <Body> statement. There are lots of things … |
The End.