What does the Netiquette imply?
PHP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

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

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Friday, 26 January 2007
two php.ini on the same server Phpdevster 18:59:05
 Hi

i am trying to run two Apache server on the same machine and that is work
fine

but the problem is how to create separate php.ini for each Apache server .
is that possible ??
comment 4 answer | Add comment
[PHP-DEV] PHP 5.2.1RC4 Released Ilia Alshanetsky 18:34:01
 The final release candidate for PHP 5.2.1, RC4 is now available for
download. Pending any problems this will be released as 5.2.1 next
week, so this is the last chance to identify any critical issues
before it is too late. If you have not tried any previous RCs, please
do so now. The tar balls can be found at the URLs below and win32
binaries will follow shortly.

http://downloads.ph­p.net/ilia/php-5.2.1­RC4.tar.bz2 (md5sum:
f50578276f653b1f523­150e3ff987f03)
http://downloads.ph­p.net/ilia/php-5.2.1­RC4.tar.gz (md5sum:
361197eb2b21b36e2e2­0cb132da2cf16)

I'd like to ask all developers to refrain from making any (no matter
how trivial) commits to the 5.2 branch until 5.2.1 is released, if
you feel you have a critical patch, please run it by me first, thanks.

Ilia Alshanetsky
5.2 Release Master

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


comment 4 answer | Add comment
retrieve all the groups a user is memberOf from active directory? Bing Du 18:14:36
 Hi,

Sorry if the top is not closely PHP related. But I need to accomplish it
using PHP.

I can query the attribute 'memberOf' of a user from the active directory
server with no problem. The challenge I'm facing now is how to obtain all
the groups a user is member of. In many cases, a user can be in many
groups which could be nested. Say, user is a member of group B which is a
member of group A. So user should be member of group A implicitly. But
in active directory, user's account only has

memberOf: CN=Group_B,OU=secur­ity groups,OU=Users,OU=­Coll,DC=some,DC=edu

I can then check if Group_B's LDAP entry has any 'memberOf' attribute, so
on and so on. If user's LDAP entry has multiple 'memberOf' attributes, I
have to check each one to see if each group has any parent groups.
Anybody ever had to deal with such a kind of issue and would like to shed
some light (better with some code samples) how it should be done
effectively? Any ideas would be greatly appreciated.

Thanks,

Bing

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


comment 2 answer | Add comment
bit wise math? Is there a function to easily return the bits? Blackwater Dev 16:30:13
 Is there a php function I can call to pass in a number and get the values
returned?

For example, pass in 7 and get 1,2,4 ?

Thanks!
comment 8 answers | Add comment
Send Email to Mobiles Marcelo Ferrufino Murillo 12:42:28
 Hi guys, I need to send a email to mobiles I don t know if I have to use the
function "mail( )" or if I have to use other one. Thanks your help
comment 2 answer | Add comment
php from address Chantal Rosmuller 12:07:30
 Hi everyone,

In November I sent a mail to this list asking how to get the mail From header
right, I solved that but I still have a problem. The solution was using
the -f option like this:

$frommail = "user@domain.com";
mail("$to", "$subject", "$message", "$headers","-f$from­mail");

The from address is correct now but the displayed name is still www-data (or
apache, depends on the server configuration). The header looks like this:

From: user@domain.com (www-data)

Is there anyway to change this?
Thanks, regards Chantal

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


comment 2 answer | Add comment
PHP 5.2.0 + qmail problem Bc. Radek Krejca 11:01:25
 Hello,

I had to change my mailserver from sendmail to qmail. After it I saw
that the mail generated by function mail() has 2 newlines in body except 1.
I have this konfiguration on server with php4xx and no problem is
there. Also if I change back sendmail so it is working too.

The output with this problem is:
-------------------­--------------------­--------------------­-------------------
Content-Type: text/plain; charset="utf-8"
Content-Transfer-En­coding: base64
X-Qmail-Scanner-1.2­5: added fake MIME-Version header
MIME-Version: 1.0

SVA6IDEwLjQuMjQuMjQ­yClRhcmlmOiBBS0NFIC0­gSU5URVJORVQgMTAyNDA­vMTAyNDAgLSAyMDQ4

TUIgRlVQIDM4NApVxb5­pdmF0ZWw6IEphbiBMVUv­DgcWgCkZpcm1hOiBKYW4­gTFVLw4HFoApBZHJl

c2E6IEouQmVuZHkgMjg­KMzcwIDA1IMSMZXNrw6k­gQnVkxJtqb3ZpY2UKQnJ­hbmE6IDEyCkJvZDog
-------------------­--------------------­--------------------­-------------------

