|
Web dev and programming discussions forums
|
|
|
|
||
View original thread with replies |
|||
| Tags: | |||
url parameter: cannot pass url as parameter to codeigniter methodsHello guys, controller function - parse_xmlfeed ($url) url- http://202.63.102.83:8080/chandler/atom/collection/a57dbcd0-189c-11df-9078-b679d0519d0a?ticket=e8d4e840
http://localhost/codeigniter/parse_xmlfeed/url the error iam getting is 404 error (file not found) error from Debugger: Failed to launch simulated application: Iphone Simulator failed to find process ID of com.yourcompany.Hello-worldHi, Re: Authentication failed signature check failed.I'm using below code after using your suggestion. but code is not working. Can you please check below code and let me know where I'm not right
System.out.println("timeStamp Start..........."); PhotobucketAPI api = new PhotobucketAPI(); // api.setOauthConsumerKey(apiKey); // api.setOauthConsumerSecret(apiSecret); api.setOauthConsumerKey(ResourceBundle.getBundle("consumer").getString(apiKey)); api.setOauthConsumerSecret(ResourceBundle.getBundle("consumer").getString(apiSecret)); api.setSubdomain("api.photobucket.com"); api.setRequestPath("/ping"); api.setMethod("get"); try{ RESTfulResponse responseXML = api.execute(); System.out.println("responseXML ..........." + responseXML.getResponseString()); }catch (Exception e) { // TODO: handle exception e.printStackTrace(); } System.out.println("timeStamp End..........."); When using below 2 line getting expection. api.setOauthConsumerKey(ResourceBundle.getBundle("consumer").getString(apiKey)); api.setOauthConsumerSecret(ResourceBundle.getBundle("consumer").getString(apiSecret)); timeStamp Start........... java.util.MissingResourceException: Can't find bundle for base name consumer, locale en_US at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at com.gagabase.dao.jdbc.manager.PingTest.testPing(PingTest.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) timeStamp End........... When using below 2 line getting expection. api.setOauthConsumerKey(apiKey); api.setOauthConsumerSecret(apiSecret); timeStamp Start........... 2009-12-15 13:41:36,734 [main] WARN DefaultRequestDirector:992 - Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="[api.photobucket.com];} responseXML ...........<?xml version="1.0" encoding="UTF-8"?> <response> <status>Exception</status> <message>Authentication failed signature check failed</message> <code>7</code> <format>xml</format> <method>GET</method> <timestamp>1260864693</timestamp> </response> <!-- den2api02 @ Tue, 15 Dec 2009 01:11:33 -0700 --> timeStamp ...........1260864693 timeStamp End........... Do i did anything wrong here. Please suggest me. failed to open stream: HTTP request failed! HTTP/1.1 503 Service UnavailableHi,
I am trying to read the content of url. when manually i put url in browser link : http://www.mvnforum.com/mvnforum/vie...ber=pbmissions it opens. but using code $homepage = file_get_contents('http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions');
Warning: file_get_contents(http://www.mvnforum.com/mvnforum/vie...ber=pbmissions) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:\xampp\htdocs\test.php on line 2 What is problem ? How to solve this? KO3 route helpNote: even though your regex is "one or more digits", the fact that it is in parentheses makes it still optional. E.g. this would match:
It sounds like you want one of the following:
Colin KO3 route helpThe first one probably won't work. Things in paranthesis are optional. So (<id>(/<action)) means that you can leave both out, or you can just leave action out, or you can include both. You will also need to set defaults in order for this to work right. KO3 route helpOk i figured, both could be optional if the data types were distinct. Like one was an integer and the other a range of values inside of an array , e.g array('id' => '\d+','action' => '(create|update|delete)') Thanks for the help :) KO3 route helpActually colin
Would force you to have a trailing slash which isn't recommended for displaying pages. bluehawk had it right, he just missed a slash out from the start.
KO3 вопрос по RoutePosted By: biakaveron Ох ты блин! =))) Не я, конечно, читал, что route очень гибкий, но что б настолько! Возьму на заметку =))) KO3 вопрос по RouteГоспода, помогите с затруднением...
Route::set('admin', 'admin(/<controller>(/<action>(/<id>)))')
->defaults(array(
'directory' => 'admin',
'controller' => 'home',
'action' => 'index',
));
В папке контроллеров создал папку admin, в ней контроллер home (Controller_Admin_Home). По урлу localhost/index.php/admin - всё работает правильно. А если вот так: KO2 like route support in KO3I'm thinking of something along the lines of this:
The second segment of the URI would match the controller, while the action is always set to "admin". If var1 and var2 are not optional, remove the parentheses around them. KO2 like route support in KO3The following line is taken from the Pyro CMS source code $route['admin/([a-zA-Z_-]+)/(:any)/(:any)'] = "$1/admin/$2/$3"; Is it possible to enulate that functionality with KO3 ? What it does is re-arranges the route. The admin from the start of the request is moved to second position in the route. Thanks Optional RouteOk I have a problem with the router config. I'm trying to do this. AND NOTE: I discover if I put site.com/listado/index/1/2/3/4 etc... work FINE! how can I remove this INDEX??? Optional RoutePosted By: morpheus747 That is because you need to make the second part optional. E.g. Note that it's important that you include the / inside the optional segment so site.com/listado/2/ and site.com/listado/2 will both be valid. I'm not sure I understand the request of your questions. Route assemblyI've set up a route in my bootstrap as follows:
Code:
$indexRoute = new Zend_Controller_Router_Route(It routes URLs as expected but when i use the url() view helper to assemble a URL it always uses this index route instead of the default route, even when the supplied action is not 'index'. For example Code:
echo $view->url(array('module'=>'editor','controller'=>'node','action'=>'edit','id'=>$node->id));Why is url() always using my index route?
Route :slug value
Mar 4, 2010 Hi all, I'm having a problem with routing. route.yml settings: Send: url: /exp/send/:token param: { module: exp, action: Send } And my action.php file: public function executeSend(sfWebRequest $request){ …
Sitemap route Feb 5, 2010 Hi. I have sitemap controller <?php class SitemapController extends Zend_Controller_Action { public function init() { $this->_helper->contextSwitch ->addActionContext('index', 'xml') ->initContext(); } public...
Problem with Route Nov 12, 2009 Hello everyone I am following the book Beginning Zend Framework of Armando Padilla. The it is suggested to create an alternative route: $Router->addRoute("artistprofile", new Zend_Controller_Router_Route ( "artist/:artistname", array(...
Search Along a Route Jan 29, 2010 Hi, Please let me know how to per form search Along a Route using Google Map API in my site.
retrieve a set of routes for a route Feb 26, 2010 Hello Guys, I'm trying to recover through the object GDirections, all routes a route. In the group of version 2 of the api, I was informed that it would be possible only through the object DirectionsRequest. Does anyone have an example of how to...
Clearing Directions route Nov 10, 2009 Hi there, I have been developing an application using API 3 for some time now, and have 1 last bit of functionality to achieve. I have no live webpage to post, however my question is highlevel in nature and API related Is there a way to "clear" a...
Re: Route Rewrite Problem Dec 17, 2009 A few things: * Make sure your route names are unique. I see two each of the 'articles' and 'articlenew' routes. * Remember that the last route defined will be the tried first, so put the more specific routes after the more generic ones. * The keys...
Help with setting up custom route Jan 26, 2010 Hi, I am trying to setup a custom router to create a "admin area" type of thing: I've started with: $frontController = Zend_Controller_Front::getInstance(); $router = $frontController->getRouter(); $router->addRoute( 'listTeachers', new...
Route HTTPS traffic to a different IP Nov 25, 2009 Hi guys, My logic is giving way on this one and I find I understand less about DNS than I thought: Say I have a domain hosted on one server, and there is an existing application using the same domain over https (with existing cert) on another...
How to Handle images w/ a Route Feb 7, 2010 I store all of my full size images at something like /img/photos/ filename_goes_here.jpg I would like to be able to add a route so that if I visit /img/photos/75x75_filename_goes_here.jpg it will be handled by my images controller. I've tried...
Parameter injection with @Value
Jan 24, 2010 En route Feb 18, 2010 TV Calibration: The Easy Route [TVs] Nov 27, 2009 Which route matches my path? Mar 20, 2009 The Only Truly Failed Project Aug 20, 2009 CSS munging - a FAILed experiment Oct 3, 2009 Failed to open the relay log Jul 29, 2009 There's a Reason RSSCloud Failed to Catch On Sep 8, 2009 How Google Failed Its Users and Gave Birth to an Internet Meme Feb 12, 2010 Paypal Sandbox Error: Account Created Successfully but failed to add Bank and Credit Card Jan 19, 2010 | |||