On 8/20/2013 10:00 AM, Tedd Sperling wrote:
Hi guys:
A teacher at my college made the statement that JAVA for Web Development is
more popular than PHP.
Where can I go to prove this right or wrong -- and/or -- what references do
any of you have to support your answer? (sounds like a
I have a MySQL server A, a server B with PHP 5.3.8 and a server C with
PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C
using an internal network. Server B and C use the same PHP application.
There are also same PHP scripts that get data from the database and then
Hi,
I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP
5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an
internal network. Server B and C use the same PHP application. There are also
same PHP scripts that get data from the database and then
How about a middle-of-the-road solution?
www.PairNIC.com
The domain services of the very good webhost, Pair Networks. I've been
with their hosting solutions since 1998, and with their domain
registration services since whenever it opened (5 years ago, I spose).
Not the cheapest, not the
,
look in the examples section.
Eric Holt (PHP List) wrote:
Hello everyone. This is my first post to the list, so bare with me :)
I have written an application for a client that is used in the Event
Photography business. It handles taking photographs, categorizing
them, making thumbnails
the time recoding the
application to work with MagicWand, only to find out that I dont end up
with any performance increase -- or worse of all, a decrease.
I wasnt convinced either way, from the Googling I had done on the
subject, so I thought I would post the question to the PHP list.
A little
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
Regards,
Kim Steinhaug
- - - - - - - - -
www.easycms.no
- Original
You are referring to this page :
http://www.opensourcecms.com/
Regards,
Kim Steinhaug
- - - - - - - - - - - - -
http://www.easywebshop.no/
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Erik Gyepes [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Tuesday, August
Hello,
I'm working on a downbload script which serves M3U
files (Winamp playlist files) through a PHP file
like this :
somepath/download.m3u.php?id=2
Then in the PHP script I generate the M3U file, and
serve up the headers I want. Swell so far, but a
little problem appears.
The downloads are
- - - - - - - - -
www.steinhaug.com
- Original Message -
From: Kim Steinhaug (php list) [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, August 22, 2005 7:01 PM
Subject: [PHP] session_start(), Pragma and Cache-control headers
Hello,
I'm working on a downbload script which serves M3U
I have done this quite a few times lately, you shouldn't
worry. Just have your session_start() and login security
on the pages that you access with javascript aswell, they
will have the same security as any other page.
The sessionID is used for all requests to the server
from the webbrowser,
Pablo,
Thanks for responding. I found out what the problem was. There was an
argument that was empty (i.e. empty string) in the add_cat() method. Thanks
for your help, I really appreciate it. :)
[snip]
Notice: Undefined index: 0 in
Hello Everyone,
I keep getting the following errors in my class and I don't know why. Maybe
something has changed in PHP 5.x that I don't know about? Here are the
errors and the methods of that class:
---
Notice: Undefined index: 0 in
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
On Monday 11 October 2004 19:41, [EMAIL PROTECTED] wrote:
Never mind guys, I figured it out. I appreciate your help. Thanks for
everything!
Never mind guys, I figured it out. I appreciate your help. Thanks for
everything!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 10, 2004 10:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
Thanks to all of you for your explanation of my method.
Thanks to all of you for your explanation of my method. Minuk, thanks for
the detailed explanation, it really helps me understand what I'm doing
wrong.
Now I have one more problem. When the $children array is empty, it returns a
10 instead of a 0. Why is that? Here's the method again with the
Hello everyone,
I'm hoping you guys can help me with this error. Here's what I'm getting:
Notice: Undefined variable: children in
L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on line
58
This error occurs only when the class's method outputs $children as having a
value of
Hello everyone,
I know this is going to be tough but I need a hosting company that supports
PHP5, has unlimited disk space and a good amount of bandwidth with a
decently fast connection for a decent price. I realize that this might be
rare, but is anyone offering such a package like this
Jim,
Thank you. Problem solved thanks to you. The moment you said that PEAR::DB
is not finding the MySQL extention I realized that the extension in php.ini
hasn't been commented out and the extension folder had not been recognized
by PHP. I forgot we had to do that in PHP5. Everything is working
Hello everyone,
I have a problem connecting to the Database. When I execute the code at the
bottom, it gives me this message: DB Error: extension not found. It sees
the DB file and the parameters are correct. I checked the include path and
it was correct. Did I do something wrong? Any help would
Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as
secure as possible. I'm going to place the files outside the web directory
and use authentication to approve that the user can download some particular
song. I didn't know you could do a forced download. I will definitely
Hello everyone,
I want to build a music site, all copyrights intact, and I want users to be
able to download mp3 or realplayer files using a one-click link. When they
click on a link they will simply be given a typical download window to save
that music file. How do I go about doing that and
Try phpsniff at http://phpsniff.sourceforge.net/. It not only detects
javascript using PHP, but many other things as well. You will wonder how you
lived without it. It's pretty cool...
Navid
-Original Message-
From: Thomas Goyne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004
Hello Everyone,
I'm building a hotel management system and I can't seem to figure out why my
for() loop doesn't work the way it should. I'm using patTemplate to create
the HTML Template (I like using it and I don't want to start a pro/con
template war). Here is the script:
for ($j = 0; $j 32;
PHP is more of a binding language that takes advantage of many different
coding practices and puts them together. PHP is not jealous and does not
separate or shun itself from other languages and borrows many of the ideas,
schemes, similar libraries, etc. from these other languages. And yet, it is
No, no...that's actually a great idea. I like your approach, especially in
my case. Thank you for the suggestion! :)
Navid
-Original Message-
From: Rory McKinley [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:57 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
Hello Everyone,
I have an HTML table with 7 columns and 32 rows, not including table headers
and footers. I want to create a tabular data table that spans 7 columns and
32 rows. I get my info from MySQL and use for() loops to loop through two
types of arrays. An array containing the dates (the
Chris,
It's a little difficult to do in ascii, but here's an attempt. This is a
simple hotel/motel log of who's staying in certain rooms. The 7 columns are
the 7 days in the week and guest names fall under whichever date they
checked in. So, let's see if I can give you a visual representation of
I wrote this in plain text. I hope it came out well...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 9:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Creating Rows and Columns Using for() Loops
Chris,
It's a little difficult to do in
You can try using PEAR's Calendar System. It works great for what you might
need. Here's a website of what you can do with PEAR Calendar:
http://pearcalendar.sourceforge.net/examples/
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 08, 2004 12:59 PM
To:
So other than Config (for now), most other packages are compatible with PHP
5 already? What about the answers to my other questions? How will PEAR be
organized in PHP 5? What do I need to look out for when making the
transition, etc?? Thanks.
-Original Message-
From: Oliver Kuhl
Hello,
There is a person asking me where she can find a website developer that will
create an e-commerce solution for her. I don't feel I'm ready to help her
out in that area yet, but I still want her to be able to have other choices.
I remember there was a main website where freelance
I am using php mail and setting all my $headers info to show From:, To:,
etc.
It work perfectly on my computer. I use MS Outlook.
I am doing this for a client who received his email via his aol account.
When he receives the email, the email comes in with Unknown Sender.
Is there issues with this?
I am writing a php script to accept an HTTPS POST of data from a remote
site, process the data, and send an HTTPS POST response back (not
necessarily to the same remote site). I can do this pretty easily in
PERL (which I may have to if I can't find a PHP solution). Also I need
to do the https
On Tue, 2003-07-15 at 15:12, Chris Shiflett wrote:
--- PHP List [EMAIL PROTECTED] wrote:
I am writing a php script to accept an HTTPS POST of data from a
remote site, process the data, and send an HTTPS POST response back
(not necessarily to the same remote site).
Can you perhaps
Hi All,
I have a question about sessions.
I need to pass session data from one domain to a secure domain. (www.mydomain.com to
www.securedomain.com).
I would like to preserve the session data in case the visitor goes back to
www.mydomain.com. I thought about just passing the session ID to
You query is incorrect. Try doing the same query from the MySQL clent.
|- -Original Message-
|- From: Phil Powell [mailto:[EMAIL PROTECTED]]
|- Sent: Thursday, January 09, 2003 7:46 PM
|- To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
|- Subject: [PHP] mysql_num_rows() error
|-
|-
|-
instead. Is this a bug?
Shouldn't it use libpng-1.2.1 for everything?
Once I got rid of the rpm versions, I know longer had a problem.
- Original Message -
From: PHP List [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 4:34 PM
Subject: [PHP] Upgrade help!
Hi,
I am
Hi,
According to the docs, 4.3.0 comes with gd bundled in. Do I still have to use libpng
and jpg and free type seperately?
Do I still need --with-png-dir= in the configuration of php or is it part of the built
in gd library?
Thanks for any help.
Hi,
I am trying to upgrade to php4.3.0, everything works, but when I try to use any gd
image functions I get the following error:
libpng warning: Application was compiled with png.h from libpng-1.2.1
libpng warning: Application is running with png.c from libpng-1.0.12
gd-png: fatal libpng
Okay, I need to retrieve the output of a php file with variables being
passed to it. Example:
$calendar_file = make_calendar.php3?month=$monthyear=$year;
$fp = $fp = fopen($calendar_file, r);
while (!feof ($fp)) {
$buffer = fgets($fp, 4096);
$calendar_html .= $buffer;
}
Hi,
This is more of a Javascript question so please forgive.
I generate a dynamic form with php.
I need to be able to test in javascript if a certain field exists:
.
.
if (document.myform.mytextfield) {
.
.
This line will give me the javascript error document.myform.mytextfield is undefined
Same problem, I still get an undefined error.
Try using the string functions.
document.myform.mytextfield.value or something...
On Thu, 2002-11-21 at 13:25, PHP List wrote:
Hi,
This is more of a Javascript question so please forgive.
I generate a dynamic form with php.
I need
[EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 4:57 PM
Subject: Re: [PHP] Firewall Question
it depends on the operating system your running.
Paul Marinas
Technical Support
RDS Craiova
Phone: +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51
: Paul Marinas [EMAIL PROTECTED]
To: incoming [EMAIL PROTECTED]
Cc: Stephen [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 4:57 PM
Subject: Re: [PHP] Firewall Question
it depends on the operating system your running.
Paul Marinas
Too many to list in an email. This site has allot of information.
http://searchenginewatch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not sure if this has something to do with the fact that all the boxes have the same
name rgItems[] and the browser doesn't know which one to uncheck.
Has anybody else come accross this?
Thanks,
And I apologize for asking this question on the PHP List, but I am hoping someone here
may have had
Why not use the Memorize button to set a hidden field? Or just use a check
box.
Since you are going to be submitting the data anyway, save the fields at
that time depending on whether or not the check box/hidden filed is set?
Hi,
I have a form where the user enters some information. For a
Your get statement is wrong:
http://maloyportalen.no/~critical/maloy/index.php?page=main2.php?id=7
use
http://maloyportalen.no/~critical/maloy/index.php?page=main2.phpid=7
You only get 1 question mark, any after will be treated as part of the
variable page.
Hi!
I started to learn PHP
)
{
alert(document.LevelListForm.elements['rgItems[]'][i].value);
document.LevelListForm.elements['rgItems[]'][i].checked = false;
}
}
}
//--
/script
PHP List wrote:
Hi,
I am hopeing someone can help me with this.
This is more of a javascript problem I suppose.
I have a bunch of check
Why?
echo THE VARIABLE .(please help me right here). EQUALS .$tigidizougou;
Obviously the variables name is tigidizougou, so just do this:
echo THE VARIABLE tigidizougou EQUALS .$tigidizougou;
Or am I missing something here?
Theoriquement it is not possible, because you cannot use any
For some reason my brain is not operating within normal parameters this week.
$myarray[test] = sd;
echo $myarray[0];
Why will nothing echo? Do I somehow have to initialize indexing on the array $myarray?
php says that $myarray is an array, but I can't access it with numeric indexes.
I know if I
I think the fog is starting to clear, thanks for the help.
I do have one more question:
If I want to use array_walk in a class, how do I refer to a function in that
class?
Class MyClass
{
.
.
.
function DoArrayStuff($item1, $key, $nMode)
{
echo $item1;
}
No, array_keys does not do what I want, in order to user array_keys, it
assumes I know the value of the key, but I don't, I want to get the value of
the key but all I know is the index.
Perhaps you want to look at array_keys().
On Monday, October 28, 2002, at 05:48 PM, PHP List wrote:
How
'?
I think you are looking for array_search()
On Mon, 28 Oct 2002, PHP List wrote:
Hi,
Lets say I have a simple array like this:
$myarray = array(a=b,d=c);
echo $myarray[0] will return 'b';
How can I get the name of the index? so:
echo $myarray[something] would return 'a';
I
From my experience, I found this:
Selecting 1000 records from 2 tables using a join, 10secs and up.
Selecting 1000 records for table 1, all records from table 2, then using php
to figure out which rows from table 2 belong to table 1 and building my own
combined array, less than a second.
but remember, this wasn't added until PHP version 4.1.0
Jim Lucas
www.zonedzero.net
www.giantmaps.com
- Original Message -
From: PHP lists [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 9:43 AM
Subject: Re: [PHP] Finding out what week it is
$week = date(W);
Hi,
Is it possible to detect if a file is being called as an include or require?
ex:
include(file.php)-- file.php code can detect that is has been
called as an include.
Thanks,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I was wondering about the following:
Should I store a picture directly in a MySQL table? Or just store the link
to a file on the system somewhere?
I would think that leaving the picture as an actual file and just storing
the link would be quicker. But what are the dis/advantages of storing
Yes, this is probably in the manual, but I can't find it.
If I want to upgrade from 4.0.6 to 4.1.2, do I have to re-compile apache as
well?
Thanks
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Does anyone know where the PNG library went?
The manual points to cdrom.com/pub/png, but that does not exist anymore.
Thanks for any help.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Stupid QuestionThanks for all the responses.
Just to be clear, I have php installed as a module, so I have to re-compile apache.
- Original Message -
From: Adam Plocher
To: 'PHP List'
Sent: Thursday, February 28, 2002 9:46 AM
Subject: RE: [PHP] Stupid Question
Thanks,
Sorry I asked, I should have just searched for it, but my clue-x-4 is
broken.
Does anyone know where the PNG library went?
The manual points to cdrom.com/pub/png, but that does not exist anymore.
http://www.libpng.org/pub/png/
Yes, you have to re-compile php because php compile and install a module
under apache_1.3.xx/src/modules
Thanks for the reply. I have another question. If I have to recompile
Apache can I take this opportunity to upgrade it as well. I'm using 1.3.14
but would like to upgrade to a more
What is the proper way to transfer class properties through-out my pages...
let's say i have a ShoppingCart Class and i have methods like
addToCart(id, qty) and deleteFromCart(id)
also i have properties like CartItems(id = array(), qty= array())
this is what i do...
//when the user enters my
What is the proper way to transfer class properties through-out my pages...
let's say i have a ShoppingCart Class and i have methods like
addToCart(id, qty) and deleteFromCart(id)
also i have properties like CartItems(id = array(), qty= array())
this is what i do...
//when the user enters my
What is the proper way to transfer class properties through-out my pages...
let's say i have a ShoppingCart Class and i have methods like
addToCart(id, qty) and deleteFromCart(id)
also i have properties like CartItems(id = array(), qty= array())
this is what i do...
//when the user enters my
You could just change the code for the generated page to re-generate the
page without the headers, etc. Then just link to the same page with a print
command:
echo a href=\$PHP_SELF?print=yes\Click here for a printable version of
this page./a;
if ($print yes)
include(header.inc);
Hi,
Can someone please tell me why the this is happening:
1) $szTag = test|3;
2) $rgTemp = split(|,$szTag);
3) $szTag = $rgTemp[0];
4) $nItemID = $rgTemp[1];
^line numbers for ref only, not in actual code.
Will give me the error:
PHP Warning: unexpected regex error(14) in /test.php on
Hi,
I am trying to do something like this:
img src=image.php?image=1
The code is like this:
script language=php
$szPicture = myimage.gif;
$url = http://www.mysite.com/; . $szPicture;
header(Content-type: image/gif);
header(Content-Length: . strlen($url));
echo $url;
/script
But nothing
Thanks, but my html is valid, and what you are doing is not what I want to
do.
I want to display a random image included in the page, just like a banner
program would work.
I do not allow php execution on the page so the only way to get the image is
to call the script with the img src tag, just
How about:
if (substr($url,0,7) http://;)
$url = http://; . $url;
Hi,
which function would i use to check if a certain value is in the contents
of
a variable?
I have a form where the users submits url's. I need the url with http://
in
the beginning. Since there is more data after
Correct, the third parameter is for the number of characters to read,
nothing means entire string.
Function details can be found here:
http://download.php.net/manual/en/function.substr.php
How about:
if (substr($url,0,7) http://;)
$url = http://; . $url;
Thanks!
That´s just
How about like this:
$required = array(field1,field2,field3);
for ($i=0;$icount($required);$i++)
{
$temp = $required[$i];
if (trim($$temp) == )
{
echo You Missed One;
continue; (break?)
}
}
Something like that, I havn't acually tried it.
- Original
Hi,
I heard it was possible to turn off/on php execution in a directory using
the .htaccess file.
Can some one tell me how to do that?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hi,
I am trying to update my server to php4. Everything seemd to compile fine.
httpd -l shows mod_php4.c in the list.
I used to use these entries in my httpd.conf to specifically turn php on in certain
dirs instead of default on for everyting.
Directory /dir/dir/dir
php3_engine on
to turn PHP parsing on and off on a
per-directory or per-virtual server basis. By putting engine off in the
appropriate places in the httpd.conf file, PHP can be enabled or disabled.
Kind of misleading that last part.
- Original Message -
From: Steve Edberg [EMAIL PROTECTED]
To: PHP List
On Thu, 30 Aug 2001 02:25, PHP List wrote:
Hi,
Can anyone tell me why php is behaving like this?
If I use enctype=multipart/form-data, it seems the first form field
is not passed to php. ex:
form method=post action=products.asp
enctype=multipart/form-data input type=hidden name
Hi,
Can anyone tell me why php is behaving like this?
If I use enctype=multipart/form-data, it seems the first form field is not passed to
php.
ex:
form method=post action=products.asp enctype=multipart/form-data
input type=hidden name=cmd value=edit
$cmd will not be passed to php, I have to
Thats interesting.
I tried to do the same thing with 5000 emails using sendmail, and I found
that only about 1/2 were actually sent, it seems like the multiple calls to
mail caused some of them to be ignored. I had to sleep for a couple of
seconds before each call to mail() in order to get them
Ge, does this mean we ALL won? :O
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 2:40 PM
Subject: [PHP] Win One of 25 Dream Vacation Getaways!! .
You have been specially selected to qualify for the following:
Premium Vacation
Hi,
I am trying to upgrade from php3 to php4, I recompiled apache_1.3.20 and php4.0.6 as
per instructions(http://www.php.net/manual/en/install.apache.php).
Everything seemed ok, but LoadModule in the httpd.conf was no longer recognized so I #
all the LoadModule and AddModule lines. httpd -l
IMO
I would have to say it depends on the Timeline of your Boss.
Releasing the app to the open source community would be great, the more
there is, the more reason for people to stop using MS, but you can't demand
a schedule of when new features will be added.
You may have to go with the MS for
Hi,
Can anyone tell me why this is a never ending loop?
$i=0;
$count = 1;
while ($count $i);
{
echo $i br;
$i++;
}
Chris
Oops, well, that is just mental.
Must be getting tired or something, yes, that's it :)
Thanks.
- Original Message -
From: Gyozo Papp [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]; php [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 4:58 PM
Subject: Re: [PHP] Loop error?
Hi
Hi list,
I have scoured the archives with no good game plans.
Here is what I am trying to accomplish:
dump a table to a file on my server:
$sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n' FROM table_name";
take the file and email it to someone:
86 matches
Mail list logo