How do I find my own blog?
PHP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PHP web-programmingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Yesterday — Friday, 16 May 2008
Register Globals & is_upload_file Bill 19:55:07
 I'm converting old code to work with Register globals turned off in php.ini.
With it on, is_upload_file($fil­ename) works fine but when turned off doesn't
work at all.

What am I missing.. Help me please !!

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 5 answers | Add comment
Saturday, 10 May 2008
JPGrapgh and GD Library SAMBAR server Christopher J. Crane 22:50:07
 I recently installed and got working the GD library under a Windows 2K
server running SAMBAR server as the web server. I got a simple test script
to try to be sure the GD Library was working and it is and I am able to
output images in PNG JPEG and GIF formats.

My problem is that I can not get the JPGraph scripts running correctly. I
get error messages such as:
Warning: Undefined index: gd2 in ../jpgraph.php on line 3418

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Cannot add header information - headers already sent by (output
started at ../jpgraph.php:3418­) in ../jpgraph.php on line 4257
?PNG

I am not sure what I am doing wrong. I would like to use JPGraph because of
the nice graphs I have seen on his website. Any help would be great.



--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 3 answer | Add comment
Friday, 9 May 2008
PHP ImageCreateFrom.. malfunctioning in last PHP releases... M 11:26:26
 Hello people,

I use ImageCreateFromStri­ng PHP functions to resize (thumbnails and so)
dynamically my JPG images.

I use third party WEB hosting provider , so I have no control about new
releases and updates of server softwares.

I have not changed my images in last 3 years (they are used for virtual
stores), they appeared beautiful in these 3 years, but from some days
ago, they are appearing with terrible filter colors (all blue for
instance, some entirely black and so). When bypassing image PHP
functions, images again appear beautiful in my page, but site
performance to show product catalogs gets terrible, not to say
impossible for customers browse on it.

I wrote web provider to check what changed in their PHP environment, but
I am afraid they will answer none has changed.

I use the following sequence of commands to rebuild thumb images:

$orimage = ImageCreateFromStri­ng(string) to get original image
from opened JPG file
$thumb = ImageCreate(new-wid­th, new-height) to create empty new
thumbnail
ImageCopyResized($t­humb,$origame,....) to fill thumbnail
ImageJpeg($thumb) to show thumbnail

I checked by increasing 'quality' parameter ImageJpeg($thumb,''­,100)
but result continue to be wrong.

Is anobody else experiencing these problems lately?, how did you solve
it?

Thanks very much

(I would appreciate cc to meu@meucat.com if possible)

Mig

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 1 answer | Add comment
Tuesday, 15 April 2008
Assigning PHP Arrays to Javascript arrays Frank Kicenko 12:46:22
 Hi,
Question: How can assign a PHP array to a Javascript array?

Example:

while($row=$result-­>FetchRow())
{
$serv[$i++] = $row[0];
}

var server = new Array(index);
server = <?= $serv ?>;

for(ind = 0; ind < index; ind++)
{
alert(server[ind]);
}

This doesn't work for some strange reason....

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 3 answer | Add comment
Friday, 28 March 2008
Call to undefined function printer_open() saritha 23:27:55
 hie,i am attempting to use printer_open() but i am receiving the following error when i test through dl()

dl() [function.dl]: Not supported in multithreaded Web servers - use extension=printer in your php.ini in C:\AppServ\www\fyp\­ext_load.php on line 3

This is my code:
<?php
// Example loading an extension based on OS
if (!extension_loaded(­'printer'))
{
if (strtoupper(substr(­PHP_OS, 0, 3) == 'WIN'))
{
dl('printer');
}
else {
dl('printer.so');
}
}
// Or, the PHP_SHLIB_SUFFIX constant is available as of PHP 4.3.0
if (!extension_loaded(­'printer'))
{
$prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
dl($prefix . 'printer.' . PHP_SHLIB_SUFFIX);
}
?>

why i cant load it? i am using AppServ 2.5.9.
i did the following configuration.
extension_dir = "C:\AppServ\php5\ex­t"

//uncommenting the wants one
;extension=php_mssq­l.dll
extension=php_mysql­.dll
;extension=php_mysq­li.dll
extension=php_print­er.dll

