how can i create live meter of percentage for file upload with php jquery....please don't refer me to stuff like uploadify...i want to create my own...
Hi,
I have a folder for downloads on my server, i want to prevent direct access to that folder so i am makin it pass-protected with htaccess and i will push download with a php script. But i have some questions regarding mkdir and file_exists
Do mkdir and file_exists works good for pass-protected folders ?
and
would i get any error while uploading file to that folder ?
AND
is this a good way of preventing direct access ?
thanks
How would I write a SQLite query to select all records from a specific month?
My dates are stored as Unix timestamps. PHP code is allowed in your solution if it's required. SQLite2-compatible queries only, please. :)
I have a table with my products and I'm trying to write a page that would pull bracelets with certain colors from the database. So here's what I have right now (in php):
$query = "SELECT * FROM products WHERE (products.colors LIKE '%black%')";
But I only want to select rows where the value for the column "category" equals "bracelet".
I've tried a few different things, but I keep getting warnings and errors. I appreciate any help you can give, thank you!
Not sure if this is possible..basically a server forwards/bridges an incoming connection
Client - Server - Destination
Now, rather than a normal proxy script on the server(or a simple redirect),
1) the Destination sees the incoming connection as from the CLIENT (not from the SERVER).. aka masking the server
2) the Server in the middle streams the data back to the client(without downloading it first, then passing it)
Anyone know how to do this or something like it in PHP ?
I'm developing a site which monitors user's date.
It uses the cURL over PHP.
It first gets authorized using cookie and then parses the required data.
My problem is that it needs to fire multiple requests to the server (for all registered users) and this may
Get me banned by the remote server.
I would like to know if there is something I could do to prevent being banned.
(This activity is legal - the users have provided their login information)
Thanks
How can i acces an Array Element in Smarty with a second variable as index?
Imagine i have an array of language
[99] = Array
(
[language] = English
)
I tryed this :
$memberLanguage.id is 99
so logicaly you would acces it this way
{$language.$memberLanguage.id.language} but this doesnt work.
in PHP i would do it this way
$language[$memberLanguage['id']]['language']
How can i access the Array Element Dynamicaly?
Hey guys, i've this theme of the week script, easy, just post like normally, save in database and echo it in a column.
But since its theme of the week, i would like it to automatically renew the value to say "none" or "not set" after a week. I know cron jobs could do this but is there another way? [Running in PHP]
I develop applications using PHP and MySQL. They're not trivial, though they're not too complex. As an example to that I have written an online application to enable football administrators manage the player, competition and judiciary processes.
Separately to that I have used Joomla to create websites for small businesses.
I'd like to be able to use Joomla as my online application development environment. Is there a way I can use Joomla for that?
Hi,
I have tried to find the link or document to know how to use google map for my site. I am using php. I need code for this. Though I tried a lot to find, may be the way I tried was not correct. Can anybody suggest me the link where I can find the code for google map use.
Thanks in advance.........
Hi,
I have a mySql database i want to display only 10 words from its body field which contain html codes, How i can do that, is there any php function to do that.
I start to learn class in PHP. According to my experience with other language, i can tell class is different then function. So, how we spot if our class start to be too much and too important and how we minimize its impact ?
hi
i have installed "phpmyvisitors" cms to get statistics of my sites visits.
it is written in php and is open source.
i gets many useful information like:
-total visits
-viewed pages
-visitor browser informations
-visitor distribution over the world
-how visitors access to site
-how much time they spend on sites
and ....
it is some think like Google Analytics.but fewer features.
my question is:
" how does it do all of them? "
Hi there, my name is Tal,
Im working on a PHP Application the should have lots and lots of records, what DB should I use, and are there guides on the web that explains how to build efficient dbs and tables?
Tnx!
I need to trace the ipadress (where my website access)for optional loading of my theme.Explanation:
I want to add a share link to twitter and facebok in my application.i think in some countries like china;twitter blocked.Thats why i need to check from where my site is accessing.otherwise which affecting my site's performance.How can we solve this problem in PHP.If anybody have experience please help me..
What are the advantages and disadvantages of storing an image as a blob in the database vs storing just the file name in the database.
I'm using PHP(CodeIgniter) with MySQL.
I know this question is subjective but a client asked me this question and I couldn't give a good answer.
I have 2 servers that are on completely separate OS' and configurations. One properly accepts require_once '../file.php'; and the other doesn't, because it's relative to where the cron is loading I guess.
How can I fix the 2nd location so that it's relative path is from the relative path of the file. I need this to work in 3 different environments (local, beta, and live) so I don't want to write a bunch of code on this page, I'd prefer a configuration adjustment if possible.
You know how if you type links: "yourwebsite.com" into the normal google search box, it tells you the number of sites linking to you and their addresses.
How can I do it programmatically with php? Does google provide an api that can I can programmatically query? What are my options?
<?php
echo (2884284 >> 16), '<br>'; // = 44
echo ((2884284 >> 16) & 0xFFFF), '<br>'; // 44
from the above i got 44
so how can i retrive from 44 to 2884284 ???
Hi,
I am developing pages in php dynamically i.e data gets filled up from mysql DB. how do i assign a proper meta data and description for these dynamic pages so that google recognises it properly.
What needs to be passed in page so that google takes description properly. when i search a page in google. it takes the data in page as description not description tag contents
hi all,
I want to know that is there any way to know after which page an user is leaving the website.
So that I can track that page and work to improve the content of that page.
I am using PHP as backend code.
I have a flash application (a game) and it needs to pass data to a php page to save the user, and the user's score. However I don't want the user to be able to alter the score him/herself or to initial a scoring without using the application.
What is the best way to do this?