Guys, I am fairly new to PHP. Here are a few questions, if anybody can
answer it will help me get started. Thanks
I am trying to build a website and I would like to do the following in
my scripts
1. I want to return response to the browser and AFTERWARDS make a log
entry in to a database.
Nevermind. Just because they can't afford a database redesign doesn't
mean they can't afford a new index table containing date-indexed links
to both tables entities.
On Sat, 2007-10-20 at 21:39 -0400, Nathan Hawks wrote:
> I'm doing a project where the database was designed before me and they
>
> > >> > I want to prohibit an image from being shown to anyone who is not
> > >> > permitted (i.e., logged in).
> > >> >
> > >> > The way I want to do this is to:
> > >> >
> > >> > 1. Set [file] permissions...
> > >>
> > >>
> > >>
> > >> What if 2 or more users access the application at th
Are you running a multi-user hosting service?
If so you can create include files on a per-user or per-domain basis.
Use the Apache config directive php_value to set your include_path and
open_basedir appropriately for each account; and other options as
desired.
I don't know of a particular site,
> >> I think I found a solution.
> >>
> >> Here's the url:
> >>
> >> http://www.webbytedd.com/bbb/image-test1/
> >>
> >> The point is that the image is only accessible via this script, is
> >> this correct?
> >
> >I can access it without a script:
> >http://www.webbytedd.com/bbb/image-test1/i
I'm doing a project where the database was designed before me and they
don't have a budget for a database re-design. There are two entity
tables which /should/ have been the same model with some meta-fields
keyed off a type field, but it's not. It's two tables, which should be
displayed intermixe
Hi all,
You've all likely heard this before"I was hacked..." , "Had register
globals on..." etc etc.
Well, this is true of me as well.
Does anyone know of a site that would help a semi professional lock down
php, i.e.
Perhaps how to install phpsuexec,
Jail users to only have the ability
I was asking myself if the super-possibilities offered by the runkit
extension could be used in a "good" way
I'll like to use runkit to define superglobals like $config, for example./
I'll like to use runkit to modify Class extension & implementation, making
it more "Javascript" like.
I'm very f
Hello,
Can someone tell me what is wrong here please?
--
define('BASE_PEAR_DSN','mysql://root:[EMAIL PROTECTED]/db');
if(is_includeable('Log.php')) {
require_once('Log.php');
$logConfig = array('dsn' => BASE_PEAR_DSN);
$logger = &Log::singleton('mdb2', '
Martin Marques wrote:
Stut escribió:
Say you have a function that builds a fairly large array and then
returns it. If you just return it as usual PHP will make a copy of
that array and therefore use twice the amount of memory than it needs to.
References also provide a way to return more th
At 11:58 AM -0400 10/20/07, Robert Cummings wrote:
Most likely
though, you have access to .htaccess and so you could create a locked
images directory that exists within the web tree but which can't be
accessed by a browser. This would give you what you need to be within
the confines of safe mode
Hi gang:
Does this work any better at keeping the image safe?
http://www.webbytedd.com/bbb/image-test2/
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
On Sat, 2007-10-20 at 09:59 -0400, tedd wrote:
> At 4:59 PM -0400 10/19/07, Robert Cummings wrote:
> >On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote:
> >> > I want to prohibit an image from being shown to anyone who is not
> >> > permitted (i.e., logged in).
> >> >
> >> > The way I want
At 8:37 AM -0500 10/19/07, Philip Thompson wrote:
I know we went over references (C) in first semester programming. Excuse me
if this is too trivial, but why would you want to use a reference? I thought
in PHP, specifically, that it is unnecessary to use references.
A lil' embarrassed,
~Philip
I am trying to use the Google's PHP API (ZendGdata) to add Categories
(labels/tags) to the posts for a blog.
I know how to define Category, but I am at a loss when it comes to
adding that Category to a entry (post). Any ideas how this can be
done? Any examples will be highly appreciated.
$catego
At 1:45 PM -0700 10/19/07, Instruct ICC wrote:
> Hi gang:
I think I found a solution.
Here's the url:
http://www.webbytedd.com/bbb/image-test1/
The point is that the image is only accessible via this script, is
this correct?
I can access it without a script:
http://www.webbytedd.com/
At 1:57 PM -0700 10/19/07, Instruct ICC wrote:
> but in the img tag, try src="display_image.php?id=anId"
and in display_image.php, test if the user is authorized before
displaying the image.
Then a direct call to display_image.php?id=anId would still have a
chance to authenticate the user.
At 4:59 PM -0400 10/19/07, Robert Cummings wrote:
On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote:
> I want to prohibit an image from being shown to anyone who is not
> permitted (i.e., logged in).
>
> The way I want to do this is to:
>
> 1. Set [file] permissions...
What if 2 or
At 1:31 PM -0700 10/19/07, Instruct ICC wrote:
> I want to prohibit an image from being shown to anyone who is not
permitted (i.e., logged in).
The way I want to do this is to:
> 1. Set [file] permissions...
What if 2 or more users access the application at the same time?
Set the perm
At 1:09 PM -0400 10/19/07, Wolf wrote:
actually, you could run it by
1. making the page
2. flushing the output buffer (which puts it in the screen)
3. run the 2nd script
Nope, tried it.
Whatever is done in a script is done before any output to the browser.
Cheers,
tedd
--
---
http://sp
At 6:23 PM +0200 10/19/07, Zoltán Németh wrote:
2007. 10. 19, péntek keltezéssel 12.07-kor tedd ezt írta:
At 8:19 PM -0400 10/18/07, TG wrote:
>Describe the process a little more.
Ok, here's what I want to do.
I want to prohibit an image from being shown to anyone who is not
permitted (i.
On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
>
>
> Robin Vickery wrote:
> > On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
> >
> >> hi
> >> I have a problem with calling functions:
> >>
> >> >> function solution1($var1){
> >> // some code
> >> }
> >>
> >> function solutio
Both versions are PHP 5.2.4_p20070914-r2
I backchecked the rights a couple of times. There to problem
does not appear.
I cant really understand what is happening. On the server
eaccelerator and memcache is performing its work. I believe
that when I restart the apache and as well the memcache all
23 matches
Mail list logo