i have copied php_printer.dll into ext directory and libmysql.dll in c:/windows/system32­
OptionsAdd comment
Sunday, 23 March 2008
Why parent::construct not called? Michel 'Ziobudda' Morelli 01:03:23
 Hi, why if I have

class B extends A {
}

the only way to call in automatic the A::__construct() is to not write
the B::__construct() ?

Ok, this is the design of PHP. But why ?

tnx

--
michel 'ziobudda' morelli <michel@ziobudda.ne­t>


--
PHP Development Mailing List <http://www.php.net­/>
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 7 answers | Add comment
Friday, 15 February 2008
Date-format Tommi Virtanen 21:52:00
 Hi!

I have web-form, which has field (10 chars), there I enter date (format
dd.mm.yyyy). Then data saves to database (date-field type is date).

So everything works, but not fine. When I enter date in format ex.
31.12.2002 and save form, then I'll check what are in db (there are
2031-12-20).

Is there any chance to correct this problem.

I have (in clause which insert to db):

GetSQLValueString($­HTTP_POST_VARS['date'], "date")

gustavus



--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 73 answer | Add comment
Tuesday, 1 January 2008
Forms... Mark Benson 09:32:00
 Does anyone know if it is possible to have 'checkbox' elements in a
form appear 'checked' or 'unchecked' when a page loads data from a
MySQL data source? Can I use an attribute in the <input> tag to switch
that?
--
Mark Benson

AIM - SilValleyPirate
MSN - mark.benson@hot-toa­st.com
Visit FlatPackMacs online: <http://fpm.68kmac.­com>
Visit my Homepage: <http://homepage.ma­c.com/markbenson>

"Introducing Macintosh Classic II - pick one out on your way past the
trash!"

--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 143 answer | Add comment
Sunday, 16 December 2007
string Natividad Castro 09:22:20
 Hi to all,
how can I evaluate a variable?
For example
$test = "test1";
then I want to evaluate if $test contains 1 at the end.
Is there any way to evaluate that variable to see if the number 1 is at the
end?
Thanks
Nato


--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 37 answers | Add comment
Wednesday, 12 December 2007
[PHP-DEV] Web services Guest 20:49:47
 Can someone give me some info about PHP5 and web services

tnx


--
Morelli Michel
ZioBudda.net Coordinator
michel@ziobudda.net­



--
PHP Development Internals - Developing the PHP Runtime Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 9 answers | Add comment
Sunday, 9 December 2007
asynchronous PHP to PHP call James 04:45:10
 I have a PHP script running on server 1. I want it to call another
script on server 2 to clean up some files. There may be tons of
files and I don't want to wait until the second script is finished.

Is there a way to asynchronously call the second PHP script?

Right now I'm using fopen() to call the script on the second server.
--
-James

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 3 answer | Add comment
Saturday, 8 December 2007
automatic login.. Ganu 15:19:50
 hi,

I created one site , and i implemented the concept of mypage same like as google or yahoo
or excite.com,

now my problem is i just want to put a line{href} in my mypge as set as home page so when
the user will click on that , so it will set this page as default page..

And next time he/she will come then no need of login the mypage will open automatically,
I think i hv to track the cookies and store the ip into
the table or something like that,,,,,

plz any body can help me and gv some hint , for how it is possible...

any logic or ideas,

thnx..
Open Source Ki Jai..
~ ganu maharaj..

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 4 answer | Add comment
Tuesday, 27 November 2007
Date Calculation Mike Tuller 19:30:03
 I have a shell script that inserts the unix date and time that the
script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT
2004. I would like to have my web page do the math so that it displays
the time since the script ran. How can I do the math so that the web
page will display something like the script ran 1500 seconds ago.


Thanks,

mike

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 24 answer | Add comment
Tuesday, 13 November 2007
syntax help Bob Pilly 22:08:40
 Hi all

I have a problem that is probably just a lack of php
syntax knowledge on my part and hopefully someone can
help me out.

I have an array and i want to query a database for
each value in that array. I then want to store that
result as a new variable called $array[value]total.

see code below

