I have a list of existing files that need to be; a) Stored in a temporary file, b) Modified, and c) Transferred to another server via FTP. All while the server is running in safe mode.
I can't use tmpfile(), because I still wouldn't be able to modify it, before sending it off.
Anyone come across this kind of problem and find a solution...
Is anyone know How can I login to my PHPBB forum from my site.
I need to PHPBB forum login from my site without login to forum.
I heard about PHPBB_Login class but i dont know how to config it.need quick reply.
Thanks.
...
Is there a way to get around having to reference Global variables inside a function in PHP?
I just hate having to use the 'global' keyword for every variable, and I've been told that using constants (as an alternative) in PHP affects performance badly.
...
Hi all,
I have a thing which I thought should work, but it doesn't.
I have several Controller_## classes, they all extend from Controller_Core. Each Controller_##-class has a public function Save(). Now I figured that I want to perform some other general checking (addslashes for each $_POST-var) and thought if I add a public function S...
I'm using the following code in php:
PHP:
$suggested_sentence[0] = "Hello, how are you?";
echo $suggested_sentence[0] . ' <input type="image" src="button.png"
onclick = update_textarea('. $textareacount.','. "'".$suggested_sentence[0]."')/>";
Javascript function:
function update_textarea(count, new_sentence) {
document.get...
I have some users listed below in an order:
user1
user2
user3
user4
user5
This is just a simple list, sorted according to age.
Now a new user (user6) comes in, and according to the sorting, he fits after user 2, so the order becomes like:
user1
user2
user6
user3
user4
user5
Now I want to know at which position it is. For example it ...
I run a church website and we have an event calendar page. We've been using Google Calendar for this - but there isn't a way to make everyone have the same default calendar - so some people are adding entries to their personal calendars and these are never showing up on the public calendar. I've been thinking about moving to either a hos...
plz help.i want to be comfort with linux but UBUNTU just frustrating me please..,I were trying to use bluefish editor and struck while running php file by pressing view in browser button
In external command,the firefox entry is as
firefox -new-window echo "http://localhost/%n" | sed s/"home\/tarun\/www\/"/""/
i am able to open php file s...
My web hosting PHP setting has a hard limit of 200mb for maximum upload size, is there any way to split a video file of 2GB size into 200mb each and upload then concat at server side?
I'll be using either PHP or Flex for upload using HTTP protocol. No FTP.
...
So I am learning to develop a video chat with multirooms/groups and I know basically what to do for a simple live video chat application. For example:
public function setupconnection ()
{
youRtmp ="the URL for your rtmp";
nc=new NetConnection();
nc.connect (rtmpNow);
nc.addEventListener (NetStatusEvent.NET_STATUS,Con...
Following "problem"
PHP Class with a lot of propertys. A lot of Getters / Setter.
Is there any nice solution to convert all propertys to an array?
protected $name;
protected $date;
public function getName();
public function getDate();
public function asArray(); // call all getters?
...
Derek Allard recently announced that new projects should use CodeIgniter 2.0 whose code is well baked and it is fully PHP5.
What concerns me though is the process seems ad-hoc, there was no beta though he recommends this as being stable for all future code and it is still making updates off 1.x instead of a rewrite.
There is also littl...
Hi, im a little stumped here. Im testing some scripts that I have wrote on my computer (wamp) but for some reason when using preg_match_all() nothing works!
I even comment out most of the other code to see if something was interfering but no, still the same. Errors do show but not when using preg_match_all();
any help much appreciated;
...
Ok, what I'm doing right now is just echoing an script tag. For example:
echo '<script>alert("Hello world")</script>';
Is this the right way to do this? or is there a better way?
...
I'm in the process of creating a PHP data structure based on some data I'm fetching from somewhere.
If I would encode this information in some standard container, like XML or JSON, I would use this structure:
[ {'name': 'Lupin', 'age': '13'}, {'name': 'Igor', 'age': '24'}, ... ];
However I'm a bit unsure what to use in PHP ( Array o...
Write a program that outputs the numbers that are divisible by 8 and are between 200 and 600 (inclusive), separated by commas (without spaces or line breaks).
...
HI guys, my application uses a lot of different javascript files. SO I tried to be quick about it and accomodate all the files in one single file. This I did by creating a single php with the following code:
<?php
header('Content-type: text/javascript');
$js = array( .... ); // all files to include
$js = array_unique($js);
foreach...
i have following script in php to login to mysql
$db_host="localhost";
$db_user="root";
$db_pass="123";
$dbc=mysql_connect($db_host,$db_user,$db_pass) OR DIE (mysql_error());
$dbs=mysql_select_db($db_name) OR DIE (mysql_error());
this script was working fine, now i reinstall the O.S
now i have windows 7 and iis7 and PHP...
Hi,
I am trying to get the Zend_Filter_Input to work as required on a simple login form.
Here is my code
$filters = array('username' => 'StringTrim', 'password' => 'StringTrim');
$validators = array(
'username' => array('Alnum', 'presence' => 'required'),
'password' => array('Alnum', 'presence...
We have a php application written in zend framework and are wondering what would be the best way if we wanted to keep our users logged in for more than a day, e.g. a week or even more.
Do we need sessions for that? (uses table space and memory?) or is it better to work with cookies? (security?)
...