but should be
-------------------­--------------------­--------------------­-------------------
Content-Type: text/plain; charset="utf-8"
Content-Transfer-En­coding: base64
X-Qmail-Scanner-1.2­5: added fake MIME-Version header
MIME-Version: 1.0

SVA6IDEwLjQuMjQuMjQ­yClRhcmlmOiBBS0NFIC0­gSU5URVJORVQgMTAyNDA­vMTAyNDAgLSAyMDQ4
TUIgRlVQIDM4NApVxb5­pdmF0ZWw6IEphbiBMVUv­DgcWgCkZpcm1hOiBKYW4­gTFVLw4HFoApBZHJl
c2E6IEouQmVuZHkgMjg­KMzcwIDA1IMSMZXNrw6k­gQnVkxJtqb3ZpY2UKQnJ­hbmE6IDEyCkJvZDog
-------------------­--------------------­--------------------­-------------------

It makes me problem if I use Content-Transfer-En­coding: 8bit.

My idea is that qmail doesn't trim body of message and newer PHP
too bud I don't know if I am right.

Where could be a problem?

--
S pozdravem,
Bc. Radek Krejca
ICQ: 65895541

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


Add comment
how to delete all entries on the address book Angel 10:45:17
 

Is that possible?

How... ?Sent from the phpGroupWare forums @ http://forums.phpGr­oupWare.org
comment 3 answer | Add comment
Validating a link in php Guest 08:47:03
 Hi all,

I'm hoping y'all can help me with a bit of a php code problem I'm having.

What I'm trying to do is link to YouTube videos (more than one in a single
webpage). However, because I'm worried about the videos going away and the
links going bad, I'd like to use PHP to check if the link is good; if it's
good, display the video link, else display a static image that I have on my
servers.

Where I'm having troubles is in the checking of whether the url is good. I
think part of the problem is YouTube itself. I've tried file() and
fsockopen(), but neither seem to work.

Below is an example of the block of code I'm trying to write.

<?
error_reporting(E_A­LL ^ E_NOTICE);
if (the "http://www.youtube­.com/v/JqO8ZevPJNk" url is valid) <-- ???
{
echo " <object height=\"400\" width=\"475\">\n";
echo " <param name=\"movie\" value=\"http://www.­youtube.com/v/JqO8Ze­vPJNk\">\n";
echo " <embed src=\"http://www.yo­utube.com/v/JqO8ZevP­JNk\"\n";
echo " type=\"application/­x-shockwave-flash\" height=\"400\" width=\"475\">\n";
echo " </object>\n";
}
else
{
echo " <a href=\"10538overtur­evideo.jpg\"><img SRC=\"10538overture­video.jpg\" height=\"130\"></a>­\n";
}
?>

Many thanks for any assistance you can provide.

Robert Porter

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


comment 6 answers | Add comment
Parsing AJAX post data -- The Way M5 08:02:31
 Just wondering what smart people do for parsing data sent by the
Javascript XMLHTTP object--e.g., http.send("post",ur­l,true)...

In a normal form submit, the $_POST global nicely allocates form
elements as array elements automatically. But with the AJAX way, the
data get stuffed inside $HTTP_RAW_POST_DATA­ as a string, thereby
making extraction more tedious.

Any ideas?

...Rene

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


comment 9 answers | Add comment
how to use odbc??? Bedul 07:55:56
 can u give me url to have odbc example..

or i give the problem..

i want to connect to this odbc.. u may click
http://indoupload.n­et/files/view/803/od­bc%20problem.jpg

how to connect to the odbc and then execute sql.
any question about the problem.. i will gladly answer

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


Add comment
JPEG info needed Gerry D 04:19:03
 I need PHP to find out if a jpeg file uses progressive encoding. None
