I'm trying to access yahoo mail IMAP server with a php script. I read that yahoo requires a specific IMAP command “ID ("GUID" "1")”. How do I send this command ?
Hi ,
Does any one know of an article's on the element's / structure needed to create a flash , php , MySQL cms ?
I failed to mention flash would be the GUI for the CMS
Suppose it's a nub question, but is there an analog of mysql's LIKE function in php?
So, e.g. :
like('goo*','google.com');//is true
like('*gl*','google.com');//true
like('google.com','google.com')//also true
I know regex rullez, but don't know any solution to reach this
I've been using the $_SERVER["DOCUMENT_ROOT"] environment variable to refer to the public root in my apps. Now I'm realizing that that's not very reliable. I'm thinking about an approach where I define a constant in my index.php based on a magic constant. Something like that:
define("PUBILC", __DIR__);
I'm not sure about it though.
What approach would you recommend?
I'm currently using a modified CSS Cacheer as an alternative but its syntax is somewhat vague and adoption is, well, abysmally low... Documentation is hard to come by as well.
I'm looking to switch to SASS as it has a bigger user base than CSS Cacheer and better documentation. I am aware of phpHaml but it doesn't have support for SASS yet.
Any recommendation on a SASS parser for PHP? Preferably it should support SassScript.
I know there are minimalist forums out there like punBB - but has anyone ever run into a super tiny forum/discussion system that was barely more than posting comments? Are there any microscopic forums hidden on google code or github?
I found a PHP version of ruby's Beast written in CodeIgniter - but it was still pretty large.
I work a lot with Wordpress and I'm trying to customize some of my themes, all of which are written in PHP. I've been trying to learn this language for a little while, but I'm not an experienced coder (My knowledge only includes HTML with some CSS). Can you recommend a guide/book/tutorial/etc that would work for a beginner?
So I have a simple Apache with MySql I am developing a PHP app. I have Users Table in my DB. I vant to let them store Icons.
My question Is what's the best way of attaching such data as icons (100-250kb's) to DB - Is it beter to store them Inside DB or store them as File and some how attaching links to icons into DB. What's the best way? Are there any classes that automate this process (of attaching such data to DB)?
All over the Internet, included even here at StackOverlow, people state that a good way to check if a request is AJAX or not is to do the following:
strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' )
However, I don't see $_SERVER['HTTP_X_REQUESTED_WITH'] in the official PHP documentation
And when I try to do the following:
echo $_SERVER['HTTP_X_REQUESTED_WITH'];
Nothing is outputted.
Am I doing something wrong? Because I'd really like to be able to use $_SERVER['HTTP_X_REQUESTED_WITH'] if it's available.
I simple want to rar a folder with the help of php, so there's 2 ways to do this one is via shell_exec or exec, which isnt working for me but shell_exec and exec is enabled on server and working for other commands
other method is via .sh file, but i dont know how to use it properly :(
i need some code which works properly for this
I have a PHP redirect page to track clicks on links. Basically it does:
- get url from $_GET
- connect to database
- create row for url, or update with 1 hit if it exists
- redirect browser to url using Location: header
I was wondering if it's possible to send the redirect to the client first, so it can get on with it's job, and then log the click. Would simply switching things around work?
hai everyone........
I am trying to generate dynamic menu according to the user permission given with ACL component in cake php..
ie., if a user logins, i need to check which all actions are permitted for that specific user and according that list of actions i need to generate menu
can any one help me to get all the permitted actions from the acos,aros,acos_aros tables
thanks in advance
Hey guys,
How can I, in PHP, get a summary of any URL? By summary, I mean something similar to the URL descriptions in Google web search results.
Is this possible? Is there already some kind of tool I can plug in to so I don't have to generate my own summaries?
I don't want to use metadata descriptions if possible.
-Dylan
Hi, I have a MySql table called today_stats. It has got Id, date and clicks. I'm trying to create a script to get the values and try to predict the next 7 days clicks. How I can predict it in PHP?
(don't know if this better belongs to SU/SF, feel free to move if so)
Hi, I've got a directory with 1000+ subfolders full with hi-res images. I'm looking for php software that would allow me to explore it server-side: browse folders - preview images - download hi-res. NB: support for print formats (tiff, eps) is a must!
I'm new to PHP and i was trying to learn mod rewrite to rewrite my URLs i use godaddy as my hosting company and they say to add the desired code to the body of your .htaccess file how do I mod rewrite my URLs and add it to my .htaccess file?
Can some one give me an example of how to do this as well as point me to a good tutorial and or book on how to mod rewrite my URLs?
Suppose in a file there is a pattern as
sumthing.c: and
asdfg.c: and many more.. with *.c: pattern
How to replace this with the text yourinput and save the file using php
The pattern is *.c
thanks..
hi all,
we have developed e-learning web site for one of our customer.
recently he asked he need SCORM feed.
i dornt know whether my system is compatible with scrom.
do any body know any opensource php tool or lib to generate scrom from existing data.
thanks
hi,
I want to extract particular part of HTML using tidy in php.
the html page has table in it and i just want to fetch that table from html page.
please help and post the solution....
Thanks
Just a quick question: is the following PHP code secure? Also is there anything you think I could or should add?
$post = $_GET['post'];
if(is_numeric($post))
{
$post = mysql_real_escape_string($post);
}
else
{
die("NAUGHTY NAUGHTY");
}
mysql_select_db("****", $*****);
$content = mysql_query("SELECT * FROM tbl_***** WHERE Id='" . $post . "'");
Whats the best way to send data to the server and have it run through a php script. Bearing in mind I do not want to have the user redirected to a different page and no response needs to be sent back from the server.
This is a general question. What are some techniques you employ to prevent the links in your PHP code from breaking every time you move a file or switch a directory?
in server ,
i have some.php , when i try to read the content using file_get_content and fread both these not reading my content..
if i try some other url like yahoo.com , these function reading content , any idea, WHY this prob
Trying to wrap my head around the new PayPal Adaptive Payments API - specifically the ConvertCurrency functionality. Has anyone had any luck with this in PHP?
Documentation: https://www.x.com/docs/DOC-1400