* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
From: frederik feys [EMAIL PROTECTED]
I thought str_replace caused slow down of my mailing script, but it
seems to be this line of code:
$fd =
implode(,file(http://www.domain.org/store/min/Mailing_template.html;)
);
I first
Hmm... Are you sure strpos doesn't work for you? Sure worked for me when I
wanted something like that Otherwise, checkout following:
http://se2.php.net/strings
function instr($needle, $haystack,$case_sensitive=true)
{
return
rush wrote:
While PHP is often considered as
template system in it self, I think it is is not very strong, or efficient
one.
Wow... where'd you pull that from?? Any facts to back that up? :)
FYI: I've got a template benchmark site running at
http://sepodati.realxl.net/tpl_bench/
Any interest
* Thus wrote Steve Todd ([EMAIL PROTECTED]):
Is it possible to define a variable, such as:
$foo = bar;
and then do as follows to create a totally different variable:
$$foo = text here;
this seems to mean $bar = text here;.
Is this a bug or can we legally use it.
perfectly legal,
Steve Todd wrote:
Is it possible to define a variable, such as:
$foo = bar;
and then do as follows to create a totally different variable:
$$foo = text here;
this seems to mean $bar = text here;.
Is this a bug or can we legally use it.
Yes it's legal.
Chris Boget wrote:
All the information is on www.php.net/fdf.
I just read the above page and I can't for the life of me figure out
why anyone would want to do this. Of course, it's likely that I am
simply being myopic.
Would anyone who's actually used fdf enlighten as to the need to
do it this
John, that is EXACTLY what i want, now the question is...have you seen this
implemented somewhere? so php would pass the data to a database and when a
user/client wants to see that data again, php would re-generate the form
with the data that is being requested right? and that is what FDF can
--- Steve Todd [EMAIL PROTECTED] wrote:
Is it possible to define a variable, such as:
$foo = bar;
and then do as follows to create a totally different variable:
$$foo = text here;
this seems to mean $bar = text here;.
Is this a bug or can we legally use it.
It is not a bug, but
Steve Todd mailto:[EMAIL PROTECTED]
on Wednesday, August 27, 2003 1:28 PM said:
Is this a bug or can we legally use it.
It's legal. And here is an article that explains it:
http://www.phphideout.com/articleview.php/5
(read near the bottom)
Chris.
--
PHP General Mailing List
No its not a bug
basically what you did was assign a value to a value of a variable
a $$ is how you access the value of a variable as a variable
- Original Message -
From: Steve Todd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 1:27 PM
Subject: [PHP] IS
Steve Todd wrote:
Is this a bug or can we legally use it.
Please RTFM before posting! http://php.net/variables.variable
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing
Àlex Camps mailto:[EMAIL PROTECTED]
on Wednesday, August 27, 2003 12:04 PM said:
i have windows xp with apache,php and argomail
but i cant send emails from php why?
According to your subject it looks like the computer you are trying to use to send the
email does not allow relaying.
[EMAIL PROTECTED] wrote:
2) this question is more directed to Justin French, but in any case, the
reason i wanted to use the PDF forms is so that i don't have to create them
again in CSS or any other format, the forms are already created and all i
need to do is figure out how to make the data
[EMAIL PROTECTED] wrote:
John, that is EXACTLY what i want, now the question is...have you seen this
implemented somewhere? so php would pass the data to a database and when a
user/client wants to see that data again, php would re-generate the form
with the data that is being requested right?
DvDmanDT wrote:
When using register_globals=off, this might be off intrest: (notice $$var)
while(list($var,$val)=each($_REQUEST))$$var=$val;
Why not just turn register_globals on, then?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be
This functionality is a feature and is commonly called variable
variables.
http://www.php.net/variables.variable
Cheers,
Rob.
On Wed, 2003-08-27 at 16:42, DvDmanDT wrote:
Considering the manual has examples using that method (or at least had), and
many tutorials, I think you can use it...
* Thus wrote DvDmanDT ([EMAIL PROTECTED]):
Considering the manual has examples using that method (or at least had), and
many tutorials, I think you can use it...
When using register_globals=off, this might be off intrest: (notice $$var)
while(list($var,$val)=each($_REQUEST))$$var=$val;
I also wanna add that it works for functions as well:
$foo=bar;
$foo();
would call the function bar()... I read this in the manual at some point
like a year ago... This isn't something I would recommend using as you could
in 90% of the cases screw it all badly... Could be useful sometimes though
* Thus wrote Jay Fitzgerald ([EMAIL PROTECTED]):
sorry for the multiple mailings...I'm not meaning to spam the list, but
apparently when i send an email to the list, it takes almost 2 hours for me
to receive a copy of it letting me know that it went through ok
Yes the mailling list is a
Not anymore due to the Unisys LZW patent issues.. GD has no support for
GIF file anymore.
Wait until next june.. Then you can create animated GIF files with GD
(Unisys' patent expires).
On Wed, 27 Aug 2003 21:35:43 +0200, Simon Fredriksson wrote:
Is it possible to create GIF animations using
Chris,
Ive modified your sample code to use strstr() and it works fine. maybe you've mixed
the $haystack and $needle around ?
?
$needle = ;
$haystack = Belle Sebastian;
if(strstr($haystack, $needle))
{
echo found!;
}
else
{
echo not found!;
}
?
-Original Message-
Just wanted to get the consesus of the other list members... Is it SoBig
that is making the list so slow? It's taking about hour an or more for
my messages to come back to me.
Chris.
p.s. Probably a good idea to send responses off list if it's just to say
Yeah that's happening to me too!
--
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]):
DvDmanDT wrote:
When using register_globals=off, this might be off intrest: (notice $$var)
while(list($var,$val)=each($_REQUEST))$$var=$val;
Why not just turn register_globals on, then?
There are several reasons why not to turn globals on.
On Wed, 27 Aug 2003 14:07:34 -0700, you wrote:
I don't know why but I've had the darndest time trying to find an easy
equivalent of asp's InStr() function in PHP. I know there is
preg_match(), strpos(), and strstr(), but none of them work like I want
them to.
In fact, except for maybe
On Wed, 27 Aug 2003 18:36:26 -0400, you wrote:
DvDmanDT wrote:
When using register_globals=off, this might be off intrest: (notice $$var)
while(list($var,$val)=each($_REQUEST))$$var=$val;
Why not just turn register_globals on, then?
I assume you could use it to only pull in variables from POST
And also for class names
$foo = bar;
$blah = new $foo();
$blah would be a new instance of the class bar
I've actually used the above, but it was a special case.. I wouldn't
normally use it.
-Original Message-
From: DvDmanDT [mailto:[EMAIL PROTECTED]
Sent: Thursday, 28 August 2003 8:58
Use get instead of post. for the request method. Then please make sure
that you are not sending any expires headers in your code.
all the best
Tony Pagliocco wrote:
On a website I am working on, when I go to a page
that pulls a query , then click back to choose another
option, I get an error
Take a look at php.net/fdf for input to database (easy part). As for
automatically filling out the PDF, you can actually embed javascript in a
PDF, although I'm not exactly sure how to do it. PlanetPDF.com will have the
info, though. Also, there is an excellent PDF forum over at planetpdf.com
Couldn't Unisys just renew/extend the patent?
-Original Message-
From: Edward Rudd [mailto:[EMAIL PROTECTED]
Sent: Thursday, 28 August 2003 09:49
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Animating with GD?
Not anymore due to the Unisys LZW patent issues.. GD has no
support for
On Thursday, August 28, 2003, at 04:29 AM,
[EMAIL PROTECTED] wrote:
Hi guys, gals,
first off i just wanted to thank all of you who responded to my
question,
they were very helpful...but the answers bring me to several new
questions:
1) has anyone seen anything like this done with the reader
hi
this is the piece of code
for($s=0;$s$num;$s++)
{
$result = mssql_fetch_array($query);
$result[2] = number_format($result[2], 2);
tr border=1;
echo tdinput type=\text\
Edward Rudd wrote:
Not anymore due to the Unisys LZW patent issues.. GD has no support for
GIF file anymore.
Wait until next june.. Then you can create animated GIF files with GD
(Unisys' patent expires).
That patent already expired for the US (June 30, 2003). Canadian
patent expires July
Ashley M. Kirchner wrote:
That patent already expired for the US (June 30, 2003). Canadian
patent expires July 7, 2004, the counterpart patents in the United
Kingdom, France, Germany and Italy expire June 18, 2004, and the
Japanese counterpart patents expire June 20, 2004.
I forgot to
Hi there. Slightly OT, but it's for a PHP project... We normally use a
plug-in WYSIWYG editor so that our clients can manage their content in a
word-like interface. Normally this works fine, but this time when we've
completed the site we've discovered they have an entire department that
is
In article OFC01C59D2.F2BFDEC6-ON0A256D8F.0007CBC2-
[EMAIL PROTECTED], [EMAIL PROTECTED]
says...
hi guys and gals, aloha from hawaii,
Not sure if this is the right place to ask, but i just need to know if it
is technically possible to have a pdf form be filled out online and then
once the
I was recently involved in installing PHP 4.3.2 on a NT 4 server with IIS 4.
We followed all of the installation instructions, but whenever we tried to
run a test script through a browser to see if PHP was installed correctly,
all the page did was load. And load and load and load. It never
Hello All,
I have a very simple question:
Want to remove the string after the first whitespace like:
here is a text what i have
to:
here
Thanks !!
Andras Kende
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello All,
I have a very simple question:
Want to remove the string after the first whitespace like:
here is a text what i have
to:
here
Thanks !!
Andras Kende
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andras Kende wrote:
Hello All,
I have a very simple question:
Want to remove the string after the first whitespace like:
here is a text what i have
to:
here
$word = substr($sentence,0,strpos($sentence,' '));
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
This code is working for me
?php
$old=Dinesh Dinesh Dinesh Dinesh;
$new=;
for($i=0;$old[$i]!='';$i++)
{
$new=$new.$old[$i];
if($old[$i]==' ')
break;
}
echo $new;
?
-murugesan
- Original Message -
From: Andras Kende [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Sent:
On Wed, 27 Aug 2003 21:30:25 -0700, you wrote:
Want to remove the string after the first whitespace like:
here is a text what i have
to:
here
I'd explode() the string into an array, and take the 0th element of the
array.
$s = 'here is a text what i have';
$a = explode (' ', $s);
echo ($a[0]);
I'm running PHP 4.3.3 compiled with --with-openssl against Red Hat 8.0's
latest OpenSSL libraries (patched versions of 0.9.6) and am having some
strange issues using fopen(), fread() and friends. Here's my code:
function echo_test() {
$opts = array(
'ssl' = array(
Hello,
On 08/27/2003 06:37 AM, Moritz Steiner wrote:
Hi,
has somebody a working code example of sending a mail with attachment,
my code is unfortunately not working...
That may be a bug in the mail() function. You may want to try this other
class that has work arrounds for some of the mail()
Hello,
On 08/27/2003 11:34 AM, David T-G wrote:
% For the delivery, you can always tune qmail to try deliverying messages
% to more recipients at the same time tweaking concurrencyremote option.
% The default it 20 recipients at the same time but you can increase it to
% 120 without patches.
Hello,
On 08/27/2003 04:04 PM, ÀLex Camps wrote:
i have windows xp with apache,php and argomail
but i cant send emails from php why?
It seems you need to authenticate with the SMTP server. You can't do
that with the mail() function. Try these classes in conjunction. They
come with a function
Hi Chris,
I've always used strstr() for this _exact_ same purpose and it's worked just
fine. I find it much more useful as an InStr()-like function than for
actually doing anything with the string it returns. You'll want to note
that the parameter order is $haystack before $needle. That goes
hi,
how to block a user downloading a file?
eg : when a user enter an address like
http://localhost/downloads/testfile.cab
i want to forward him to an other address like
http://localhost
i'm PHP newbie thanks for help.
--
PHP General Mailing List (http://www.php.net/)
To
php-general Digest 28 Aug 2003 08:29:13 - Issue 2263
Topics (messages 160955 through 161010):
IS THIS A BUG?
160955 by: Steve Todd
160958 by: DvDmanDT
160967 by: John W. Holmes
160968 by: Curt Zirzow
160971 by: Chris Shiflett
160972 by: Chris
Quick question...
I parse domains in my scripts like this to get the .domain.com out of www.domain.com.
However, if someone visits my site with just domain.com in the url, I get .com back as
the parsed domain. How can I make it so I aways get the .domain.com no matter what
they use?
Here is
Hi,
I am running PHP 4.2.3 on Apache 1.3 and using COM to write 3 reports using
Excel. The problem I am having is that something is going wrong with this
process, but I can not put my finger on it as no clues are presenting
themselves.
I run the script through a browser. The overall script
fatih olcer wrote:
hi,
how to block a user downloading a file?
eg : when a user enter an address like
http://localhost/downloads/testfile.cab
i want to forward him to an other address like
http://localhost
i'm PHP newbie thanks for help.
hi,
you have to use this code :
?
header
Hi,
Thursday, August 28, 2003, 6:30:44 PM, you wrote:
CcM Quick question...
CcM I parse domains in my scripts like this to get the .domain.com out of
www.domain.com. However, if someone visits my site with just domain.com in the url, I
get .com back as the parsed domain.
CcM How can I make it
Collegesucks.Com Mike wrote:
Quick question...
I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. How can I make it so I aways get the .domain.com no matter
str_replace('/www.','/',$parseddomain);
wont this just make me get a .com when I use my thing to parse the domain?
--
___
Get your free Verizonmail at www.verizonmail.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
So why does college suck? Afraid of learning?
Anyway, you can solve your problem by simple parsing. An example is below.
?php
$TheParse = www.edmondpaper.com;
$TheNewParse = explode (., $TheParse);
$TheTotal = count($TheNewParse);
echo ($TheNewParse[($TheTotal - 2)]);
echo (.);
echo
So why does college suck? Afraid of learning?
Feel free to ask me off the list and I'll explain why I started the site.
Thanks for the code. Anyway way of making it one line and with the leading .?
J.
--
___
Get your free Verizonmail at
Hi,
Thursday, August 28, 2003, 7:02:44 PM, you wrote:
str_replace('/www.','/',$parseddomain);
MJ wont this just make me get a .com when I use my thing to parse the domain?
MJ --
MJ ___
MJ Get your free Verizonmail at www.verizonmail.com
No it
No it should just get rid of the www so your left
with domain.com and now that I see what you are
after it should have been:
I don't aways use www.domain.com. Sometimes I use test.domain.com. I have about 14k of
these pointing to the same script. Otherwise I would just remove the www -lol.
Hello,
Since this is a cab file, i don't think you will be able to modify it.
Why don't you put the cabs outside the document root? there was a
discussion on doing something similar just this week on this very list.
If you insist on having the stuff on the document root you can use
.htaccess
Hello,
I am wondering if it is possible and legal to convert gif to jpeg with
php. This would be helpful for clients to upload their logo, since most
have it as a gif document.
Thanx for any comment on that.
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jabber, et al --
...and then [EMAIL PROTECTED] said...
%
% having you tried ezmlm or to directly inject the message into the que?
Yes, I've tried qmail-inject. I got down to about 0.41s/msg which is
still terrible.
Thanks HAND
:-D
--
David T-G * There is too much
Getting there.
I'm using...
$path = /home/risk/public_html/$bu/$file;
//Where $bu is the folder name where the file is, I've passed that from
the previous form, no worries there. I've also passed the file name from
the previous form, as I have the file type.
header(Content-Disposition:
Hello,
I'm using an apache server 1.3.28 on RedHat GNU/Linux 6.2 with php
4.3.1. Before, I was using apache 1.3.14 with php 4.0.6. Since I have
upgraded, I have problems with session_start. I have tried to set
register_globals either to on or to off but it has no effect on this
problem.
Example
Merlin wrote:
Hello,
I am wondering if it is possible and legal to convert gif to jpeg with
php. This would be helpful for clients to upload their logo, since most
have it as a gif document.
Thanx for any comment on that.
ImageMagick can read .gif, so you could filter the uploaded file through
Hello,
I recall someone (pardone me i don't save list mails) pointing out that
the delay could actually be in generating the message rather than in the
sending. You are sending a customized message to each user aren't you?
Would you be creating this message from what's in a mysql database or
Yes I can help you.please send me your OS , php version and what COM you are
triyng to use.
Regards
Bogomil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I run the script through a browser. The overall script takes about 36
minutes to run. I have changed the php.ini values to allow the script
to
run for longer than this. The script runs, but I always end up with a
500
error.
[/snip]
Have you also set your webserver software time
Hi friends,
I have to send mail to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we
And you get a 500 error?
First off, it is probably not a bug. If the first two reports get
generated there may be a problem in the code for the third report.
-Original Message-
From: Joe Privett [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 6:28 AM
To: Jay Blanchard
Subject:
Hi
briefly: you need to create a cron job by typing crontab -e at the
command line.
each line in the crontab has five fields which define the time at which
the cron job will run.
more info in man cron and man crontab.
Cron sends a mail to the owner of the job when a job fails. you can pipe
it
[snip]
However, Curt does bring up a good pointgiven a real world situation
create the decision logic (in code format) that demonstrates you grep
the path needed to arrive at a conclusion. As many of us model business
processes this is a valid method for determining familiarity with the
[snip]
You come to a fork in the road. One fork takes to to Utopia (where you'd
like to go) and the other takes you to the Black Forest (where you
definitely do not want to go). There are two men standing there. You
know that one always tells the truth, the other always liesbut you
do not know
[snip]
Which road would the other man point to if I asked him the way to
Utopia?
[/snip]
Can you do it programmitically (with pseudo-code)? After all, we need to
keep this on-topic :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have to send mail to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time
using
cron facility.
So, How can we do
For example, you want execute a script every day at 09:00 am:
$ crontab -e
And put this line:
0 9 * * * /path/to/your/php/binary /path/to/your/script.php
Crontab only can say if the cron was executed correctly or not, but it doesn't say if
your script in php has sent the mail correctly or not.
Oh manit is WAY too early for a question like this...
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 7:31 AM
To: Jay Blanchard; Curt Zirzow; PHP General
Subject: RE: [PHP] PHP Interview questions
[snip]
However, Curt does bring up a
Not anymore due to the Unisys LZW patent issues.. GD has no support for
GIF file anymore.
Wait until next june.. Then you can create animated GIF files with GD
(Unisys' patent expires).
That patent already expired for the US (June 30, 2003). Canadian
patent expires July 7, 2004, the
Hi List
I've gone through the list for previous questions and the only one that
seems to be a solution is to use sudo, however, I cannot seem to get it
right.
Just as background:
I want to make a small admin utill for an intranet machine, so the
security risks don't bother me at all.
Instead
You can write a little script with expect (man expect) and execute it from php with
exec().
Other solution its to write a .procmailrc in root that executes the reboot when coming
a mail with some text in subject or boyd, so, from php you only need to send a mail.
-Mensaje original-
if you are really not interested in the security,
then you can run the apache server as root; then you have
root privileges for your PHP scripts.
then you can use the system() function with no restrictions
Cheers,
Catalin
Petre Agenbag [EMAIL PROTECTED] wrote in message
news:[EMAIL
A more easy solution is that:
Make a cron that executes every minut /tmp/rreboot.sh for user root
crontab -e
Add the line:
* * * * * /tmp/rreboot.sh
The script is:
/tmp/rreboot.sh
---
#!/bin/sh
if [ -f /tmp/rreboot ]; then
rm -f /tmp/rreboot
shutdown -r now
fi
---
On Thu, Aug 28, 2003 at 03:35:59PM +0200, Javier Tacon wrote:
A more easy solution is that:
Make a cron that executes every minut /tmp/rreboot.sh for user root
crontab -e
Add the line:
* * * * * /tmp/rreboot.sh
The script is:
/tmp/rreboot.sh
---
#!/bin/sh
if [ -f
Hi :)
Somewhat newbie question...
I'm trying to include some open source classes into a project I am working
on. The classes build a set of relational select menus from the contents of
two tables. I have not trouble using the classes in a simple test page, but
am running into problems when I try
Exactly ..
Well, the script removes the rreboot file before the shutdown.
For security choose a directory for rreboot file placed in a directory that only can
be readed/writed by apache, and the php file in the example its very simple, but you
can ask for a password, create a log, etc ..
of course, i've only just seen that the script removes it. it's been a long
day, my apologies.
just out of curiosity, why would you want the ability to reboot your box
like that?
On Thu, Aug 28, 2003 at 04:06:25PM +0200, Javier Tacon wrote:
Exactly ..
Well, the script removes the rreboot
Hi all,
I have a class which creates a new object and caches this object (see source
at the bottom). The new object holds a link on the creator class.
The __descructor function of both classes are never called - because the
classes are destroyed (killed), when the script terminates.
Is there a
Is there anything special I have to do to enable GD when using PHP 4.3.2?
I'm getting an error of:
Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/sites/site37/web/photos/functions.php on line 594
When I use the imagecreatefromjpeg() function. Is it not usable with gd?
Hi,
I don't know what to do with libiconv to build php4.3.3.
My libiconv-1.9 is installed in /opt
if I invoke configure --with-iconv=/opt the script runs fine but I
get the following message at compile time:
gcc: /usr//lib/.libs/libiconv.so: No such file or directory
gcc:
You need to compile PHP with the option --with-gd in the configure step.
The function is imagecreatefromjpeg()
-Mensaje original-
De: Mike At Spy [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 17:32
Para: [EMAIL PROTECTED]
Asunto: [PHP] GD PHP
Is there anything
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Wow... where'd you pull that from?? Any facts to back that up? :)
:) no, I was think in terms of how easy is to write template oriented
software, and how flexible te results are, which are all pretty subjective
things, that
Cool - thanks. :)
-Mike
-Original Message-
From: Javier Tacon [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 11:33 AM
To: Mike At Spy; [EMAIL PROTECTED]
Subject: RE: [PHP] GD PHP
You need to compile PHP with the option --with-gd in the configure step.
The
I'm not sure if this is the right forum for this question, but I'm hoping someone can
help nonetheless. :)
I installed an SSL Cert. on a site the other day for a checkout page, and the php
won't parse. If I take the s off, it parses just fine. I have a feeling it's an
httpd.conf setting, but
Does anyone know how I would parse the domain that scripts are currently being
executed in?
For example:
I use seperate domains for development and production. There are times I have to
specify a hard coded url instead of a relative one. So for the development it would be;
* Thus wrote jeffrey pearson ([EMAIL PROTECTED]):
Does anyone know how I would parse the domain that scripts are currently being
executed in?
...
dev.domain.com/somefile.php
where on the live site it would be
www.domain.com/somefile.php
In most cases $_SERVER['HTTP_HOST'] is what
Hi,
Is this a virtual host ?
How did you define the AddType in httpd.conf ? as global
directive or for each vhost ?
Also check that u'r apache listens to 443. Does pure .html
page display ?
Cheers,
Catalin
Jason Jacobs [EMAIL PROTECTED] wrote in message
news:[EMAIL
Hi Verdon,
Be sure that $connobj is declared as a global variable in the
mysql_connection.php file. You can do this in two ways:
1) instead of $connobj = blah, use $GLOBALS['connobj'] = blah
2) global $connobj; $connobj = blah
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Verdon
I get an error about png libraries not found, though my configure line only
adds --with-gd to it from my previous configure (pretty recent). Do I need
png and/or some sort of jpeg libraries installed first?
I don't mention png in my configure line:
./configure --prefix=/usr
Hi,
Friday, August 29, 2003, 12:52:11 AM, you wrote:
AB Hi,
AB I don't know what to do with libiconv to build php4.3.3.
AB My libiconv-1.9 is installed in /opt
AB if I invoke configure --with-iconv=/opt the script runs fine but I
AB get the following message at compile time:
AB gcc:
Try to add --with-jpeg, but probably you need to install some libraries, like libjpeg
(http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809)
-Mensaje original-
De: Mike At Spy [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 18:22
Para: Javier Tacon; [EMAIL
1 - 100 of 127 matches
Mail list logo