of the standard exif or image functions seem to be able to tell me
that. (please correct me if I'm wrong)

Can anybody help me?

TIA

Gerry

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


comment 6 answers | Add comment
most powerful php editor Vinicius C Silva 00:41:04
 hi everyone!

i'd like to ask something maybe commonly asked here. what is the most
powerful php editor?
comment 53 answer | Add comment
Version Info David Jenzen 00:41:04
 How can I tell what versions of phpGroupware I really have installed? This
may be a stupid question, but you never know until you ask. I have or think
I have upgraded to 0.9.14.RC3 via tar ball, but when I login it shows
"Powered by phpGroupware version 0.9.13.018 on the screens. I also have:
Would you like phpGroupware to check for a new version
when admins login ?: Yes
Would you like to show each application's upgrade status ?: Yes

in my Admin setup. When I login as an administrator it shows:

The API is current
This application is current

on the screens. I have run the cvs -z3 update -dP also and still have the
same version numbers. Shouldn't I show something like "Powered by
phpGroupWare version 0.9.14.RC3" on my screens?

Thanks
comment 3 answer | Add comment
preg_match problem Chris N 00:41:04
 Ok heres the situation, I have a string like this

$this->_item["title"] = "28.09.02 - Some silly Text (First) (Second)";

Im trying to do a preg_match on it to check it to make sure its in a certian
format. Heres my preg_match

preg_match("/^(\d+)­\.(\d+)\.(\d+)\s+\-\­s+(.+)\s+\((.+)\)$",­
$this->_item["title"], $matches);
list($all, $one, $two, $three, $four, $five) = $matches;

What Im getting returned in this

$one = 28
$two = 09
$three = 02
$four = Some silly Text
$five = First) (Second

What I want is

$four = Some silly Text (First)
$five = Second

Can anyone see where Im going wrong? The match may be really crude, Im still
pretty new to regular expressions. But it works just fine as long as there
is only one set of ().

Chris N.



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


comment 34 answer | Add comment
Thursday, 25 January 2007
[PHP-DEV] PHP 5.2.1RC3 Released Ilia Alshanetsky 22:14:00
 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The 2nd release candidate for PHP 5.2.1 is now available for
download. The tarballs can be found here:

http://downloads.ph­p.net/ilia/php-5.2.1­RC3.tar.bz2
(d3889eda8c3471ce7c­f2adb35a4de736)
http://downloads.ph­p.net/ilia/php-5.2.1­RC3.tar.gz
(c5b3e5540d1951d4c4­b976b8a39c09ab)

and the Win32 binaries will be available in short order.

Since the last release, there are over 20 different bug fixes
resolving some annoying engine issues such as the tempval leak inside
foreach(). We do not anticipate any regressions to be introduced by
this RC, but I would still like to ask everyone to take a few minutes
and test it against their code base. If you come across any issues
please report them at http://bugs.php.net­/.

Depending on the stability of this release it may either be followed
by a final release or another RC, therefor your feedback is critical
to determining whether or not the code is stable enough to warrant
the 5.2.1 final.

Ilia Alshanetsky
5.2 Release Master


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFsBJOLKekh38­1/CERAq/MAKCKg7buIpB­9hXWrtnfHN7hQPB6akgC­eJy8q
Q/HBl5G15afjTjebEaI­LHlE=
=tsFU
-----END PGP SIGNATURE-----

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


comment 24 answer | Add comment
[PHP-DEV] COM extension defects: Possible patch for defect 35464 Andy Wharmby 20:10:59
 Hi Internals
Attached is a suggested patch for COM defect 35464
(http://bugs.php.ne­t/bug.php?id=34564) Any comments; good or bad welcome.
Regards
Andy

Andy Wharmby
IBM United Kingdom Limited
Winchester, England SO21 2JN
E-mail: andy_wharmby@uk.ibm­.com

COM defect 35464
================

The following details 2 reasons why in/out parameters don't work; one
caused by a problem with tetscase another a defect in COM extension code.
The testcase supplied by the raiser implements the DWebBrowserEvents2
interface to register an handler for the BeforeNaviagte2 event. This
handler is passed just one in/out parameter; a VARIANT_BOOL which can
be set to TRUE by the handler to cancel the navigation operation.
Doing so in PHP currently has no affect, for the 2 reasons I will
describe below, so the navigation completes and the specified page is
displayed by IE.

Issue 1
======
The users code is attempting to modify the variant directly in PHP code
as follows:

$cancel = true;

rather than using the COM method variant_set as follows:

variant_set($cancel­, true);

With this correction to the PHP script in place the variant for $cancel
is correctly changed to TRUE but IE still navigates to the requested page
so the modification is having no effect. The reason for this is the
subject of issue 2 below.

Issue 2
======
When an event notification is received by the COM extension
disp_invokeex() processes the incoming parameters (variants) by taking
each one
and wrapping it in a php_com_dotnet_obje­ct object. At this time a COPY
of the incoming variant is embedded into the php_com_dotnet_obje­ct so we
immediately have 2 copies of the variant and it is this copy in the
php_com_dotnet_obje­ct which is processed (get and set) by the PHP code.
I see no code that checks for modification to our copy in the
php_com_dotnet_obje­ct before returning to the caller (in this case IE)
so modification
to in/out parameters by the PHP code has no affect.

Given that the code copies an incoming variant in php_com_wrap_varian­t()
I would have expected to see some code prior to return in disp_invokeex()
which checks for modifications to in/out parameters and copies any
modified values back to the callers copy of the variant.

I have hacked some code as follows:
com_wrapper.c: http://www.pastebin­.ca/328026
com_variant.c: http://www.pastebin­.ca/328022
com_misc.c: http://www.pastebin­.ca/328025
php_com_dotnet_inte­rnal.h: http://www.pastebin­.ca/328027

The new code works as follows:
(1) When a variant is modified by a call to variant_set() in
com_variant.c a new flag (obj->modified) is set in the
php_com_dotnet_obje­ct.

(2) After a successful call to a event handler new code in
com_wrapper.c function disp_invokeex() checks each of the event
handlers arguments
(php_com_dotnet_obj­ect's ) to see if any of their embedded variants
have been modified. If so and the argument passed into the event handler was
passed by reference then the value in the embedded variant is copied to
the callers copy by a call to a new function php_com_copy_varian­t()
defined in com_variant.c.

With this patch applied when the supplied testcase is run the navigation
is now cancelled as expected.

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


comment 1 answer | Add comment
sortind arrays William Stokes 17:54:28
 Hello,

How can I sort an array like this so that it would be ASC ordered by the [1]
key in subarrays? I need to maintain only the subarray key - value pairs.
(Do I make sense?)

Array
(
[0] => Array
(
[0] => Logo
[1] => NameC
[2] => Home
[3] => url
)

[1] => Array
(
[0] => Logo
[1] => NameA
[2] => Home
[3] => url
)

[2] => Array
(
[0] => Logo
[1] => NameG
[2] => Home
[3] => url
)
}

Cheers!
-Will

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


comment 5 answers | Add comment
Unserialize problem (and or bug) Sancar Saran 11:57:37
 Hi,

After updating company test server to dotdeb 5.2.0 it star to give memory
problems (even 32mb session). I tought it was because of suhosin. And I
cannot update that server to vanilla debian php5 package because it was a
sarge so today my company gives me another debian etch (like my home pc). I
setup latest php 5.2.0.8 for debian etch.

Then unserialize gives another problem

Message: unserialize(): Error at offset 1384 of 3177 bytes
Code: 8
Line: 419

My pc uses debian etch and have php 5.1.6-5 my scripts working normally.

Is there any suggestion for handle this ?

Regards

Sancar

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


comment 5 answers | Add comment
where match question Don 03:56:00
 I have a db field that contains zip codes separated by comas.

I am trying to get php to return all of the rows that contain a particular
zip code.



$query = "SELECT * FROM info WHERE MATCH (partialZIP) AGAINST ('$zip')";

$result = mysql_query($query)­

or die ("could not connect to db");

$row = mysql_fetch_row($re­sult);





this works if there is only one row that contains that zip code.



If there is more than one row that contains the zip, it returns 0 rows.
('It' being MYSQL that returns 0 rows. I checked this by running the query
directly to the DB)



Any ideas are very much appreciated.



Thanks,



Don





comment 17 answers | Add comment
How to make Browse Folder Dialog Aslam Bari 03:45:10
 
Dear All,
I m new in this Forum. I m making a project in which i need to show user a
Browse Folder Dialog Box, In which he can select a folder and after this i
will do some manipulation on that folder's content. So the problem is that i
could not found any sample on Web , how to show "Folder Dialog" in any way
(HTML, JavaScript, PHP etc). Plz has anybody some idea how to do some work
around this.

Thanks...
--
View this message in context: http://www.nabble.c­om/How-to-make-Brows­e-Folder-Dialog-tf30­79100.html#a8554729
Sent from the PHP - General mailing list archive at Nabble.com.

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


comment 6 answers | Add comment
Debugging itpc Skip Evans 00:39:13
 Hey all,

I'm working on a site that allows users to build
libraries of podcasts, and one of the calls to a
PHP file is itpc, not http.

Hence I don't have the ability to echo data for
debugging, and I also don't have write access to
any dirs to fopen and fwrite data.

Any suggestions for other ways to debug this
script file?
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypengui­n.com
=-=-=-=-=-=-=-=-=-=­
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bi­gskypenguin.com/

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


comment 4 answer | Add comment

Add new topic:

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


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

see also:
Efficient way to filter this string
preg_match question
htmlArea look-a-like
pass tests:
How Old Are You Psychologically?
see also:
How to convert and edit HD video
I the newcomer!!! Hello!!!

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .