hi all,
a little stuck here. trying to pull a bunch of unix timestamps out and show
only those that show up today. problem is that when i hit the first match,
the rest of the dates don't show. code follows:
==
$sql = "SELECT * FROM dates";
$result = mysql_query($sql) or mysq
Can anyone recommend (or is there) a utility / app that I can use to hit my
webserver (say from another computer outside my subnet) -- any number of
times to get an idea of performance - based on my bandwidth and hardware?
In other words -- I'd like to do some hard core testing of my website and
I am migrating a site to a new host (westhost.com) and having some
issues. PHP was compiled as a cgi instead of a module which is what I
have always used. This wasn't really an issue until I realized a lot of
my scripts that depended on apaches environment variables ($REQUEST_URI,
$HTTP_USER_AG
Pdflib 3.03 compiles OK and builds a static library -
/usr/local/lib/libpdf.a.
PHP fails to configure - cannot find PDF_show_boxed in the library -
pdflib extension requires pdflib 3.x.
This command is in the library and the header file. Configure finds my
tiff & jpeg library (--with-tiff-dir=/u
hi.
i have a project to build a free hosting where its support php,perl & mysql for free.
i would like to make a file manager like geocities.com, i used php for file manager.
if i use file upload to directory in my server, it shlould 777 mode, is in't?
if yes, i think it's not s
> > This function suddenly stopped working, and I just can't seem to figure
> out
> > why. The only change made recently is that now the value of $force at
> > calltime is sometimes true instead of being undefined or null.
> >
> > build_file("file_content","/path/to/file.inc","w",TRUE);
> >
> > f
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Alvin Tan") wrote:
> a little stuck here. trying to pull a bunch of unix timestamps out and show
> only those that show up today. problem is that when i hit the first match,
> the rest of the dates don't show. code follows:
>
> ===
You know, I was wondering the same thing. My situation is the same. My
opinion is that the professional version probably strips out most of the
beginner's content and adds more advanced php content and dives into
everything in more detail rather than just trying to get a beginner off
their feet by
Why don't you look into mYSQL documentation and rewrite your queries,
you might be able to end up with one only single query and 3 lines of PHP,
instead of the whole bunch as you're trying to do.
The reason I advise you that is that mySQL plays some really sweet games
with dates, while PHP treat
Hello Jaxon,
use serialize() & unserialize() as follows:
$store_in_file=serialize(your_array);
//and store the details of $store_in_file in your file/database.
//while retrieving read the data from file/database into store_in_file and
then use the following.
$retrieve_from_file=unserialize($sto
jmoore Mon Apr 16 02:44:21 2001 EDT
Modified files:
/php4/win32 install.txt
Log:
- Updating order slighly so the install is easier to follow.
Index: php4/win32/install.txt
diff -u php4/win32/install.txt:1.1 php4/win32/install.txt:1.2
--- php4/win32/install.txt
>From v4.0.4 change log
"Added url_rewriter.tags configuration directive (Sascha)"
The option shows up in my phpinfo with default settings
"a=href,area=href,frame=src,form=fakeentry", but I can't find any info on
what this setting does. The change log entry seems to be the only
reference to i
> Subject: [PHP] What does "url_rewriter.tags" do?
> What does it do?
url_rewriter.tags is a list of HTML elements that will get the PHPSESSID
added to them. Its all about sessions:
http://www.php.net/manual/en/ref.session.php.
Emil
--
Emil Rasmussen
http://www.noget.net
--
PHP General Mai
Hi,
I'm running a small web hosting server on my machine and offering
PHP+MySQL to virtual hosting clients.
I've coded an additional PHP module, which I want to be a paid
add-on feature to the clients. Is there a way to disable the
module or functions (it contains 2 functions) globally and then
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Emil Rasmussen) wrote:
> > Subject: [PHP] What does "url_rewriter.tags" do?
>
> > What does it do?
>
>
> url_rewriter.tags is a list of HTML elements that will get the PHPSESSID
> added to them. Its all about sessions:
> http://www.php.net/ma
Hello,
have you saw the result of phpinfo(); try and see in Apache Environment, if make a
login use a sessions...
Good luck and good code
Best Regards
Miguel Loureiro <[EMAIL PROTECTED]>
Hi all is it possible to protect your javascripts from being downloaded by
visitors ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Mon, Apr 16, 2001 at 12:42:50PM +0200, indrek siitan wrote:
> I've coded an additional PHP module, which I want to be a paid
> add-on feature to the clients. Is there a way to disable the
> module or functions (it contains 2 functions) globally and then
> specifically enable them to certain
Ahhh, I see what's going on now. I had more time to read over the code, so
now I see what you are trying to do.
I'm not sure why it suddenly stopped working, but let's see if you actually
need it to work.
First of all, I take it that you have content which you want to write into a
file. Correct?
The first thing you need is benchmarking software. Try an internet search
for "webserver performance benchmark". I did it on altavista and got some
good leads.
For instance this one sounds excellant:
http://www.softwareqatest.com/qatweb1.html
It's description is "Listing of 190 web test tools a
A funny question! I presume you mean you want to protect your javascripts
from being read by users, eg compiled. Internet explorer has a script
encoder that scrambles your scripts that you can get from microsoft.com.
Doesn't work with netscape.
Regards, John
""Steve Haemelinck"" <[EMAIL PROTECTE
Rasmus Lerdorf (inventor of PHP) has said that PCRE is generally faster, but
i haven't benchmarked myself. Of course strpos( ) is the fastest.
"bill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi everyone,
>
> i have been using perl for quite some time, bu
What version of PHP? I ask because a few test functions aren't available on
older versions of PHP4.
Try this piece of code:
$arr = get_defined_vars();
print_r($arr);
(if that doesn't work, try print_r($GLOBALS), but be sure to hit the Stop
button on your browser, because it will print off an i
On Mon, Apr 16, 2001 at 07:16:06PM +0800, John Lim wrote:
> Rasmus Lerdorf (inventor of PHP) has said that PCRE is generally faster, but
> i haven't benchmarked myself. Of course strpos( ) is the fastest.
Joerg Krause has posted an URL for a webpage for benchmarking reg-expressions.
Sorry, I don
If you mean Javascript that is in your HTML code, it is both practically and
theoretically impossible to do so. HTML source is wide-open to anyone who
wants to look at it, and there is little/nothing you can "really" do about
it. Some sites try and hide their HTML source, but it servers only to an
I did it!
Too much work for something as simple as this though IMO. I think I will
write a function for this...
Thanks,
// Tobias
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
9bdeag$88r$[EMAIL PROTECTED]">news:9bdeag$88r$[EMAIL PROTECTED]...
> You are registered $array as session,
>
hello;
This may be a long shot but I'll give it a go. I'm trying to track down an Ade Smith
from the UK that I used to know. he would be a bout 30 now and originally came from
Bath. he also used to work for a company called "More Balls Than Most". Is this you?
If so get in touch. If not, sorry
I am trying to run a query and in my log I am getting a message the message
resource id #2.
$query=mysql_query("Select pass from members where uname='$username'");
$result = mysql_query($query)
or die("You are not authorized to be here.");
Can someone tell me what I am doing wrong and guide me
PHP4 session may not work as it should, unless you use it consistent way.
i.e. Use session_(un)register() and only use globals, OR enable track_vars and
disable register_globals and only use $HTTP_SESSION_VARS w/o
session_(un)register(). It may work even if register_globals is on. I didn't
test se
Hello,
I'd like to know if there is a script with the same (or more) functionality as
SubscribePro at:
http://cgi.elitehost.com/subpro/
... in PHP of course :)
Thanks for any info,
Fabian Rodriguez - Associate Dir., Outsourcing and Business development
Toxik Technologies Inc. - www.Toxik.com -
Unless I'm missing something, I've looked all over the
PHP site for a link to PEAR but have been unable to find
one (including in the PEAR section of the manual, where
you would think it would be...).
Could someone please provide a link?
Chris
try
$query="Select pass from members where uname='$username'";
$result = mysql_query($query) or die("You are not authorized to be here.");
the mysql_query command is executing the statement
morgan
At 10:40 AM 4/16/2001, Greg K wrote:
>I am trying to run a query and in my log I am getting a me
"Boget, Chris" wrote:
>
> Unless I'm missing something, I've looked all over the
> PHP site for a link to PEAR but have been unable to find
> one (including in the PEAR section of the manual, where
> you would think it would be...).
> Could someone please provide a link?
>
> Chris
http://www.ph
Boget, Chris" schrieb:
> Unless I'm missing something, I've looked all over the
> PHP site for a link to PEAR but have been unable to find
> one (including in the PEAR section of the manual, where
> you would think it would be...).
> Could someone please provide a link?
http://pear.php.net/
Don'
I think I saw this, but can't remember when or where.
Is it posible to change the value of include_path in a php script without
changing it in php.ini?
Saludos... :-)
--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
---
> > Unless I'm missing something, I've looked all over the
> > PHP site for a link to PEAR but have been unable to find
> > one (including in the PEAR section of the manual, where
> > you would think it would be...).
> > Could someone please provide a link?
> http://www.php.net/manual/en/pear.php
> $query=mysql_query("Select pass from members where uname='$username'");
> $result = mysql_query($query)
> or die("You are not authorized to be here.");
What you are doing is checking if the query is valid. Your die() would print
only if you had a faulty query (try changing pass to pass2), but
> > Could someone please provide a link?
> http://pear.php.net/
> Don't be too disappointed about the website, some work on it is in
> progress
I can tell. :p There is an error when you access that page.
Chris
Greg K schrieb:
> I am trying to run a query and in my log I am getting a message the message
> resource id #2.
>
> $query=mysql_query("Select pass from members where uname='$username'");
> $result = mysql_query($query)
> or die("You are not authorized to be here.");
>
> Can someone tell me w
Sorry...
Read morgans topic aswell...
Didn´t see the duplicate mysql_query(). :)
// Tobias
""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message
9betpl$nb0$[EMAIL PROTECTED]">news:9betpl$nb0$[EMAIL PROTECTED]...
> > $query=mysql_query("Select pass from members where uname='$username'");
> > $
"Boget, Chris" schrieb:
>
> > > Unless I'm missing something, I've looked all over the
> > > PHP site for a link to PEAR but have been unable to find
> > > one (including in the PEAR section of the manual, where
> > > you would think it would be...).
> > > Could someone please provide a link?
>
My configuration: Win98 / Xitami / PHP3 / MySQL
PHP is installed in the path of Xitami.
path xitami\cgi-bin\HELLO2.PHP3
"http://localhost/cgi-bin/hello2.php3" It works!
My bloody newbie question:
Where must I put HELLO3.HTM so that it can be run from the localhost
"http://localhost/hello3.htm" d
i am starting and registering session variable succesfully that i can see
the file on the server , but when it comes to use or display i can not ,
the variable has no value ... the "session.save_handler = files" is in
php.ini , i tried to change it to user but that occured a fatal error e
On Monday 16 April 2001 08:23, you wrote:
> Personally, I never even bought a PHP book. I learned from the web
> only...hehe.
Same here.
Well, actually I *did* buy a book - "Core PHP programming". I started
reading it, saw that it basically only covers (a) introductory
programming in general (w
Martín Marqués schrieb:
> Is it posible to change the value of include_path in a php script without
> changing it in php.ini?
Try ini_set() & friends,
http://www.php.net/manual/en/function.ini-set.php .
Ulf
--
Neu: PEAR Menu 3 - Navigationsstrukturen dynamisch dargestellt
http://www.ulf-wen
On Monday 16 April 2001 09:30, you wrote:
> Can anyone recommend (or is there) a utility / app that I can use to
> hit my webserver (say from another computer outside my subnet) -- any
> number of times to get an idea of performance - based on my bandwidth
> and hardware?
Apache comes with "ab" (
Change the extension of hello3.htm to php3. The second one doesn't work
because the web server only runs the php enginge when the file has a php
extension (it depends on the server setting but usually just .php should
work fine). PHP code can be embedded within HTML so basically you don't
have to
Christian Reiniger schrieb:
>
> On Monday 16 April 2001 08:23, you wrote:
> > Personally, I never even bought a PHP book. I learned from the web
> > only...hehe.
>
> Same here.
> Well, actually I *did* buy a book - "Core PHP programming". I started
> reading it, saw that it basically only cove
On Thu, Apr 12, 2001 at 10:20:28PM -0400, Chris Anderson wrote:
> If I grab values from fields and they contain nothing, and I retrieve
> them using mysql_field_array, it will give an index out of range. Is
> there a way to prevent the error or do I have to keep putting a @ in
> front of the varia
andrei Mon Apr 16 06:54:10 2001 EDT
Modified files:
/php4 TODO-4.1.txt
Log:
More todo stuff.
Index: php4/TODO-4.1.txt
diff -u php4/TODO-4.1.txt:1.3 php4/TODO-4.1.txt:1.4
--- php4/TODO-4.1.txt:1.3 Sat Apr 14 03:30:05 2001
+++ php4/TODO-4.1.txt
Happy Easter to all!
In the user viewer example at the end of Chapter 12 - has anyone had
problems with the source downloaded from their website?
The story so far with my trials of this example:
downloaded source
created table in mysql and populated it (with the SQL script provided)
First page
sbergmann Mon Apr 16 06:55:18 2001 EDT
Modified files:
/php4 TODO
Log:
Daniel fixed this for PHP 4.0.6.
Index: php4/TODO
diff -u php4/TODO:1.120 php4/TODO:1.121
--- php4/TODO:1.120 Tue Feb 27 01:16:48 2001
+++ php4/TODO Mon Apr 16 06:55:18 200
Here is the scenario. I have a pure html form where a user login and
pass is gathered and sent to a php script via the post method. The php
script authenticates against a DB starts a session and uses the header
function to send a header with the sessionid back to the browser.
Everything wo
Hello.
The version is php-4.02 built on Sep 22, 2000.
|What version of PHP? I ask because a few test functions aren't available on
|older versions of PHP4.
|
|Try this piece of code:
|
|$arr = get_defined_vars();
|
|print_r($arr);
This gave me an error on get_defined_var() so I tried
print_r($
Here is the script
"request.php" 62 lines, 1585 characters
"Repository_Session"));
if (!isset($s)) { $s=0; };
$sess->register("s");
site_header("Request a Document - Document Cart");
echo 'Below
is your Document Cart.
Any
time you request a document we will store it here. You m
Btw, the reason you got all the output is why I said to hit the browser Stop
button. Technically it will run forever.
The GLOBALS array contains an a array called GLOBALS, which contains
GLOBALS, endlessly. It will never ever end ;) It's fixed in 4.0.2.
get_defined_vars isn't available till 4.0.
Tyler,
There are MANY ways you can do this. At some point htough, they will have to
leave your site but it can be set up so it is invisible to the user. I work
for a credit card processing company writing web based software for
processing payments. If you have any questions, feel free to shoot th
Woh, that book looks excellant.
I think I may order it, actually.
It is absolutely _hell_ to find a good advanced programming or internet
technology book.
If the book doesn't expect you to be a moron (how many morons are interested
in the implementation of TCP/IP, anyway?), it expects you to be
> The GLOBALS array contains an a array called GLOBALS, which contains
> GLOBALS, endlessly. It will never ever end ;) It's fixed in 4.0.2.
That was a typo. What I mean to say is that it's fixed in 4.0._4_, not _2_.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Pl
Hello,
I made a GD script that made an image with the name of whatever page I was
in in my web site. I would post info to it like this:
http://www.domain.com/jpeg-out.php?title=FrontPage what ever I put for
title it would make the image. After reinstalling php4 on my win2000 box
with apache it
I started with the Professional PHP Programming book. It covers all of the
info a beginner would need in good detail. I haven't taken a look at the
Beginner's book, but I would suggest getting the Professional one as it
provides everything you need to get started, and then jumps right into the
n
Check your settings for track_vars and register_globals and ensure they are
both enabled.
Furthermore, check for the existance of $HTTP_GET_VARS["title"]. If it isn't
there either and both of your ini settings are set correctly, then you can
basically ignore this advice because you are having a d
Brandon Orther schrieb:
> I made a GD script that made an image with the name of whatever page I was
> in in my web site. I would post info to it like this:
> http://www.domain.com/jpeg-out.php?title=FrontPage what ever I put for
> title it would make the image. After reinstalling php4 on my
I'm trying to edit the specific item for each row found in the snippet
below. Each item gets a row in a table and I want to pass the item Id (s_id
below) to $item. It seems however that the array *item * is not
incrementing. For all rows I get the value of the first row.
Any ideas of what wron
would there be any problems caused if i used the stripslashes() function on
all posted variables from a form to eliminate sql query errors?
- Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
As long as you don't need to ever store a forward slash :)
Beyond that, nope. stripslash() away.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Noah Spitzer-Williams"" <[EMAIL PROTECTED]> wrote in message
9bf7ec$m1m$[EMAIL PROTECTED]">news:9bf7ec$m1m$[EMAIL PROTECT
if a do
ldapsearch -o ",o=xyz" "ent=entry1,uid=ldap,ou=People,o=xyz", it
works just fine.
How can i access the entry "ent=entry1,uid=ldap,ou=People,o=xyz" using
ldap_search/ldap_list or ldap_read?
I have tried ldap_search... but i can not find how to write the filter.
Can any one, please h
fmk Mon Apr 16 09:27:12 2001 EDT
Modified files:
/php4/ext/fbsql php_fbsql.c
Log:
Fixing memory leek on CancelFetch.
Index: php4/ext/fbsql/php_fbsql.c
diff -u php4/ext/fbsql/php_fbsql.c:1.10 php4/ext/fbsql/php_fbsql.c:1.11
--- php4/ext/fbsql/php_fbsql.c
Is there any sample code for the above PEAR
class around anywhere?
Chris
The reason for the fatal error is that you can only store the sessions in
three (or four) ways, files, in a database or in the memory.
What variable has no value?
Have you started the session before you try to access the values?
session_start();
echo $your_value;
(Or preferably)
echo $HTTP_SESSIO
Hi,
> you can globally disable function with:
>
> | disable_functions =
ok, got to that point, too.
but is there an enable_functions keyword to explicitly enable
those functions in httpd.conf (this should be possible with
the php_value keyword, as far as I understood from the manual).
Many THANKS!
I find this newsgroup to be one of the *best* I've come across! Responses
are quick, usually detailed and always right on target...
You guys and gals rock!
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
"Boget, Chris" schrieb:
>
> Is there any sample code for the above PEAR
> class around anywhere?
You should ask this on the dedicated pear-general list. Examples are all
over in the PEAR source. I preferr to use a simple wrapper for it like
http://cvs.php.net/viewcvs.cgi/php4/pear/Cache/Error.
On Mon, Apr 16, 2001 at 07:17:24PM +0200, indrek siitan wrote:
> but is there an enable_functions keyword to explicitly enable
> those functions in httpd.conf (this should be possible with
> the php_value keyword, as far as I understood from the manual).
no. But you can put a .htaccess in the di
I have not run into this problem before...so here goes.
[root@bfarm1 php-4.0.4pl1]# make
Making all in Zend
make[1]: Entering directory `/root/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -g -O2 -c
zend_language_scanner
Hello,
Does anyone know of an image library that plugs right into php that has a
blur function so I can create a drop shadow effect for text?
Thanks
Brandon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Hi,
I was downloading the latest version of PHP (Win32 Binaries) for IIS server,
but no external extensions are included. Why? Is it not supported for IIS
server?
I'm having great difficulty adding those extensions manually (editing the
PHP.ini), I always get errors like following example shows
Hi!
I'm a pretty newby, so I have a question: How can I make a link to html
or php or any other page in the internet in my PHP code? should be like
Command ( "Http://www.xyz.com") Just like a link in a html site would be
clicked.
Thanx, greetings from austria,
Johannes Rumpf
--
Johannes Rumpf wrote:
> Hi!
> I'm a pretty newby, so I have a question: How can I make a link to html
> or php or any other page in the internet in my PHP code? should be like
> Command ( "Http://www.xyz.com") Just like a link in a html site would be
> clicked.
> Thanx, greetings from austria,
>
On Sun, 15 Apr 2001, Alexander Feldman wrote:
> sasha Sun Apr 15 11:42:51 2001 EDT
>
> Modified files:
> /php4/ext/standardfile.c
> Log:
> We shoud not fseek in a pipe and this caused a problem with popen and
> fgets on the platforms where the buffer fix was applied (S
|But from looking at your output, there is definately something screwy with
|their setup.
|
|In phpinfo, what are the settings for track_vars (if listed) and
|global_vars?
track_vars is set to ON for local and master.
register_globals is set to ON for local and master.
there isn't a listing for
php-general Digest 16 Apr 2001 18:18:43 - Issue 631
Topics (messages 48708 through 48787):
Re: fwrite not writing
48708 by: Plutarck
48717 by: CC Zona
48729 by: Plutarck
Re: Want a Good Book for Ref on PHP
48709 by: Plutarck
48710 by: eschmid+sic.s.n
How can i include ASP scripts into PHP files or is it posible?
thanxz
-Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Johannes Rumpf schrieb:
> I'm a pretty newby, so I have a question: How can I make a link to html
> or php or any other page in the internet in my PHP code? should be like
> Command ( "Http://www.xyz.com") Just like a link in a html site would be
> clicked.
print 'http://www.circle.ch">The enga
I'm trying to remember what is the function to replace blank spaces with %20.
Can anyone remind me of that?
Thanks,
C.F.
> I'm trying to remember what is the function to replace blank
> spaces with %20.
> Can anyone remind me of that?
urlencode();
Chris
I'm looking for comments on this one. I'm developing a site that
will have user logins on it. What's the best way to do this? What to
store, and how?
- Are people more inclined to use a username when they need to log
in to something, or would asking for an email (as the userID)
In article <9bejks$gl6$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Plutarck") wrote:
> I'm not sure why it suddenly stopped working, but let's see if you actually
> need it to work.
>
> First of all, I take it that you have content which you want to write into a
> file. Correct?
>
> If so, why doe
Can someone help me with an elementary cookie problem?
I want to capture a variable, write to a cookie, and be able to access it
from other pages.
I've done that, and it works well
BUT, if I capture the same variable a second time (with a different value),
it still remembers the first value
Can you use the above function to set the error
handler to a custom class? If so, how? I've been
having no luck no matter what I do...
Chris
Do realize, of course, that you can return a dataset from a database in XML,
and store it client side. Wanna sort by name? Reorg the dataset. In HTML
you'll have to make another round trip. Wanna see your data sorted by time?
Reorg the dataset. XML, while a little more tricky, does have some
If I'm not mistaken set_error_handler() takes a string that is the name of
a function, I am sure in that function you can instantiate whatever class
you want.
morgan
At 03:57 PM 4/16/2001, Boget, Chris wrote:
>Can you use the above function to set the error
>handler to a custom class? If so,
On Mon, Apr 16, 2001 at 03:28:11PM -0300, Nando2 wrote:
> I'm trying to remember what is the function to replace
> blank spaces with %20.
> Can anyone remind me of that?
urlencode()
urldecode()
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous
Hi there
Could someone tell me how do I compile a php module.
look, I mean compile fro example the imap module as an external module so I can call
it from php.ini
Yes yes yes I know I can compile it inside the PHP binary, but I need to know how to
make the mod_imap.so mod_mysql.co, etc
any id
Merhabalar,
firstly do you use windows or linux?
id you use windows you shoul give the session_save_path to the script. (
session_save_path("c:\\user\\tmp"); )
if you use linux and no changes in your .ini files, your sessions store
in /tmp
directory...
Kolay Gele...
Mesut...
SERK
> if($force or !file_exists($filepath) or !filesize($filepath))
May I suggest
if ($force || (!file_exists($filepath)) || (!filesize($filepath)))
Probably won't make much difference, but I've never used the "or"
clause and cannot vouch for it's effectiveness.
Also, put a check in after the fope
> If I'm not mistaken set_error_handler() takes a string that
> is the name of a function, I am sure in that function you can
> instantiate whatever class you want.
I thought about that. But ideally, what I'm trying to do is
trap the errors with a class method (after instantiating)
then print
Hi Guys,
I have a question about the way PHP handles var/strings.
Let's say i have this URL: http://foo.bar.com/?login.
And in my script i have this code:
if($login) { echo "blab"; } or
if(isset($login)) { echo "blab"; }
It always returns FALSE. I think that is because the string
is empty. Sh
If you strip slashes, it will make a security hole.
For example,
SELECT * FROM tablename WHERE name = '$name';
what if $name is
\'garbage\';DROP TABLE tablename;SELECT \'something
After stripslashes($name)
SELECT * FROM table WHERE name = 'garbage';DROP TABLE tablename;SELECT
'something';
Regar
Suggestions so far have focused on parts of the function other than fwrite,
so I'm trying again with a stripped-down example. After spending many
hours trying to make this very simple function work again, I'm beginning to
think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
1 - 100 of 215 matches
Mail list logo