I've never heard of, nor seen array_grep() before and AFAIK it's also
not a built-in php function. Check it at http://www.php.net/array_grep,
it doesn't exist. No need to advise that which does not exist :)
- Tul
Al wrote:
Can you be more specific? Show us a line of code, or so.
There are lo
karthi keyan wrote:
Hi,
How can I create a table with spaces "Order details" in MSSQL using PHP?
I am able to create manually the table name with space by providing the name
in Double Quotes. Is there a way out to do this using PHP?
Put double quotes around it in php - rather simple r
Hi,
How can I create a table with spaces "Order details" in MSSQL using PHP?
I am able to create manually the table name with space by providing the name
in Double Quotes. Is there a way out to do this using PHP?
Thanks
Karthik.
-
Download
Hi,
Is there any way to print the reason why the query has been failed, like the
way MySQL-PHP has mysql_error()?
Regards,
KARTHIK.
-
Download prohibited? No problem! CHAT from any browser, without download.
Robert , PHP General,
Thank you for replying and explaining the situation clearly.
Neither! It means using mysql_real_escape_string():
http://www.php.net/manual/en/function.mysql-real-escape-string.php
I have now made it so each and every queries to the database pass
through mysql_real_escape
We have a website in PHP where we want to implement PKI. The scenario is
that there would be some registered dealers who woud have to buy Digital
signatures. When they come to our website they would input several
information through PHP designed forms and use the digital signatures to
sign the dat
Yamil Ortega wrote:
Hi, me again. I need to tell you that im completely new in LAMP, so please
don´t get tired with my silly questions :-).
I was able to upload and create thumb images with the same size. But now, I
am realizing that I can´t upload images bigger than 1 MB, I don´t know wh
Hi, me again. I need to tell you that im completely new in LAMP, so please
don´t get tired with my silly questions :-).
I was able to upload and create thumb images with the same size. But now, I
am realizing that I can´t upload images bigger than 1 MB, I don´t know why.
I load the image th
Arvind Autar wrote:
Hello all,
Firstly, I'm not subcsribed so please CC me.
The issue, I'm running FC6 with php5 and sendmail. I can use mail and send
mail with client inlc telnet sessions. However, mailing with php is just
not
working.
This is what I'm using.
Anyone got a clue?
Check y
Can you be more specific? Show us a line of code, or so.
There are lots of functions that may fit your needs, array_filter(),
array_walk(), preg_grep(), etc.
I've found array_grep() to be super in many cases.
Returns the array consisting of the elements of the input array that match the
given
Arvind Autar wrote:
I defiend the distrobution of linux, FC6 (fedora core 6), my php.ini is set
correcty afaik
[mail function]
; For Win32 only.
SMTP = srv1.mydomain.nl
smtp_port = 25
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (defaul
Arvind Autar wrote:
Hello all,
Firstly, I'm not subcsribed so please CC me.
The issue, I'm running FC6 with php5 and sendmail. I can use mail and send
mail with client inlc telnet sessions. However, mailing with php is just
not
working.
This is what I'm using.
Anyone got a clue?
Well, a
Hello all,
Firstly, I'm not subcsribed so please CC me.
The issue, I'm running FC6 with php5 and sendmail. I can use mail and send
mail with client inlc telnet sessions. However, mailing with php is just not
working.
This is what I'm using.
Anyone got a clue?
On Jun 4, 2007, at 3:27 PM, Al wrote:
What determines the rows you want to keep?
User selection. The array is essentially a "shopping cart"-type of
object.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What determines the rows you want to keep?
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote:
Hey - - - - - - --
To do this, I am:
- looping through the array
- copying the rows that I want to *keep* to a temp array, and
- replacing the original array with the "temp' one.
Seems convoluted
On Jun 4, 2007, at 3:29 PM, Peter Lauri wrote:
You could use unset() for the rows you don't want to keep.
Ah --- yes, that looks like it would do it. I was expecting something
to find something array-specific.
Thank you, Pater and Roberto
--
PHP General Mailing List (http://www.php.net
On Jun 4, 2007, at 2:25 PM, Jay Blanchard wrote:
http://us2.php.net/manual/en/function.array-pop.php
Thanks, Jay ---
I did see that function, but forgot about it when I asked the
question. I should have added that *any* array row among many could
be the one that needs to be removed. I co
Can't you just unset() the values you don't want?
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote:
> Hey - - - - - - --
>
> To do this, I am:
>
> - looping through the array
> - copying the rows that I want to *keep* to a temp array, and
> - replacing the original array with the "temp' one
Using array_pop wouldn't do it, as it just removes the last element.
You could use unset() for the rows you don't want to keep.
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
> -Original Message-
[snip]
To do this, I am:
- looping through the array
- copying the rows that I want to *keep* to a temp array, and
- replacing the original array with the "temp' one.
Seems convoluted, but I couldn't find any function to remove a row of
an array. Am I missing something (other than a few b
Hey - - - - - - --
To do this, I am:
- looping through the array
- copying the rows that I want to *keep* to a temp array, and
- replacing the original array with the "temp' one.
Seems convoluted, but I couldn't find any function to remove a row of
an array. Am I missing something (other t
On Mon, 2007-06-04 at 23:25 +0900, Dave M G wrote:
> Robert ,
>
> Thank you for your quick reply.
>
> If it's okay, I'd just like to clarify the points you raise.
>
> >> I just want to double check here what to do. Should I disable magic
> >> quotes on my server?
> >>
> >
> > Not unless yo
Hi Dave,
Monday, June 4, 2007, 3:25:25 PM, you wrote:
>> No, you should check the ini setting in your code and react accordingly.
>>
> Sorry, I don't quite follow you here. If I turn magic quotes off on both
> my testing environment and my server, as is "preferable" according to
> the manual,
Robert ,
Thank you for your quick reply.
If it's okay, I'd just like to clarify the points you raise.
I just want to double check here what to do. Should I disable magic
quotes on my server?
Not unless you're certain you don't have any script that rely on magic
quotes. If you do, then t
On Mon, 2007-06-04 at 23:02 +0900, Dave M G wrote:
> PHP General,
>
> I've read on the manual that it's "preferred to code with magic quotes
> off and to instead escape the data at runtime, as needed":
Indeed this is preferable.
> Recently, while configuring my PHP so as to install the GD libra
PHP General,
I've read on the manual that it's "preferred to code with magic quotes
off and to instead escape the data at runtime, as needed":
Recently, while configuring my PHP so as to install the GD libraries,
that the default option was to have magic quotes turned on.
I just want to dou
On Mon, 2007-06-04 at 09:50 -0400, tedd wrote:
>
> Don't scale, resample. See here:
>
> http://www.webbytedd.com/b/thumb/index.php
Hi Tedd,
In your script you have:
ini_set( 'register_globals', '0' );
The line is pointless, it can't be reached until after such globals have
been registered.
On Mon, 2007-06-04 at 10:16 -0300, zerof wrote:
> C.R.Vegelin escreveu:
> > Hi All,
> >
> > I am testing some GD functions, but I'm getting "undefined function" errors.
> > I checked php.ini and changed
> > ;extension=php_gd2.dll
> > to
> > extension=php_gd2.dll
That doesn't mean you actually hav
At 1:44 AM -0500 6/4/07, Humani Power wrote:
Hey hi!!.
I have a few pages that uploads images to the apache server and makes a
registry on a mysql database. Everything is going well just for a few
details.
When I make the upload for an image, it creates me a thumb image, but not as
I want. For
C.R.Vegelin escreveu:
Hi All,
I am testing some GD functions, but I'm getting "undefined function" errors.
I checked php.ini and changed
;extension=php_gd2.dll
to
extension=php_gd2.dll
The php.ini file contains: extension_dir = "c:/php/ext"
and this directory does contain php_gd2.dll (version 5
Tijnema, Greg, Robert,
Thank you all for your advice.
After the responses here convinced me that the GD libraries should be
expected, I've contacted my hosting service to inquire why it's not
already installed.
My hosting service allows me to make custom configurations to PHP.
Fortunately
I have an application, with mild security, that approved users can upload pdf
files. Obviously, the security for executables with a simple pdf extension
bothers me.
I's like some suggestions on how I can protect against errant files with a pdf
guise?
Thanks.
--
PHP General Mailing
The GD module is an option that most sys admins install with php (It also
installs by default on OS such as Centos, Ubuntu, etc...)
--
itoctopus - http://www.itoctopus.com
"Dave M G" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> PHP General,
>
> I have been using the imagepng()
$thumb_width=50; //change this number to your preference
$thumb_height=50;
--
itoctopus - http://www.itoctopus.com
""Humani Power"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey hi!!.
>
> I have a few pages that uploads images to the apache server and makes a
> registry on a
Hi All,
I am testing some GD functions, but I'm getting "undefined function" errors.
I checked php.ini and changed
;extension=php_gd2.dll
to
extension=php_gd2.dll
The php.ini file contains: extension_dir = "c:/php/ext"
and this directory does contain php_gd2.dll (version 5.2.0.0)
I am using Windo
Sudheer,
Another simple alternative is to pass the id to each site, and then make a
cookie out of the id. If the user has the cookie then they authenticate, else,
send them back to sign in at my.example2.com
Sincerely,
rob
http://phpyellow.com
===
Sudheer wrote:
>Date: Mon, 04 Jun 2007 08:06:52
Humani Power wrote:
Hey hi!!.
I have a few pages that uploads images to the apache server and makes a
registry on a mysql database. Everything is going well just for a few
details.
When I make the upload for an image, it creates me a thumb image, but
not as
I want. For example, if I have an i
At 8:06 AM +0530 6/4/07, Sudheer Satyanarayana wrote:
Hi,
We have three web sites
a) example1.com
b) example2.com
c) my.example2.com
Our sites include exclusive pages for registered users. All user
account management tasks are handled by my.example2.com including
registration, modification,
I suggest each student adds the line
error_reporting(E_ALL);
This will echo the errors and will not affect the php.ini settings.
Hope that will work for you
cheers
On 5/31/07, Clark Alexander <[EMAIL PROTECTED]> wrote:
We have the following php.ini settings:
error_reporting = E_ALL
display
On 6/4/07, Greg Donald <[EMAIL PROTECTED]> wrote:
On 6/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> Every host I've ever used has had GD installed. If they didn't offer GD,
> I'd switch. I think it's a safe bet to assume most realistic hosts have
> GD.
Same here. Been using it for years,
Morning :o)
This is what I am using
--- SNIP
$ratio_orig) {
$width = $height*$ratio_orig;
} else {
$height = $width/$ratio_orig;
}
// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
$dest_path = "../_images/ne
41 matches
Mail list logo