php

Screen Scraping

Hi I'm trying to implement a screen scraping scenario on my website and have the following set so far. What I'm ultimately trying to do is replace all links in the $results variable that have "ResultsDetails.aspx?" to "results-scrape-details/" then output again. Can anyone point me in the right direction? <?php $url = "http://mysite:90...

hi how restrict the year in jquery datepicker?such that it display no year other than current year in database

How to set jquery.datepick.js to display only the current year in the database? ...

AMFPHP with HTTPS?

I have not test AMFPHP with Https protocol and I couldn't find any info on running over the secure HTTP. I see secureAMFEndPoint can be enable in another script or part of AMFPHP code? Or any way to make the login work over HTTP*S* from HTTP*S*? I use this code import com.almerblank.utils.ServiceUtility; // Singleton public var amfp...

Using Wildcards in CodeIgniter

Wildcards are cool. I am trying to do this: $route["(:any)/controller"] = "controller"; basically, I want to put the wildcard in the front. It doesn't quite work, and I don't know any work around. ...

php when to use get method?

how all, when is the right time to use $_GET['data']? i want to pass value of userid from page A to page B by using popup javascript. $qry="SELECT * FROM dbase WHERE id='".$id."'"; $sql=mysql_query($qry); $rs=mysql_fetch_array($sql); <script language="JavaScript"> function myPopup() { window.open( "<?=$C...

Wordpress Video Portal

Hi out there, my challenge is to built a video portal, based on wordpress (blog already started). so in the backend there must be a option to add, tag, descripe videos and in frontend the videos must have a comment function, must be searchable and so on. wordpress gives already a large amout of functionallity and i want to use this, co...

How to find out master product of simple product?

How can I find out, if a simple product is part of a configurable product and then get the master product? I need this for the product listing. Just found out: $_product->loadParentProductIds(); $parentIds = $_product->getParentProductIds(); ...

How to display configurable product in each color in Magento product listing?

I have a configurable product which is available in many different colors and sizes. I want the configurable product to appear once for every color. My idea is to assign one simple product of the configurable product in every color to the category of the configurable product. Then I want to change the listing, so that the (colored) simpl...

mod_rewrite module in Apache

hi i read mod_rewrite module installed in my Apache server! to implement clean url. My apache server is 2.0. I can't see this module in my php info. How i install this module. Does any one tell me ? ...

establishing strong web security

I have seen many sites who claim to have bank grade security encryption. if their web sites have been built with php what other forms of security can exist aside from using mysql_real_escape_string and a 128bit ssl encryption? ...

wordpress use table sort functionality in own plugin

Hi, im creating a own plugin for wordpress where i have to view a set of data. now i want to use the wordpress default table view to display my data, and give some functionality to it default table: is there a way to use this table view for my own plugins (some classes or functions) or do i have to create something similar by myself...

How does drupal choose which function to process a form submit?

I'm really confused,can someone clarify this? ...

Netbeans PHP Validation sees endif as a syntax error

I have this part of code <?php for ($j=0; $j < $count; $j++): ?> <?php if(isset($votes[$j])): ?> <dt>something something</dt> <dd> <span><?php echo $result; ?>%</span> <div class="bar"> </div> </dd> <?php else: ?> <dt>info</dt> <dd> ...

Why htmlspecialchars_decode in PHP does not have the charset parameter as in its counterpart?

There is a charset parameter in htmlspecialchars but the decode version does not have it. In comparison to the similar htmlentities, the encode and decode functions both have the charset parameter. So I can't choose what charset I am decoding back to? ...

Is there a way to dynamically define how an image appear in a page or in certain layout?

For so many time, I have encountered problems with managing image having abnormally long height or width. If I fixed their height and widht, they will appear streched? If I fixed their width, and if the height of the image is very long then also it will mess up the overall website. If I fixed their height, and if the width of the ima...

Wordpress items catalogue plugin

Could you please recommend a plugin for Wordpress or maybe a tiny standalone PHP script that allows the user to add some items with text info and a photo to a database, XML or just a text file from a special admin page? I need to fetch these items from the source and show in the page some way. To understand the task better, please check ...

Facebook Photo upload using PHP/Java

Is there a way I can post photos to my facebook profile using my username and password only? The code may be in PHP or Java. Can I use the facebook java api, if yes how? I dont want to make a facebook app and allow it to post photos to my profile. Any help is much appreciated. Thanks in advance. ...

How to make a server application with PHP

I need to write some service for my application. I want each client to have limited persistent connections (like only allow first 10 clients to connect). I know I can listen on the port with PHP by socket_listen(). The parent process accept the connection, then pcntl_fork() the process to have children to handle connection. But as far ...

SQL most popular

I have a mysql table with items in relation to their order. CREATE DATABASE IF NOT EXISTS `sqltest`; USE `sqltest`; DROP TABLE IF EXISTS `testdata`; CREATE TABLE `testdata` ( `orderID` varchar(10) DEFAULT NULL, `itemID` varchar(10) DEFAULT NULL, `qtyOrdered` int(10) DEFAULT NULL, `sellingPrice` decimal(10,2) DEFAULT NULL ) I...

Is there any way to view PHP code (the actual code not the compiled result) from a client machine?

This may be a really stupid question...I started worrying last night that there might be someway to view PHP files on a server via a browser or someother means on a client machine. My worry is, I have an include file that contains the database username and password. If there were a way to put the address of this file in to a browser or s...