$array=array("Flyer­","Email","Phone");
$array_len=count($a­rray);
for($i=0;$i<$array_­len;$i++){
$query="select count(score) from test_table
where source = '$array[$i]'";
$result=mssql_query­($query,$numero);
$row=mssql_fetch_ro­w($result);
$array[$i].total=$row[0];<­-- problem here
}


so for the above code i would like to create three
variable $flyertotal,$emailt­otal & $phonetotal and
have the result of the count(score) query stored in
them. Any help or pointing to documentation would be
greatly appreciated!

Cheers

Bob

___________________­____________________­____________________­_____________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger­.yahoo.com/download/­index.html

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 19 answers | Add comment
Saturday, 10 November 2007
Who is on line? Mst 18:11:08
 I try to check "who is on line" in my php script.
How I can do it?


mst



--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 10 answers | Add comment
Friday, 2 November 2007
xmlspecialchars Richard Lynch 15:22:09
 I'm creating some XML data, but not using any of the built-in PHP XML
functions, as they are not necessarily available on all servers.

I need to encode Data (CDATA) such as URLs etc.

htmlspecialchars() works on all my test cases so far, but is it
"right"?...

Please cc: me on replies -- I'm way behind on PHP General reading... :-(­

--
Like Music?
http://l-i-e.com/ar­tists.htm

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 1 answer | Add comment
Tuesday, 30 October 2007
Extending the MySQLi_Result object? Joe Bandenburg 12:33:40
 Hi there,

It's my first post here, so go gentle.

I have run into a problem when trying to extend the MySQLi_result object
because the MySQLi object's method "query" always returns a
MySQLi_result and, to my knowledge, it is impossible to make it do
otherwise. So, my question is, how do I alter the "query" method to
return my new MySQLi_result object instead of the base object? Or, is
there another/better way of achieving what I'm looking for? Am I missing
something very obvious here? :)­

Thanks,
Joe Bandenburg

--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 1 answer | Add comment
Thursday, 11 October 2007
SQL ? Tyler Durdin 21:46:22
 SELECT *, IF (answer = 'a', TRUE, FALSE) AS Answer-A

What does the As Answer-A mean and what does it do?



___________________­____________________­____________________­______
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.­com


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 61 answer | Add comment
Monday, 8 October 2007
[PHP-DEV] mail problems Serban Gh. Ghita 08:16:13
 hello

tested some messages to my internal mail and i get mail loop error:

This message was created automatically by the mail system (ecelerity).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
zamolxe@php.net (reading confirmation): 554 mail loop detected


------ This is a copy of the headers of the original message. ------

Return-Path: <webmasters@k.ro>
Received: from ([194.102.255.23:483­27])
by sp1.php.net (ecelerity HEAD) with SMTP
id BF/45-31925-16BDFD0­4; Mon, 28 Jun 2004 01:48:34 -0700
Received: from k.ro (www@localhost [127.0.0.1])
by k.ro (8.12.10/8.12.9) with ESMTP id i5S90mlf017184
for <zamolxe@php.net>; Mon, 28 Jun 2004 12:00:48 +0300
Received: (from www@localhost)
by k.ro (8.12.10/8.12.9/Sub­mit) id i5S90kO7017173;
Mon, 28 Jun 2004 12:00:46 +0300
Date: Mon, 28 Jun 2004 12:00:46 +0300
Message-Id: <200406280900.i5S90­kO7017173@k.ro>
From: "S. Cremene" <webmasters@k.ro>
X-Mailer: Super-Mail@k.ro http://mail.k.ro/
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Sender-IP: 194.153.239.66
To: zamolxe@php.net
Subject: test


i modified my new e-mail for redirect in the management panel. can someone
guide me with this?

thanks

Serban Ghita
zamolxe@php.net
sasa@verasys.ro
PHP.net manual

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 30 answers | Add comment
Tuesday, 2 October 2007
SQL Error Daniel 11:41:55
 Please help. I have a basic scipt:

$connection_id=odbc­_connect("$DSN","$us­er","$pass");
$sql="select * from whatever";
$stmt=odbc_prepare(­$connection_id,$sql)­;
$result=odbc_execut­e($connection_id,$st­mt);

