isolating part of a url with php
Hi, If I have the following url: http://URL/products/38/293/bannana_cake/ or htp://URL/products/38/293/fruit_cake/ How can I isolate just bannana_cake and fruit_cake from the examples above? ...
Hi, If I have the following url: http://URL/products/38/293/bannana_cake/ or htp://URL/products/38/293/fruit_cake/ How can I isolate just bannana_cake and fruit_cake from the examples above? ...
I am using php and mysql I am going to send 10k++ (ten thousands plus) emails to update my subscribers, and this is the first time I am going to send them. I will use php mail function, basically here is what I will do: First get the data from database: Select name, email FROM data After that, using while loop to send the data: whi...
I have a <form> with several text inputs and a textarea. The documents Content-Type header is text/html; charset=ISO-8859-1 and in the <head>-part I have a meta-tag with the same content-type: <meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />. But when I type some special characters in one of the fields (like äüüß...
Hey Where and how do I include .js files in Views in CodeIgniter? I have tried this: <script type="text/javascript" src="system/application/libraries/jquery.js"></script> As I figured that the index.php is the one that is loading the views, so I'm guessing that every time a page is loaded the current dir path is at root because ind...
Hi all Is there any possible way to find the name of the country using IP with scripting language PHP ? Thanks in advance Fero ...
Hi friends, I'm not very skilled in web developing by the moment but i've managed to create a web application with PHP that queries a MYSQL Database and shows data in HTML. I would like to check if the table has changed using a timestamp field that I already created and that updates on every insertion. Comparing two timestamps (the pre...
I want to use phpDocumentor classes for parsing of my own PHP documentation and working with results. I can do this manually, but I'm pretty sure that phpDocumentor could be used. The problem is that I can't find any documentation about this. How exactly should I use phpDocumentor's classes? Thanks for the link! ...
I have Zend_Soap_Server. It should be tested. One issue - unit testing and development modes should work with different databases. It can be done via .htaccess: SetEnvIfNoCase User-Agent (.*) APPLICATION_ENV=development SetEnvIfNoCase User-Agent testing APPLICATION_ENV=testing It would work fine for me, I use Zend_Soap_Client as is fo...
Hello I am facing problem in downloading any image file from the server. I am able to upload them successfully and can open them from the location where they are uploaded and stored. When i download using my function the image files get downloaded fully, file size is also correct but when i open them i get an error No image preview !...
how can i make symfony retain the POST data after login page? for example, the cookie was expired while user was filling the form. after submitting the form user gets a redirect to a login page. and after successful login he gets a redirect back to form's "action" url without any POST data from the initial form. is there any mechani...
Hey there, does anyone know the best practice to filter all the results I'm getting from any Zend_Db class. It's because I've got a whole database with timestamps as INTs and I want to change the fields into Mysql's TIMESTAMP without having to change too much code. It would be nice if I could apply a global database filter using strto...
Hi there, I'm attempting to upload an image as well as add details such as; title, description and filepath into a database table. I'm using the following code, but it isn't adding any data to the database; (The session.php include contains the database connectivity.) <?php include('includes/session.php'); $uploadDir = 'submitted/pic...
I have tried: identify -format %[exif:*] filename.jpg Which returns nothing. identify -verbose filename.jpg Doesn't give me the data I want. I am currently running: Version: ImageMagick 6.0.7 07/25/08 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC Should I be able to get this data with ...
I have a search form, I want to $_REQUEST the search terms as an array so I can list each search term out, wrapping each term in a span for styling. How do I do that? Edit: Here's the code requested. <form action="http://localhost/wordpress" id="search" method="get"> <input type="text" size="30" id="s" name="s" value="Type and hit ente...
I think the answer might be obvious but I can't seem to figure it out. How do I render a view I've created in Views 2 (Drupal) in a page-pagename.tpl.file? My thought was that it would be some sort of PHP snippet but I can't find documentation about it. Any thoughts that might steer me in the right direction. ...
I am constructing a PHP website,in which we need a payment gateway based on MONEYBOOKERs. Can Any one help in embedding the moneybookers gateway to my site.As I am using the test link which is https://www.moneybookers.com/app/test%5Fpayment.pl , but it is not showing any of the money transfer in it. Please Help! Thanks in Advance ...
Here is my query: "SELECT * FROM `posts` WHERE MATCH(title, text) AGAINST('".$word."' IN BOOLEAN MODE)"; How can I do this with Zend_Db_Table, I mean($this->select()...) Best Regards! ...
I'm writing a script that can FTP files and folders using PHP functionality. I'm able to upload files via ftp but not folders, is is possible to upload folders via PHP Ftp My file code looks similar to below $upload = ftp_put($connection, '123test.co.za/images/1.jpg','1.jpg', FTP_ASCII); ...
I have written an authentication class controller containing a method to check login status of user, and redirect him to login page if he/she is not logged in. I need to call this function from other controller methods to authenticate the user. What is a good way to do that? ...
Hello I want to access inactive tags inside this array any idea? stdClass::__set_state( array( 'languages' => array ( 76 => array ( 'id' => '76', 'tag' => 'Deutsch', ), ), 'targets' => array ( 81 => array ( 'id' => '81', 'tag' => 'Deutschland', ), ), 't...