Hi,
I am currently using the Yii framework, and I would like to know if anyone has any clue on how to setup a SEO friendly url like www.twitter.com/ automatically in Yii? I know how to do so this manually in the config/main.php but I would like to be able to dynamically generate it. I have been able to do it in Grails as well. In Yii, wh...
Hi all,
I have created my own extension and modules. I can view the modules fine, by going to their URL. However, now I want to embed them on a page, much like a content class. How do I go about doing that?
Thanks!
...
How would i go about taking all information thats submitted via POST to a page, and storing it in a db as a readable array
Right now i have this function:
$mysql = mysql_query("INSERT INTO `table` (`sid`, `contents`) VALUES ('$sid', '$contents')") or die(mysql_error());
if($mysql){
return TRUE;
}else{
return FALSE;
}
when i pas...
I don't want to use it to construct the whole site,
instead I want to use it just to manage part of the posts on the site.
Is drupal fit for this kind of job?
EDIT
If the answer is yes,can you provide some guidance here?
I just want to use it to edit/manage the posts,but show it with my own code.
...
hi i am having one form in that input fields are regno,name,date of birth etc with this input fields i need to attach image along with this input fields how i can do using php/javascript can anyone help me out thanks in advance
...
Hi guys. is it possible to post a session array from one page to another and if so how :D
regards
...
There are users that can be referenced by an id as seen in the table below:
users:
user_id
I have attempted at a solution for keeping track of show views
tvshow_hits:
user_id|show_id
There is also a table with details in it:
tvshows:
show_id|name
But that is not required I'm open to change. I feel it isn't necessary to keep trac...
How can i remove a line from an array where the key name = a given target...such as
[name] => super [price] => 65.87 [quantity] => 25 [addtocart] => 1
say i wanted to remove the [addtocart] => 1 part
...
Im trying to calculate a subtotal and a total from a series of values stored in an array returned from a mysql database.
this i what i have thusfar
while($row = mysql_fetch_array($cart)){
foreach($row AS $key => $value) { $row[$key] = stripslashes($value); }
$id = $row['id'];
$contents = unserialize($row['contents']);
foreach( ...
I'm looking for an alternative to Package Foundry. It doesn't have to be - and I'm sure won't be - free or anything like that.
It also needs to be able to create a configuration file, which asks for their database details and such. Without that, it's just an automated FTP app, which is of limited use.
Are there any alternatives which m...
On my site I have given an option to user to choose thier profile image
Type link of an image
Image is a url link, and first I want it to resize to 400x300 (image's original size doesn't matter), and then display it on my web page.
Something like below:
<img src="http://mywebsite.com/resize.php?image=http://someotherurl.com/upload/...
Short question: how can I test whether or not a directory in my website is in practice writable for the rest of the world (even outside my own machine)?
Context:
I run this website where the hosting provider has implemented an odd security system. To let PHP write files to disk on the (linux) server, the target dir should have write pe...
I have a quick question i hope you guys can answer, i've got a search system that uses POST to do searches, now i want to track queries using Google Analytics but it requires using GET url parameters to pull parameters out the URL, what i don't want to do is rewrite the entire search system to use GET instead of POST. Is there any way ar...
I am looking for a PHP class that can parse an ICalendar (ICS) file and correctly handle timezones.
I already created an ICS parser myself but it can only handle timezones known to PHP (like 'Europe/Paris').
Unfortunately, ICS file generated by Evolution (default calendar software of Ubuntu) does not use default timezone IDs. It export...
Hi,
I am familiar with using PHP to perform mySQL queries. However, I have been using reg exps as protection against injection attacks. After reading several questions/answers here on SO, I've decided to opt for prepared statements instead.
There's two options available (let me know if there are more):
mysqli prepared statements
PDO ...
I need to parse a string to two variables according to the following rules, and I'm looking for the best way to achieve this in PHP:
"40.3" -> minval=40.3, maxval=40.3
"-40.3" -> minval=-40.3, maxval=-40.3
"40.3-60.76" -> minval=40.3, maxval=60.76
"-40.3-60.76" -> minval=-40.3, maxval=60.76
"-60.76--40.3" -> minval=-60.76, maxval=-40.3
...
Hi, I am new in database programming and my task consists in creating a database for my school where students can get registered online. So I am wondering how I can make that happen such way that whenever a student sends his/her registration form to the registrar, a signaling message may automatically appear to him and treat the document...
I need help on creating a basic log-in page and registration page. I only know the basic stuff on php. And my boss told me to use the database he created online (phpmyadmin). So how do I connect the .php file I created to the online database? I have experienced connecting it to a database. But not the one that's online. Any help please? ...
I have a requirement to dynamically generate and compress large batches of PDF files.
I am considering the usual algorithms
Zip
Ace
Rar
Any other suggestion are welcome.
My question is which algorithm is likely to give me the smallest file size. Speed and efficency are also important factors but size is my primary concern.
Also do...
Hello all,
I make 7 get requests at the same time to one PHP script - two of the requests are successful and the other requests I get an output of Max Execution of 60 seconds exceeded!
The thing is I have put this at the top of my script:
set_time_limit(300000);
I have also set this in my PHP.ini file and have restarted apache sever...