this script used to work on RH-7.3 with php-4.1.2
the script will not work anymore when i installed RH-8 using php-4.2.2
the connection IS successful, but when i try anything after that i get this
error:

Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host
server data stream., SQL state S1000 in SQLPrepare

i can connect,prepare and execute statements from c++ so it must be php
specific?
please help!!




--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 30 answers | Add comment
Wednesday, 26 September 2007
Session bug ? Tom Vrana 00:59:07
 Hi everybody,

I just encountered a very strange problem - I'm running Apache 2.0.36 +
PHP 4.2.1 - for couple months already. Yesterday I upgraded my system -
SuSE 7.3 to 8.0. Apache and PHP was left untoeched, but sessions stopped
working .... no files are saved to the temporary directory - and I get
this message whe debugging:

Warning: open(/tmp/sess_4a16­ecf3a438538a71530971­c6ccf2bb, O_RDWR)
failed: Invalid argument (22) in Unknown on line 0

Just in case you wonder, access rights are OK....

Can anybody help pls ? I'm desperate....

Tom

P. S. As I figured out form a strace of httpd, the params of open () are
in a wrong order, so no file gets created .....


--
PHP Development Mailing List <http://www.php.net­/>
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 3 answer | Add comment
Friday, 21 September 2007
file upload Sally Tirchett 22:46:49
 
From: "sally tirchett" <sally_tirchett@hot­mail.com>
To: php-general@lists.p­hp.net
CC: sally_tirchett@hotm­ail.com
Date: Tue, 30 Jul 2002 21:07:05 +0000
Hello,
I would like some help with uploading a text file from c:\temp\trial.txt
(pc with windows 2000 installed) and import it to a pc (red hat linux 6
installed) ip 164.130.160.89 and save it into an sql database 'production'.
Can you please help?
If the above is not possible how can i run from php a prog found
ex.c:temp\db1.mdb.­
Thanks
Sally





___________________­____________________­____________________­______
Chat with friends online, try MSN Messenger: http://messenger.ms­n.com


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 56 answers | Add comment
Wednesday, 19 September 2007
ASP to PHP Chuck PUP Payne 22:14:25
 I got a strange request from a client. He wants to be able to take his ASP
pages and move them over to PHP so that he can run them on apache on his
linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does
it work, how much is lost, is it easy to use? Is there another way to change
ASP file to PHP with out a lot of re-writes?

Chuck Payne


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 24 answer | Add comment
Tuesday, 11 September 2007
Converting a string Jay Blanchard 16:18:26
 I think that we did this before, but I cannot find my notes or in the
archive because I am not sure what we called it.

Let us say that that I have a form item (I'll leave out clutter);

<input name="psFirstName">­

It arrives in processing as $_POST['psFirstName']

Now, I have one of these for each form item, each with a different name.
In my error script I want to say

"Cannot leave First Name blank"

I need to convert psFirstName to First Name. I tried preg_split, but it
cuts away the capital letters. Can someone point me in the right
direction again? Thanks!

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 23 answer | Add comment
Authorize.net David Johansen 16:14:20
 I know that this is way off topic, but I was wondering if someone could help
me. I couldn't think of anywhere else to look for info. So here are my
questions. If someone could help me out or point me in the direction of a
good resource I would be very grateful. But here goes.
I just started setting everything up with Authorize.net. I've set it up to
send all of the information correctly to Authorize.net, but I had some
questions about the relay script that recieves the information. How am I
supposed to handle the times when x_Response_Code doesn't equal 1? How do I
get it so that the input fields reappear? On most sites they pop back up if
an invalid credit card number is entered or any other error, but on mine it
doesn't. Do I have to set up the fields myself or is there something I can
do to make it reput them all back on the page? Also when it's approved and
goes through the user can keep hitting refresh and it charges them multiple
times and sends them an email each time. Is this just because I'm in test
mode or is there something I can do to prevent this? Thanks a ton,
Dave



--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Optionscomment 12 answers | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PHP web-programmingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Array_keys problem
Intermittent problem with Session…
php as default "value" in html
see also:
Problem with script halting
session_exist() ?? Can this be done?
Sorting array of objects
see also:
Warning: exec(): Unable to fork
Question, what to do when finding an…
PEAR Sequences

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
You can find the help and FAQ in the Admin's blog.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .