I tried to include a php script that i downloaded to get me real time money exchange rates, but it uses fopen() function and i get this error: Fatal error: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
so i found out that IIS is the problem and i need PHP 4.3+ and OpenSSL(which i don't understand what it is or how to get it) I tried to setup Apache 2 on my windows and use it instead of IIS, and i setup Apache to use port 8080, but when i access any page in /htdocs, The IE tells me that the page can't be displayed.
I want to know how to configure apache and how to run php scripts from it (ofcourse after i configure the httpd.conf file to use php).
The email::connect() returns an instance of SwiftMailer. As per these docs, it would seem that it should work. However, I get an error Fatal error: Call to undefined method Swift_Mailer::setSubject() in /home/user/public_html/application/classes/controller/properties.php on line 45 I've seen that email::connect() does exactly what the example code in the docs does. That is include the correct file return an instance of the library What am I doing wrong?
I'm running into a issue that has brought a project of mine to a halt and I've googled over a couple days and haven't found anything that makes sense to me (this is my first PHP project). I'm using CodeIgniter and an RSSParser library that was available in the CI wiki. Everything is being called/loaded fine but I'm running into what I "think" is a stream wrapper problem. Here is a post [URL] I made on the CI forums for reference. Essentially the error that I am recieving is this:
Message: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "feed" - did you forget to enable it when you configured PHP?
Line Number: 89
Here's another link to the source for 'RSSParser.php'
The problem code is below:
<?php //Load the shiny new rssparse $this->load->library('RSSParser',array('url' => 'feed://api.flickr.com/services/feeds/photos_public.gne?id=30842919@N04&lang=en-us&format=rss_200', 'life' => 2)); //Get six items from the feed
The reason I believe that this is happening is that "feed://" isn't registered as a PHP Stream and the RSS Parser is unable to find and retrieve the information that I am requesting from the feed. What I need help with is figuring out how to register the wrapper "feed://".
I use apache, Php and MySql on my Windows XP machine at home. I have been doing so successfully now for a long time. However, I am now trying to use fopen to open secure URLs (https) and having no luck. I have installed openssl and enabled the extension (phpinfo says so, too). But still it does not work.
I now realize that I need to have https and ftps as registered streams, i.e., Registered PHP Streams php, http, ftp, https, ftps, compress.zlib (from phpinfo at my hosting provider)
When I run phpinfo on my version of Php (which I just downloaded from php.net) it says, Registered PHP Streams php, http, ftp, compress.zlib
I've been reading forum posts saying to compile Php with "--with-openssl in your ./configure command."
Well, I do not compile Php from source (don't even have a C compiler). I always download binaries (like php-4.4.0-Win32.zip that I downloaded today from php.net).
How do I get a binary that was compiled with openssl in the configure command? Or if I am misunderstanding something here, what is is that I need to do?
I am getting Fatal error: Unable to read 4761 bytes. Can some one guide me how to fix this error. I have the latest version of Zend Optimizer on my server., So Zend is not the issue other than this does some has it's actauly solutions?Here is the url of ERROR PAGE
I have a login page that once a user enters the right input, should allow him to go to a Main page. The logging in part is right (using the Username and Password), but when I log in with correct Username and Password, I get the following error:
Fatal error: Call to unsupported or undefined function session_save_path() in C:apachehtdocs/login.phtml on line 26
That line in the Phtml file reads :session_save_path("c:/");
I am able to create a pdf using php and ezpdf, its works fine, and display the pdf document in the current server page.
But here are two things i wish to do, first store the pdf and than open, if possible in a new popup window?
When i tried this function below, it gives me an error
Error: Warning: fopen(http://localhost/pdf/files/tmp1/yasmina.pdf) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in C:Program FilesxampphtdocspdfpdfClassesAndFonts_009ecertificate.php on line 139 Could not open file to save PDF. Code:
I am trying to enable CCK module and when I try to enable it, I get a white screen with this URL [URL]. But CCK is not being enabled I dont know whats wrong. This is what I am doing before trying to enable CCK. I downloaded CCK, extracted it and put it in /sites/all/modules/ folder Go to [URL] Go to Modules section and trying to check the check boxes corresponding CCK module. tell me what can be the issue?
I have serious problems with my GD Library configuration on my win2000 server. In phpinfo() every seems fine and I can use the library if Im running a php-script through a web browser. But, if Im in running the same script trough the command line interface like: c:xamppphpphp.exe c:scriptmyGdScript.php
I get the error message:
"JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)"
For example, using the code below, almost every web page that will open in a browser will be read correctly by this code. There are few exceptions, such as the above URLs. I'm wondering why/how could a page be accessible to a browser but not to fopen()?
decent database class for nicely wrapping up all the PDO functions? Ideally I'm after an example to handle database errors properly, insert/update/select queries, prepared statements and transactions. I've had a crack at writing my own and it's a bit messy with error handling everywhere. Maybe I need to put that in a separate class or something.
E.g. here's how I'd do a database update: $db = new Database(); // In page controller $params['type'] = $type; [code]...
My task is to retrieve an xml from https://test24.highrisehq.com/tasks/upcoming.xml that is a secure connection and demands authentication. I am trying to achieve this using curl but I don't know why the username and password thing is not working for me. Here is my code:
The problem is that when I set VERIFYPEER to true I get nothing displayed on the browser and when it is set to false I get HTTP Basic: Access denied. Both curl and openssl are enabled. The credentials in the code are correct, if anyone wants to use it he is more than welcome.
I am using fopen to open a file.If I use the r option I can echo content from the file. If I use the r+ option I can't echo content from the file.
The offending code
$filename = "textfiles/text.txt"; $fileopen = fopen($filename, 'r+'); r works but r+ does not $contentsread = fread($fileopen, filesize($filename)); echo $contentsread; fclose($fileopen);
There aren't any errors coming up when I open it in the browser.Just for testing I have the permissions set at 777 so the permissions are fine.I know 777 is a little much, but it's just for now until I can solve this.I also tried the c+ option and that also did not work. Eventually I would like to get to the point where I can create, append, and read a file.I just need to get the r+ option to work.
I am looking to move an existing WordPress installation to a custom platform comprised of a .net based blog as well as other new functionality/modules on the site running under IIS6/Win2k3. There are several thousand posts in the existing WordPress site that have been migrated to the new database structure, however, I'd like to preserve the old urls (for search engine sake).
The application is already using URLRewriting.NET to provide SEO friendly links throughout the site, so I know I can write up a rule to parse/redirect the inbound requests:
Would be handled by something like: http://mydomain.com/blog.aspx?slug=my-post&date=2008-11-20
To do it this way, I would need to configure the .php extension to be handled by aspnet_isapi.dll. Is it possible to have one 'Web Site' configured to handle PHP via aspnet and another 'Web Site' configured to handle PHP using the actual php isapi handler? It would seem possible based on the configuration through IIS Manager, though I suspect the whole 'Web Service Extension' bit would cause a problem.