[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 that
[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;
Act
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
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 GD
Chris,
Ive modified your sample code to use strstr() and it works fine. maybe you've mixed
the $haystack and $needle around ?
> -Original Message-
> From: Chris W. Parker [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 28 August 2003 07:08
> To: [EMAIL PROTECTED]
> Subject: [PHP] php equiv
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!"
--
P
* 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 globa
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 preg_
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 f
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 t
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
w
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
> sup
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);
"";
echo " ";
echo "";
echo
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
> 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
In article , [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 user hits submit, php takes the data and puts it into a
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 displa
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/
ph
This code is working for me
-murugesan
- Original Message -
From: "Andras Kende" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Thursday, August 28, 2003 10:03 AM
Subject: [PHP] beginner: remove the string after the first whitespace
>
> Hello All,
>
> I have a
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 (
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() func
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.
H
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 nam
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 fo
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 unsubscribe
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 W
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 an
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 takes
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 :
http://loca
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 i
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: htt
So why does college suck? Afraid of learning?
Anyway, you can solve your problem by simple parsing. An example is below.
This will result in "edmondpaper.com"
Obviously there are ways of refining this further, but if college
sucks, you might not be interested in learning more :-).
At 3:30 A
> 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 www.veriz
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 i
> 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 -lo
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 f
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: http:
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 anim
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: att
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
s
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 accordi
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 d
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
problem
[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 tha
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 g
> >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, 20
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-
De
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:[EMAI
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
---
Ma
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
> i
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 ..
chown
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 f
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 wa
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: /opt//lib/.libs/li
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 db::getInsta
"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,
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.
>
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, bu
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;
dev.domain.com/somef
* 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'] i
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 PROTEC
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 Vaillanc
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 --with-apxs=/usr/sbi
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 PROTE
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 db::getInsta
Although PHP supports static variables in functions (see here), it has no
support for static variables in classes.
http://www.php.net/manual/en/language.variables.scope.php
(espero que te sirva)
saludos
aniceto lópez :: DYNAMICAL.BIZ
web development & host services
Barcelona - Spain
-Me
Hello all!
I am looking for PHP analog of Perl LWP::Parallel.
I need to fetch several URL(pages) from PHP at the same time.
I have a script which fetch 5-10 URL, each URL fetched 0.5 - 2 sec.
Totally it's about 10 seconds in average.
I suppose if I fetched them parallel I would speed up the script
I have a sql query, something like
SELECT x FROM server1.table WHERE x IN (SELECT x FROM server2.table)
I get a warning when loading the page. This is the warning:
Warning: MS SQL message: Heterogeneous queries require the ANSI_NULLS and
ANSI_WARNINGS options to be set for the connection. This ens
>> Is this a virtual host ? How did you define the AddType in httpd.conf ?
Yes. And I believe our AddTypes are set for each v-host. In this case, the v-host
has its own AddTypes.
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
Like I mentioned, th
Hi,
Friday, August 29, 2003, 3:01:45 AM, you wrote:
AM> I want to obtain only one instance of one class. In other to do that, I call
AM> to a static method, that creates the instance(if it doesnt exit) or returns
AM> the reference of the instance.
AM> The call to the static method is the next:
AM
Hi,
No problem, Just need a little advise on improving my page display time, let
me explain:
I am using some ad software (written in php) which is giving me 5 ads
(banners) to display on a page dynamically (eg: they rotate, banner code is
given at the end of this mail)
I have put all 5 banners on
On Thu, 28 Aug 2003 20:25:05 +0300, you wrote:
>I am looking for PHP analog of Perl LWP::Parallel.
>I need to fetch several URL(pages) from PHP at the same time.
>I have a script which fetch 5-10 URL, each URL fetched 0.5 - 2 sec.
>Totally it's about 10 seconds in average.
>I suppose if I fetched
can you display phpinfo? Did you check the php.ini file?
Shadow
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've found the solution myself.
The db class is the next:
class db{
function db (){
// funcion que se conecta con la BBDD
$result = @mysql_pconnect("inforalv", "discoteca", "password");
if (!$result)
return false;
if ([EMAIL PROTECTED]("discoteca"))
return false;
}
function &getInstancia(){
stat
Globals!? YUCK :) A better solution IMHO that maintains encapsulation,
is to use a static var in a function:
function &getClassVar( $name )
{
return getAndSetClassVar( $name, false );
}
function &setClassVar( $name, $value )
{
return getAndSetClassVar( $name, true, $value );
}
function &
Hi php-general,
I have a question about the mail function. In the API I saw, that when
running on linux, I just need the binary sendmail, usually located on
/usr/sbin. Windows users need a running mail-server.
I have php working on a linux machine. Why do I need to have postfix running then to
1 - 100 of 117 matches
Mail list logo