Jump to content

ethereal1m

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by ethereal1m

  1. I got it, the mod doesn't work with Apache 2.4, instead it works only with 2.2
  2. Dear all, I'm installing mod_aspdotnet on Apache, but for some reason, it doesn't run. I have mod_aspdotnet 2.2.0.2006. I try to run it on WAMP 2.4, Apache 2.4.4, and .Net version 4 (including the previous versions). I put the aspdotnet config in separate file in httpd.conf in httpd-aspdotnet.conf: Apache won't up so that it doesn't spew log on apache_error.log. Anybody has an idea how to troubleshoot this? regards, ethereal1m
  3. I need to install rewrite module on IIS6 then... thanks for the pointer!
  4. Dear all, I’m trying to redirecting using an URL that uses get method so that it fills up $_GET variable and redirects it to some class and function of a controller. When using IIS6, it doesn't redirect to a specified controller, it redirects to its home instead. Works in Apache though. Suppose the link is: localhost/content/?id=5 which making the link to execute get method and set variable “id” with value equal to 5 and put them into $_GET variable. I'm using Codeigniter framework, therefore for URL routing it uses routes.php file. It has the following line $route['content/:(any)']='some_class/some_function/$1'; which routing the link into execution of some_function of some_class with input of 5, so that it should reroute into: some_class/some_function/?id=5 but it doesn’t, it routes to default home address instead. Seems that IIS cannot parse some_class/some_function/?id=5 Do I miss something? I’m using php5.1.4, IIS6 and MSSQL server 2003. IIS6 is using CGI to execute PHP. regards, ethereal1m
  5. Dear all, is there any library that supports text extraction from docx,doc, excel, pdf, etc formats like Apache POI does on Java? Or should I port Apache POI classes to PHP code? best regards, ethereal1m
  6. I got it, I put /t as delimiter instead of comma....
  7. Dear all, I want to export data from database into a csv file using the following code: function export() { $this->load->dbutil(); $this->db->order_by('id','asc'); $query = $this->db->get('some_table'); $enclosure = ''; $delimiter = ","; $newline = "\r\n"; $data = $this->dbutil->csv_from_result($query,$delimiter,$newline,$enclosure); if ( ! write_file('my_directory\data.csv', $data)) { echo 'Unable to write the file'; } else { echo 'File written!'; } } Basically it uses csv_from_result to create the layout and later it is written to a file using write_file. I delimit each column with comma (,) and each row with carriage return. However when I open the file from Excel, each column is separated by comma and placed into one cell of Excel instead of different cells. Like this: How can I make so that they are in different cells? What should I used for the arguments? regards, ethereal1m
  8. ok let me just try that....
  9. Linking ASP to PHP script is easy. But to keep track ASP session is different thing. My problem is: PHP page cannot keep track the last ASP session that it was linked into. I was thinking about using cookies to keep track, but not sure the details are. Or do you better solution?
  10. Dear all, Is it possible to link a php web page into a ASP3 classic page? Suppose there's a link on a ASP page into a PHP page, also there a link in the PHP page to the ASP page. I was thinking about use session variable to go back and forth between the page, but I don't know how to use the variable in the PHP or ASP code. Is this a correct way? Or is there any other approach? regards, ethereal1m
  11. oh.. that was a good idea.. I was thinking about using oracle scheduler to do the job (it is a oracle database). Ok, this is the detail scenario I should had mentioned earlier, suppose there is filter that is customizable via CI GUI. Basically the filter tells a condition of a query, for example which 'column' or which 'where clause' condition of a database table suppose to be fetched. The one that does the actual execution of a query is a pl/sql procedure that resides in the database. The query uses the configuration that it gets from the filter. So I'm thinking about making the CI GUI upload the filter configuration into a text file and let the pl/sql procedure read the configuration. The procedure is then executed by scheduler (whatever that is). Is this doable? Is there any more practical way to do this? The interface must use CI but the scheduler and the entity that does the query can be anything...
  12. Dear all, what is the most practical way to implement scheduler between codeigniter application and a database? Suppose I want to create a service that does a query in CI and do that regularly. Is this possible? If yes, how? regards, ethereal1m
  13. Dear all, has anybody had luck on loading xdebug with Apache 2.2 and PHP 5.3? For some reason, it didn't get loaded. I had it working with Apache 2.2 and PHP 5.2 though.... I'm using php5.3 thread save, compiled with vc9, nondebug. Part of phpinfo: PHP Extension Build API20090626,TS,VC9 Debug Build no Thread Safety enabled part of php.ini for xdebug configuration: zend_extension_ts = "C:\Program Files (x86)\PHP\php_xdebug-2.1.4-5.3-vc9.dll" xdebug.remote_enable=On xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" xdebug.remote_log="C:\Program Files (x86)\PHP\log" what went wrong? best regards, ethereal1m
  14. My bad, I admit this is a bad questioning practice.... Anyway, I solved the problem... thanks...
  15. Dear all, according to PHP windows download page at http://windows.php.net/download/, if I use Apache 2.2, I should pick vc6 PHP, which is compiled with legacy visual studio 6 and only available on php 5.2. Is there any way to couple Apache 2.2 with PHP5.4? Do I need to build my own version of PHP for windows? what is the most practical way? regards, ethereal1m
  16. Dear all, which part of codeigniter code that makes a duplicate URL? I creating a login shell. The problem occurs when I click its submit button, it concatenates the existing URL with a new session URL. What makes it possible? I'm using php 5.2 and Apache 2.2. Best regards, ethereal1m
  17. I just fixed the problem. There are several issues: First I got error of "anonymous user try to access" (I got this message by looking at drupal's log. I fixed this by running the following query to my mysql database: UPDATE sessions SET uid = 1 then put the following line in the settings.php register_shutdown_function('session_write_close'); The second problem was php max execution time was too low. For some reason it takes a long time to load /admin/config page. The fix is setting the following variable in php.ini max_execution_time 120 The third problem was uncovered when I execute drupal status report, it is saying that drupal cannot access website, even though it was able to. So I fixed the error by adding the following line in settings.php $conf['drupal_http_request_fails'] = FALSE; That fixes the error, and magically fixes long execution on /admin/config page....
  18. I tried to add error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); on the beginning of index.php, but I still got nothing on the screen... any other ideas?
  19. Dear all, I just installed Drupal 7, everything works fine except after the installation I cannot access Administration Configuration page. I can access other pages without problem though. The error was a long page loading, which leading to a blank screen. Could anybody give me a pointer how to troubleshoot this? I have window7 64, PHP Version 5.2.17, Apache 2.2.21, mysql 5.5. Best regards, ethereal1m
  20. I got it. I actually very simple, they are included in 5.2.17. What I did was go to uninstaller page, right clicked php icon, chose change, then it brought me to php configuration wizard, then I chose extensions I needed, it wrote php.ini automatically and added dll files on ext directory....
  21. Dear all, during installation of Drupal 7, I got stumbled upon a requirement of installing PHP extensions GD and PDO. I'm using PHP 5.2.17 for windows that got installed using installer. My problem so far is I cannot install extensions in question into my current PHP. I'm using windows 7 64bit. My questions are: 1. Do I need to install different version of PHP in order to get the extensions? If yes, which version I should download for my current system? (Apache on Windows 7 64) 2. I installed php 5.2.17 thread save because according to the site, I must choose that version since I'm using Apache 2.2 on windows. Should I compile 5.2.17 and include the extensions manually? Is there any easier way? 3. Just curious. Is it possible to compile php5.3 and run it on Apache 2.2 on windows? best regards, ethereal1m
  22. Dear all, I try to redirect my front page for authenticated user from URL (for example) "node" to "my_content" by doing the following steps: 1. Going to admin/site config/advance front page/front page for authenticated user/ 2. Select the "redirect", then enter the redirect URL "my_content". After I save it, I try it out, the page is not redirected to my_content but instead it still sits on "node" page. Does this module require other module so that URL redirection working? Did I miss anything? Any ideas? Best regards, ethereal1m
  23. Hello, you were right, the path was incorrect, it was pointing to other Zend library.. duh.....
  24. Dear all, I'm trying to install Zend Framework 1.8.0 by executing bin/zf.sh create project But the command fails complaining that And when I do bin/zf.sh show version It's saying it's version 1.10.1 instead 1.8.0. Where does it read the library version? How can I revert it back to 1.8.0? regards, ethereal1m
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.