1,317 Posted Topics
Re: You can upload the file and then use something like [URL="http://code.google.com/p/php-excel-reader/"]Excel Reader[/URL] to get the info out of the spreadsheet. | |
Re: There are a lot of security limitations on what you can see on the local machine, certainly in PHP and even in Javascript. I don't think that you will be able to view a local document but nothing stops you from uploading it (manual file choice by the user) and … | |
Re: You can't echo an array, it isn't that smart. If you want to dump it, you can use print_r. If you want to do your own formatted display then you need to spin through the array pulling out the values and displaying them or referencing them individually (e.g. $_SESSION['booked_room_price'][0] ) | |
Re: Most things have been discussed previously so it is worth doing a search on Daniweb to see if there is anything in the archives that might answer your question. This post has some suggestions: [URL="http://www.daniweb.com/forums/thread39005.html"]http://www.daniweb.com/forums/thread39005.html[/URL] | |
Re: If you want a variable to be available in multiple modules, then save it as a SESSION variable and then it will be available everywhere as long as the session is active. | |
Re: Have a look at this: [URL="http://www.micahcarrick.com/php-paypal-ipn-integration-class.html"]Paypal IPN Interface[/URL] It makes using IPN pretty easy and saves you having to reinvent the wheel. IPN will call a module that you identify after a payment is processed (or rejected). It provides you the details of the transaction and you can then update … | |
Re: Are you developing this because you want to or because you think that you need to? There are some open-source (PHP) systems available that do this sort of thing. They may not do everything that you want (or they may do a lot more) but it is probably a whole … | |
Re: I don't believe that you will be able to do this without signing up with an SMS Gateway service who will do it for you (at a cost). You might be able to hook up your PC to a cell phone and have the cell phone act as your gateway … | |
Re: It sounds as if you are using a system that has it's own login and timeout processing. This is specific to the system that you are using (e.g. a Forum or a CMS) and even though it may be using PHP session management as part of the timeout processing, that … | |
Re: Your code above doesn't contain any PHP code. The opening line has ASP-type tags (<% %>) but also says language=javascript so I'm suspecting that you didn't define something correctly (but it's just a guess). The rest of the code is just basic html so if it is run it a … | |
Re: Through PHP, I don't believe that you can. For security reasons, you can't get much local information, not even through javascript. There are some ways that get around this a bit but I think you will find that they may rely on activex and only work on IE. The standard … | |
Re: Before trying to sort out the code, are you sure that your web host allows piping mail to php. I know that mine doesn't and that is probably fairly common. | |
Re: One way out of this would be to define a variable when you do your initialization (e.g. in your initial index.php module or a config module) for the address of your root directory. In your navigation module, all link addresses would be relative to that root address (e.g. $path_root."/abc/aaa.php"). That … | |
Re: Have a look at this: [URL="http://www.winhelponline.com/articles/165/1/Restore-the-exe-file-association-in-Windows-Vista-after-incorrectly-associating-it-with-another-appl"]http://www.winhelponline.com/articles/165/1/Restore-the-exe-file-association-in-Windows-Vista-after-incorrectly-associating-it-with-another-appl[/URL] | |
Re: Apache won't recognize the module to be a php module unless you give it a .php suffix. Thus, it won't get parsed. | |
Re: [URL="http://www.daniweb.com/forums/thread123524.html"]http://www.daniweb.com/forums/thread123524.html[/URL] | |
Re: Apparently .phtml is just an alternative suffix for .php. You can just rename the file or copy it and change the suffix. The content remains the same. It may be that on your free hosting, they treat them differently. You can get good hosting for less than $100. per year … | |
Re: An include for a URL is possible. the php.ini file has a parm allow_url_include that is normally set to off for security reasons. You should be able to set it on with a local php.ini file (to over-ride the system php.ini file) assuming that your web host hasn't done anything … | |
Re: The link below is for an approach that is used for Wordpress but could be adapted for another system. [URL="http://www.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/"]http://www.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/[/URL] | |
Re: I got my Asus laptop (2.1 ghz dual core 64 bit with Win 7, 4 gig memory 500 gb drive, 16" screen) for under $600. That's a pretty good price for a pretty good machine. You can certainly pay more for less. It isn't made to be a high performance … | |
Re: Have a look at this [URL="http://www.apphp.com/php-datagrid/index.php"]http://www.apphp.com/php-datagrid/index.php[/URL] | |
Re: Where you go for this may depend on how much you expect to have to scale up. If you realistically expect to reach the point where you will need one or more dedicated servers, then you need to find a web host that offers that capability and can provide you … | |
Re: a2usmani, You don't seem to understand the purpose of this forum. Once you write / modify some code, if you are having a problem making it work, then first you use your debugging skills and if that isn't enough, then someone here can probably help. We have better things to … | |
Re: I think that you will need to read the file and see if you get anything. | |
Re: Reading DocX [URL="http://www.webcheatsheet.com/PHP/reading_the_clean_text_from_docx_odt.php"]http://www.webcheatsheet.com/PHP/reading_the_clean_text_from_docx_odt.php[/URL] Saving as DocX [URL="http://www.daniweb.com/forums/thread173704.html"]http://www.daniweb.com/forums/thread173704.html[/URL] | |
Re: If you know when your session is done, you can delete the cookie and see if that does it. If the session just dies without warning (and you don't explicitly delete it)then I think that the cookie will hang around until the browser is closed and opens again. | |
Re: If it is simpler (less code) then it is probably better. If you need to do the same thing multiple time using different parameters then a function would seem to be the way to go. Unless there is a lot of complex / extra code in the function to make … | |
Re: Have you tried it? I don't believe that Cron will have a problem because the password protection should only apply for access from the web. | |
Re: Web search works just fine [URL="http://www.phpclasses.org/package/4155-PHP-Process-text-based-on-rules-stored-in-MySQL-table.html"]http://www.phpclasses.org/package/4155-PHP-Process-text-based-on-rules-stored-in-MySQL-table.html[/URL] | |
Re: I suspect that it isn't taking anything like 10 seconds to execute the functions that you didn't show. That's a long time on a fast machine. Put a sleep command in just after all the code that you didn't show and I'll bet that you'll see a difference in the … | |
Re: Assuming that "automatically" means doing a query to write it to another table, then the answer is yes. Do a MySQL Insert or Update into the appropriate table. | |
Re: It may be because it has the previous code cached (the generated html). If you reload / refresh the page, that usually clears it. If that doesn't do it, you may need to close and re-open your browser. Sometimes it is something stupid like saving the modified code somewhere other … | |
Re: Have a look at [URL="http://php.net/manual/en/function.flock.php"]flock[/URL] | |
Re: Your explanation isn't very clear. You also don't explain why don't want to use Cron. If B knows that it is expecting a response from A, then the next time that B becomes active (whether it is by Cron or by the next request), then it needs to perform a … | |
Re: You may want to consider putting the directory for the downloads outside the web root on your server. That way, it can only be accessed through a program and that program can check the login info to see if the user has the authority to do it. You can do … | |
Re: If this was always going to be two numbers and a mathematical operation, then the easiest way in PHP would be to have a box for the first number, a drop down list for the operation and a box for the second number. It is then easy enough in the … | |
Re: I believe that this sort of thing is purposely blocked for security reasons. If you search hard enough you may find something that works under IE (using ActiveX) but probably not in any other browser. The simple answer is to have your own login facility. If your intent was to … | |
![]() | Re: Seems that a Ping is the standard way to see if you are getting a response. |
Re: Normally your admin would also login and that would set a session variable to show that this user has admin privileges. On any page that only an admin can access, you need to check that session variable to see if this is an admin user or not. | |
Re: PHP is an interpreter not a compiler and I presume that what you want is an environment where you can develop PHP code and run it. There are some programs that can use PHP code and actually compile it into a Windows or Linux executeable file but I don't think … | |
Re: Suggestions: 1. Use the one that you have linked to above. 2. If you want to build your own, then sit down and work out the math and then write some code. 3. If you don't have the skills and knowledge for #2 go back to #1 or hire someone … | |
![]() | Re: You're probably better off using timestamps. Have a look at this tutorial: [URL="http://www.dreamincode.net/forums/topic/19953-calculating-age-tutorial/"]http://www.dreamincode.net/forums/topic/19953-calculating-age-tutorial/[/URL] |
Re: I don't have an answer for you but I do have some questions and observations: 1. Is there a reason why all the content on the download page is compressed into a fairly narrow band at the top of the page (with a scroll bar) with the rest of the … | |
Re: It is actually the HTML that you need not PHP. In your link you add [B]target=_blank[/B]. Depending on the browser and the settings, it may open in a new tab or a new window. | |
Re: I don't really understand what you are asking. At best you have defined a requirement. This is a programming forum (but it isn't a place to get your project coded for you). You don't have a programming issue yet because you haven't done any. Write the code and then if … | |
![]() | Re: First the mini-lecture: If you are going to be serious about writing code that works, then you need to be able to research and to debug. Not much evidence of either one here. This may not be your only problem but one thing that I noticed is that you are … |
The End.