I'd like to restrict php code to access the filesystem. I'd like to have
only one directory where the php code can write, create or read files,
and an other directory hierarchy where the php codes present. I need
this to avoid php code to rewrite other php code in case of bug and/or
an
Thank you for the answer.
I am running my site on a shared server, but I can overwrite the options
in the php.ini file. Unfortunately php runs as my user, so changing the
permissions to 644 doesn't work, php is still able to write anything.
Gabor
ok.. your hosting enable the php suexec.
anyone know how to backup a mysql database using PHP?
i want to write one php function to allow admin to download the mysql
database backup (mysqldump maybe?) ..
and how to restore the database backup from web based admin?
i am using a shared server and the php scripts executed under the
www-data
i know phpmyadmin..
the points is, i am writing an application.
i want the admin of the website i wrote, to be able to do backup/restore
from the main administration area.
this admin do not have access to phpmyadmin.
On Sat, Apr 5, 2008 at 2:42 AM, Daniel Brown [EMAIL PROTECTED] wrote:
On Fri, Apr 4, 2008 at 11:27 AM, paragasu [EMAIL PROTECTED] wrote:
anyone know how to backup a mysql database using PHP?
i want to write one php function to allow admin to download the mysql
database backup (mysqldump
it looks fine to me. but i want to share one bad experience with sessions.
the code i wrote work just fine on my testing server (please note, the
phpinfo is same with
my production server).
after days of figuring out why the session do not work. finally, i found the
solutions.
the solutions is to
On Mon, Apr 21, 2008 at 11:37 PM, Daniel Brown [EMAIL PROTECTED] wrote:
On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue [EMAIL PROTECTED] wrote:
I fixed this last time by looking for white space both before and
after the opening and closing php tags, as a Google search had
revealed. But
honestly, i never used any framework to do my coding.
i look into few popular framework like cakePHP and codeIgiter.
I did learn the tutorial but still decide whether to use it on my next
project.
the thing is, i already develop few working library. no matter how hard i
look into it. i always
My clients benefit downstream whenever I add to my framework. A problem
solved two years ago is a problem still solved today, and I don't need
to copy and paste into their project and thus maintain multiple versions
of the same solution.
i am quite new in php. i only spent about 3 year
http://ambiguous.dnsalias.net/
what a nice collection you have. i also have some of this files on my
server.
i don't know how the files end up on my web page directory. That time i am
using a shared
server with 300+ website hosted on the same host. i do not have ssh or
telnet access
(ftp and
You get two kinds of framework in PHP IMHO - the Glue frameworks (like
Chisimba, CakePHP etc) and the component frameworks (like PEAR, Zend
Framework etc).
personally i prefer to call component framework as code library =)
If you don't use a framework then obviously you are writing nothing but
mickey mouse programs, and wouldn't stand a chance when it comes to
writing
a proper application. For example, I have just completed an ERP
application
which contains 130 database tables, 230 relationships and 1000
I'm guessing, since you quoted os-commerce and phpBB, you don't know
shit code when you see it. Just because it's popular doesn't mean the
code is good. Have you ever tried to modify either of these? What a
mess.
honestly, i don't and not really interested to dig inside thus code. but i
guess,
All those frameworks claim their way was perfect for making love
good joke sancar. i do not see any connection between framework and making
love.
if making love what you looking for. Porn might be a good answer for you.
And I say, I'm 34 years old, and I got enough knowladge to how to make
Try looking in my signature at http://www.radicore.org
wow! i read your personal website and have it on my bookmark list. i salute
you =)
I can do this in 5 minutes without having to write a
single line of PHP, HTML or SQL. If you can't match this then you're not in
the same league.
-Tony Marston
i can only think of copy paste method if i were required to write a PHP
application
without a single line of code even a simple hello
imagine a cms, like drupal or joomla. you install the thing w/ the web
based installer then go through adding content via the web interface; u
can
do it :D
-nathan
i am going to miss the fun doing programming then.
As a comparison, framework is like a canned food. available anytime you
i have seen many php code. i learn php on my own, and during early days with
php,
i download many open source php project and try to learn the coding on my
own.
i did see many code (ugly, spaghetti code etc). Some even take me few
hours to figure out
how it works.
But one project using php in a
Yes: mine.
kind enough to let me see your code .. =)
Some day I'll pac
Sadly I have nothing worthwhile out in public right now.
everything is relative in this small world. honestly, just like you,
i also tend to think my code is good (of course because i wrote it)..
personal opinion is different than what the public might say.
some day, when
On Thu, Apr 24, 2008 at 9:50 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Wed, Apr 23, 2008 at 3:14 PM, paragasu [EMAIL PROTECTED] wrote:
Personally, i vote for www.eyeos.org project for the best php code.
Anyone
know better?
You want to see something cool?
http://stubbles.net
On Thu, Apr 24, 2008 at 10:31 PM, tedd [EMAIL PROTECTED] wrote:
The most amazing code I have ever seen?
That's easy -- just about anything that Stut, Rob or Daniel provides.
I have a whole library of their routines. Good stuff!
Cheers,
tedd
can you please give a link? i wan't to keep
With this I need one function call to create the form on the page. I can
exclude columns and set an action to be taken once the form is filled
out.
this work for general form. but when i need to make more complicated form -
with
AJAX to look up for username (available or not). Then the class
On Sat, Apr 26, 2008 at 1:47 AM, Eric Butera [EMAIL PROTECTED] wrote:
On Fri, Apr 25, 2008 at 1:29 PM, Nick Stinemates [EMAIL PROTECTED]
wrote:
That is a beatiful example of the observer pattern.
too bad, i can't find any framework out there using this concept. well, i
think
have to
i use our local email-to-sms service. it is not reliable. more often than
not,
it is not delivered to user. I did found kannel project (www.kannel.org),
opensource
gateway. but still not sure how it going to work or how to roll my own
gateway.
i guess, even we have our own gateway. we have to
i am planning to integrate chat application on my website.
the idea is to make online user on my website to chat to each other.
it is using PHP5+jQuery, i want it to be as light as possible. I am not sure
about the database to use, but i have 3 options.. file based, sqlite3 or
mysql5.
i am
im thinking you probly dont need a database unless you want to preserve
chat history.
i don't think chat history is necessary. but i need to keep some of the user
chat session
right?
but honestly, id really think about what youll be using the database for
here..
well, i am still thinking :) ..
i believe the sysv-ipc functions in php can give you access to that as
well (dont quote me tho; im to lazy to look it up atm :))
well, thanks.. i just aware of semaphore function in php. i never see anyone
use this function
yet. and i don't know how to use it .but i have something to find out
On Tue, Apr 29, 2008 at 3:23 PM, Per Jessen [EMAIL PROTECTED] wrote:
paragasu wrote:
i guess, even we have our own gateway. we have to make deal with local
ISP anyway and it cost money. if anyone out there know how. i am
really interested to know...
Forget your own gateway, it's way
You want light outta it?use the jabber2 server as a backend. It'll be
done
serving while you try to access the database. No need to do a square
wheel,
when a round one is invented
is there any free jabber2 server i can use?
On Wed, Apr 30, 2008 at 4:28 PM, paragasu [EMAIL PROTECTED] wrote:
You want light outta it?use the jabber2 server as a backend. It'll be
done
serving while you try to access the database. No need to do a square
wheel,
when a round one is invented
is there any free jabber2 server i
you build one. Thats the point of it wasn't it eh?
A friend and I made a chat with jabber throught second life (the game) and
a
php webpage.
interesting. i really wan't to try out your chat implementation. may i?
i don't know how to integrate php with jabber since i don't have much
On Sat, May 3, 2008 at 4:31 AM, Jon L. [EMAIL PROTECTED] wrote:
If you aren't already, I recommend putting to use a JS library with Ajax
support.
Nothing else, they can reduce the browser compatibility overhead coding
you'll need to do.
You can pick any of many, but I'm more familiar with
On Fri, May 2, 2008 at 4:42 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote:
umm sorry for interupting but RTFM / STFM?
btw, if you dont need history you can write an webby irc client
On 01/05/2008, paragasu [EMAIL PROTECTED] wrote:
you build one. Thats the point of it wasn't it eh
On Sun, May 4, 2008 at 5:37 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote:
glad my posts are useful ;)
anyway, you can register a channel on any server, so you dont have
actually to run one by yourself, there are zillions of networks out there
that are just waiting for you. you can also check
On Sun, May 4, 2008 at 4:47 PM, Richard Heyes [EMAIL PROTECTED] wrote:
i did try to find opensource php + AJAX base IRC client. but found none.
but there is a PEAR library available to connect to IRC server. i will
look
into it
and try to write some IRC client. it gonna be fun ;)
well, this going to be fun.
the website i am trying to scrapped is http://www.cathayholdings.com.my/
it is a movie cinema website with very irritating design. They really tried
to imposed the
security to the point it is really not user friendly. The whole website
written in asp.
I really hate to
On Mon, May 5, 2008 at 12:06 PM, Craige Leeder [EMAIL PROTECTED] wrote:
Hey Paragasu,
Sounds like fun, though not really that difficult. It is a very
horrible site, but it shouldnt' take that much to create the script
for. They do not, in-fact, use Javascript to pull the movie times from
On Wed, May 7, 2008 at 10:05 PM, Thijs Lensselink [EMAIL PROTECTED] wrote:
Quoting Angelo Zanetti [EMAIL PROTECTED]:
Hi Guys,
We have a project where by we have a map in ai format (vector format).
What
we want to do is to programmatically come up with a solution that say on
the
map
there is two way you can do this (there is more). using the function
include()
to include files based on query string or using call_user_func()
you can keep all the files/modules in one folder.
pass the module reference using GET.
from the GET we can determine which function we want to call using
On Fri, May 16, 2008 at 6:40 PM, Juergen Falb [EMAIL PROTECTED] wrote:
Dear all,
since upgrading to php5 I've a problem with session handling. In php4 a
user initiated a session, the session id gets afterwards handed over to a
payment provider. When the payment provider calls a script with
well, i never try it for my self but somebody out there already develop a simple
library to convert any HTML to image.. google for html2png give me
http://marginalhacks.com/Hacks/html2jpg/
i believe there is more interesting solutions out there. tell me if
you found one.
good luck..
On 6/14/08,
i am not sure what u want to do, for this case you need to tell us
about your database table
structure. i quess you have table like this.. assume the table name is
table1 and there are ten
column in it file1..file10 respectively
|table1 |
|member_id |
|file1|
|file2
i am a big fan of multiple return.
it save a lot of my time and it makes my code a lot more simple and readable.
On 6/29/08, Roberto Costumero Moreno [EMAIL PROTECTED] wrote:
There is a point between Multiple early return vs. One last return, which
is Efficiency.
Imagine you have a code
i am planning to use postgresql for my next project (social network).
anyone can point me any website using postgresql database?
it will help me a lot.. thanks..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i am afraid to rely on mysql5 since it is already purchase by sun.
there is nothing wrong about sun. but i see there is more i can do
with postgresql.
On 6/30/08, Nirmalya Lahiri [EMAIL PROTECTED] wrote:
Paragasu,
You are making a very good plan. I, from 2004 working on PostgreSQL. I can't
paragasu wrote:
I develop a relatively
large, in-house application using PostgreSQL that I can't wait to convert to
MySQL.
well, you should give me a reason why you want to do this.
What exactly scares you about Sun/MySQL?
personally, it is not about i am scared. i am still continue to use
i agree, salesman can make a lot of difference influence costumer.
sometimes they are really a headache because salesman not really a
technical person and know nothing about technical info. always
suggesting something complicated and
irrelevant feature to costumer. wtf
On 7/1/08, Will Fitch
i am planning to create a web photo gallery. i know there is a lot
available out there,
but i really want to create my own. the problem is not about creating
the photo gallery.
i want it to be scalable.
the plan is saving the image metadata in the database and keep the
original files
in a folder.
album?
On 7/10/08, Per Jessen [EMAIL PROTECTED] wrote:
paragasu wrote:
i am planning to create a web photo gallery. i know there is a lot
available out there, but i really want to create my own. the problem
is not about creating the photo gallery.
i want it to be scalable.
The first question
where to store the image.
I think, storing image in a bucket with 100 images each can make the image more
manageable..
thanks for that idea..
On 7/11/08, Robert Cummings [EMAIL PROTECTED] wrote:
On Thu, 2008-07-10 at 15:46 +0800, paragasu wrote:
i am planning to create a web photo gallery. i know
, 2008-07-11 at 07:55 +0800, paragasu wrote:
what Robert suggest, is something exactly what the big-big photos
gallery out there used
to store their image. Distributing the image into many servers. But i
am not very sure, how
they store the image location information inside the database
Why not use a hash table based upon the name of the file and distribute files
that way?
sorry tedd, i don't really get it. but i am interested to know more
about the hash table concept.
can you explain a little bit more..
thanks..
On 7/11/08, tedd [EMAIL PROTECTED] wrote:
At 10:41 AM -0400
oic.. the concept is relatively simple.. thanks for the explaination daniel..
On 7/13/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Sat, Jul 12, 2008 at 2:37 PM, tedd [EMAIL PROTECTED] wrote:
Hey, let's knock off that old shit, newlywed !
Just because you finally got laid doesn't mean you can
i don't wan't to go off without saying congrats to Rob too!
congrats Rob.. i am quite amazed that PHP mailing list is the first
thing in your mind
after receiving that news.
I wonder what is your son name?
btw, Zend is a good name ;)
On 10/1/08, Ray Hauge [EMAIL PROTECTED] wrote:
Daniel Brown
i am not sure if this one can be counted as OT. but, i found a JQuery
extension you can use.
it is a javascript http://code.google.com/p/flot/
and here is the result example http://ajaxian.com/archives/plotting-in-jquery
quite fancy ;)
On 10/8/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Tue,
PHP framework vs just php ?
http://paul-m-jones.com/?p=315
according to the benchmark.Just PHP win by more than 100% to average framework.
even the fastest solar only manage to serve 154pages/sec compare to
just php 1320pages/sec
call me outdated. but i stay with just php!
On 10/8/08, Eric
i found a few website provide this service but i don't remember the name.
Maybe html2png is what u looking for
http://marginalhacks.com/Hacks/html2jpg/
On 10/18/08, Nitsan Bin-Nun [EMAIL PROTECTED] wrote:
In general thats what I would do:
Install firefox on the server,
Open FF, take a screen
i am using php with postgresql. when i submit post query to the
server. i have the pg_exec error
snip
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid
byte sequence for encoding UTF8: 0x93 HINT: This error can also
happen if the byte sequence does not match the encoding
i do not use any function other that addslashes on the $_POST
On 10/30/08, Lester Caine [EMAIL PROTECTED] wrote:
paragasu wrote:
i am using php with postgresql. when i submit post query to the
server. i have the pg_exec error
snip
Warning: pg_query() [function.pg-query]: Query failed: ERROR
do you have any idea how to do this. i have a small vps about 10GB
space. i live somewhere is south east asia where solutions like Amazon
S3 is incredibly slow. (500ms ping time).
i have a simple php gallery. But dedicated server is quite expensive
($100/month). searching around, i found several
/28/08, Nathan Nobbe quickshif...@gmail.com wrote:
On Sun, Dec 28, 2008 at 6:37 AM, paragasu parag...@gmail.com wrote:
do you have any idea how to do this. i have a small vps about 10GB
space. i live somewhere is south east asia where solutions like Amazon
S3 is incredibly slow. (500ms ping time
uh.. nice flash website grandpa =)
On 12/31/08, Peter Sorensen nordstjerneall...@gmail.com wrote:
Dotan Cohen dotanco...@gmail.com wrote in message
news:880dece00812301337m1cca395cxcb1ef500d8c10...@mail.gmail.com...
2008/12/30 Nordstjernealle 10 nordstjerneall...@gmail.com:
Hi Dotan
I am
if you want client to send encrypted form to server. then it must be
done using some kind of
client side script (javascript?). i don't think it is reliable.
why not just use https protocol. all data between client and server
will be encrypted.
On 1/1/09, Per Jessen p...@computer.org wrote:
hi Herbet,
i am interested on what your are looking for. maybe you just have to
write a PHP script to
loop through every yourtube account. btw, if you found the solutions,
please tell me or we can work on the solutions together?
On 1/7/09, L. Herbert lherb...@iluvmydesign.com wrote:
Stuart,
one of my client says his company do have a program to test php code for common
programming security problem like sql injection etc
i am curious but he do not want to tell what the program is.
do this program exists? what is it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
i do have a mysql table with one date field.
what i want is to display and tiny icon (red new icon) so user will
notice it is a new post.
i am looking for the simplest solutions here.
i believe we can calculate whether the date is within two days of user
current time.
then we display an icon
to do
If ((current timestamp - db timestamp) 172,800 ){
echo 'img src='new.gif'';
}
Conversely, you can use strtotime() to convert the date.
Bastien
Sent from my iPod
On Jan 14, 2009, at 10:36 PM, paragasu parag...@gmail.com wrote:
i do have a mysql table with one date field.
what i
i have this cute little problem. i want to print a to z for site navigation
my first attempt work fine
for($i = '65'; $i '91'; ++$i)
echo chr($i);
but someone point me a more interesting solutions
for($i = 'a'; $i 'z'; ++$i)
echo $i
the only problem with the 2nd solutions is it only
$letters = range('a', 'z');
foreach ($letters as $letter) {
echo $letter;
}
wow.. that is a very nice solutions you give me chris.
thanks
On 1/15/09, Chris dmag...@gmail.com wrote:
paragasu wrote:
i have this cute little problem. i want to print a to z for site
navigation
my first
i successfully configure vsftp login using pam-mysql last time.
http://pam-mysql.sourceforge.net/
http://www.linux.com/feature/125789
user can login to ftp server using the same password on web..
hope it help
On 2/18/09, Michael Kubler mdk...@gmail.com wrote:
Yeah, I don't want local user
why not use ready available php library OAuth?
http://oauth.net/
On 9/1/09, Shawn McKenzie nos...@mckenzies.net wrote:
Behzad wrote:
Dear list,
i'm trying to integrate two php-driven web applications, which both
require the user to authenticate using a username and a password.
Consider a
why bother, i use available good library
http://swiftmailer.org/
On 10/6/09, Jim Lucas li...@cmsws.com wrote:
Eddie Drapkin wrote:
On Mon, Oct 5, 2009 at 8:48 PM, Jim Lucas li...@cmsws.com wrote:
Here is a problem that I have had for years now. I have been trying to
come up
with the
?php
/** this going to be a long wish from Malaysia
* @author paragasu
*/
do { echo 'wish you .. \n'; } (date('Y') 2010) ;
exit (' Happy New Year');
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
maybe another way can be
$str = explode('-',$mydata-restored);
if($str[0] == '') { dostuff();}
;)
On 1/26/10, shiplu shiplu@gmail.com wrote:
Another technique could be.
$s = $mydata-restored;
if($s[0]==$s[1]
$s[1]==$s[2]
$s[2]==$s[3]
$s[3]==0){
do_work();
}
But I
..
Paragasu
Just build what you want to build and look things up when necessary.
I did exactly like this. My first application is a forum. It never made it
to production,
but i learn a lot. And i am glad i learn it this way. It is a bit costly but
fun.
On Sun, Apr 25, 2010 at 11:01 PM, David McGlone
77 matches
Mail list logo