I have a files inside a page , this page named (mainframe.php) is a frameset contain two subframes files (file 1 : topframe.php , file 2 bottom frame.php) and i need to pass a value from an external page(file:extarnalpage.php) to inside the frmams(topframe and bottomframe). but I can not do that...and the pages is as the followin:
ma...
I have a php file which I will be using as exclusively as an include. Therefor I would like to throw an error instead of executing it when it's accessed directly by typing in the URL instead of being included.
Basically I need to do a check as follows in the php file:
if ( $REQUEST_URL == $URL_OF_CURRENT_PAGE ) die ("Direct access not ...
Hey guys,
for my ABITUR which is the end exam of highschool in germany I want to do a project with my friend. We are both pretty good at programming (and have our own company) and have about 9 months to finish the project (after school so mostly saturdays and sundays) we want to build something that will blow our teachers away but don't...
I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like:
$("#mySpecifikButton").click(function()
{
....some code here...
});
but then Im stuck. For example I have 9 users. All they have an ID in the db. So now we have a...
I am trying to insert a very long text string into a MySQL Blob column, but MySQL is only saving 64kB of the data. The string is 75360 characters long. I am connecting with PHP's mysql_connect().
Any ideas?
Does it make a difference if it's Blob or Text. I originally had it as a Text but changed it with no affect.
...
I would like to be able to switch this...
My sample [a id="keyword" href="someURLkeyword"] test keyword test[/a] link this keyword here.
To...
My sample [a id="keyword" href="someURLkeyword"] test keyword test[/a] link this [a href="url"]keyword[/a] here.
I can't simply replace all instances of "keyword" because some are used in or w...
For Web-dev, can the PHP Processor be installed on a regular Windows XP machine, such that viewing PHP files through a browser executes the PHP script? (NOT Windows Server 2003)
I even downloaded PHP but it appears they want it installed on a server.
Any other ways to quickly preview and run PHP on a local machine WITHOUT uploading the...
How to get location from ip address. I want to retrieve information like city, state, country of my visitors from their ip address, so that i can customize my web page. I am using php/mysql/javascript for server and client scripting. Is their a way to do the above.
...
PHP has the habit of evaluating (int)0 and (string)"0" as empty when using the empty() function. This can have unintended results if you expect numerical or string values of 0. How can I "fix" it to only return true to empty objects, arrays, strings, etc?
...
Can a PHP script (which can be working with a MySQL DB) send and/or receive SMSs using some sort of server-side solution?
Any special server-side application, or special hardware required?
And compatibility? Windows, Linux?
...
Are there any helper libs to read a cookie file in php. I have a cookie file on my local disk and I would like a better way of reading it. I am currently just reading to file like by line and parsing out the values.
...
I came across a site that demonstrated a Javascript library and it asked that you please not link to the Javascript file directly from your site. That's a reasonable request. In fact, it wouldn't have occurred to me to do that instead of hosting it myself but I guess will try and save on bandwidth any way they can.
This got me thinkin...
For something like a personal recommendation system, machine learning type of stuff on a website, what language would be best?
...
Okay so a continuation from this question, where you experts intro'd me to WAMP, which can basically execute PHP within a Windows XP environment.
So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!
Also, when I visit "http://localhost/" in I...
This is a bit of a crazy idea, but would there be a way to bootstrap all the functions that php have without using a helper function to call the functions.
What I mean is actually calling some code or function before and after every basic function call.
Example:
<?php
echo "Hello";
?>
But these functions would be called before echo ...
I have a relatively complex .htaccess file to control page requests, this currently redirects all requests of files (with some type exclusions) to an index file, with an exception of one directory that includes a WordPress installation.
I now need to enable the WordPress PermaLink support but I'm having some difficulty modifying the .ht...
I have a problem.
I have wrote an upload form on my html page. Then created an upload php file. I added both to my webserver 1 and 1. when clicking on the script on the live webpage - it starts uploading, however the domain name/upload.php file sits there with nothing there (blank) when i check the destination folder nothing is there....
What are the main differences between PHP and Java that someone proficient in PHP but learning Java should know about?
Edit: I mean differences in the syntax of the languages, i.e their data types, how they handle arrays & reference variables, and so forth :)
...
I see many, many sites that have URLs for individual pages such as
http://www.mysite.com/articles/this-is-article-1
http://www.mysite.com/galleries/575
And they don't redirect, they don't run slowly...
I know how to parse URL's, that's easy enough. But in my mind, that seems slow and cumbersome on a dynamic site. As well, if the pa...
I've got a PHP script on a shared webhost that selects from ~300 'feeds' the 40 that haven't been updated in the last half hour, makes a cURL request and then delivers it to the user.
SELECT * FROM table WHERE latest_scan < NOW() - INTERVAL 30 MINUTE ORDER BY latest_scan ASC LIMIT 0, 40;
// Make cURL request and process it
I want to b...