Danny Brow wrote:
Hi Everyone,
I'm trying to compare a value to the first field in a csv fILE (example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of the
following.
So are you trying to compare the firs
The script is MEANT to be used this way
I doubt it.
If you want the contents from that url, then use curl
(http://www.php.net/curl).
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Lucas Prado Melo wrote:
Hello,
Some php applications store database passwords into files which can be
read by the user www-data.
So, a malicious user which can write php scripts could read those passwords.
What should I do to prevent users from viewing those passwords?
Not too much really.
The
Also don't forget the part where you shouldn't disconnect and
reconnect between mails sent.
indeed but I have experienced situations where the SMTP server refuses
more than X number of messages on any one connection ... which meant
having to get the script to disconnect/reconnect every 200 (ii
And I'd be interested to hear of an actual side-by-side comparison on
comparable hardware where sendmail using pipes beats SMTP on a LAN.
I don't have that but a comparison between the main open-source mta's
(all out of the box, no optimizations for any of them) revealed sendmail
sucks the m
or you could do
$result = mysql_query($sql);
$count = mysql_num_rows($result);
for ($i=0; $i<$count; $i++) {
var_dump($row);
...
}
Not unless you have a
$row = mysql_fetch_assoc($result);
before doing the var_dump of $row because $row isn't being set :)
Manuel Lemos wrote:
Hello,
on 01/15/2008 07:16 AM Per Jessen said the following:
If there's any way to re-configure the MTA to queue the messages for
later sending, that would save you a lot of overhead on the PHP end...
The MTA will always queue the messages - well, that is certainly the
case
tbt wrote:
Hi
I have two php files as follows
session_register.php // sets the value of $refString
$_SESSION['refString'] = $_GET['refNo'];
and
session_data.php // retrieves the value of $refString
echo $_SESSION['refString'];
This code works fine when register_globals is set to 'o
Dave M G wrote:
Per Jessen,
Thank you for responding.
Might this be a name-server issue?
Maybe, but I don't think so. The reason I suspect that is not the case
is because I can go first to a .html page on the server, and it loads up
quickly. Then I go to one of my .php pages, and the slowd
Javed Khan wrote:
Hello All,
I have php script which performs various sql operations, like insert row in table A, delete row from Table B and Update rows in table C. Now I would like to display all those tables that are affected by my script. Can anyone send me a function or script if it is alr
dg wrote:
Hello everyone,
I'd appreciate any insights, or source suggestions regarding site
traffic and necessary adjustments.
For example, I'm using a simple digital download page for an indie
artist. Not a ton of traffic, not a ton of concurrent requests.
Was thinking about introducing
Nathan Nobbe wrote:
hi all,
recently ive been debating a bit about the use of the crypt() function and
the best practice thereof, im hoping you can help to clarify this for me.
so, the crypt function
http://www.php.net/manual/en/function.crypt.php
has a second parameter, $salt, which, if not su
blackwater dev wrote:
I have a text file that contains 200k rows. These rows are to be imported
into our database. The majority of them will already exists while a few are
new. Here are a few options I've tried:
I've had php cycle through the file row by row and if the row is there,
delete
Hi all,
Does anyone understand the difference between memory_get_usage and
memory_get_peak_usage with and without the parameter?
I don't understand how the allocations could be so far apart.
eg (small script that takes a minute to run):
$ php -f file.php
Peak usage (true): 4,608.0
Tom Ray [Lists] wrote:
Hey-
I'm trying to install PHP5 with mysql support and I keep running into
the same problem over and over again. I run the configuration with this:
--with-mysql=/usr/local/mysql and without fail I get this every time:
ext/mysql/php_mysql.o: In function `zif_mysql_creat
Tom Ray [Lists] wrote:
Chris wrote:
Tom Ray [Lists] wrote:
Hey-
I'm trying to install PHP5 with mysql support and I keep running into
the same problem over and over again. I run the configuration with
this: --with-mysql=/usr/local/mysql and without fail I get this every
time:
ext/
Miguel Guirao wrote:
Hello fellow members of this list,
There is a couple of rutinary tasks that our servers (different platforms)
perform during the night. Early during the day, we have to check that every
task was performed correctly and without errors. Actually, we do this by
hand, going firs
Dotan Cohen wrote:
I have a file of my own functions that I include in many places. One
of them uses mysql_real_escape_string, however, it may be called in a
context that will or will not connect to a mysql server, and worse,
may already be connected. So I must avoid connecting. However, when I
r
nihilism machine wrote:
any ideas why this does not work?
1) the field in the form might not be 'upload1'.
2) the file is too big to upload (> max_upload_size)
3) the /tmp folder might not be writable or full
4) the folder you're trying to write into is not writable (or the drive
is full)
5)
Richard Lynch wrote:
On Sat, January 19, 2008 8:24 pm, Eric Butera wrote:
I always make sure that I use a site specific salt which is just
appended on the user supplied value. I started doing that when I read
that people had created huge databases of hashed values that they can
just search on.
Richard Lynch wrote:
On Tue, January 22, 2008 7:43 pm, Chris wrote:
Richard Lynch wrote:
On Sat, January 19, 2008 8:24 pm, Eric Butera wrote:
I always make sure that I use a site specific salt which is just
appended on the user supplied value. I started doing that when I
read
that people
Dotan Cohen wrote:
On 23/01/2008, mike <[EMAIL PROTECTED]> wrote:
It would be Real Nifty (tm) if the MySQL API had a function that let
you specify the charset without a connection and did the escaping.
Presumably you don't NEED a connection if you already know what
charset thingie you are aimin
Right now I still use mysql_escape_string and it seems to work fine,
but it makes me nervous as everything else I use is mysqli and I know
it is not 100% compatible (just haven't had anything break it yet) -
but I hate having to have a connection handle open just to escape
things.
If you need
Dotan Cohen wrote:
On 23/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
I can read, I saw 2 functions the first time. each function cleans *and*
escapes.
cleaning is filtering of input.
escaping is preparing for output.
2 concepts.
I see your point.
if the input needs to be stripped of h
mattias wrote:
I try to add php-support to my php installation on windows 2000 server
Eh?
What sort of support are you trying to add?
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
mattias wrote:
oops sorry
i meen sql
You could probably access it through odbc but I can't see any other
method available.
If you want to use the mssql_* functions the php site has info about how
to get it going:
http://php.net/mssql
Read the comments too - it looks like there are a few
mattias wrote:
yes but if you check my phpinfo.php
http://mjw.se/phpinfo.php
i can't reed out if sql support are enabled
If it was there would be a big section called 'mssql' - like there is
for odbc.
If that's not there, then no you don't have mssql support enabled.
--
Postgresql & php tut
Mick wrote:
Operating System: CentOS 4.6
PHP Version: 4.3.9-3.22.9
Zend Optimizer (free) version: 3.2.6
Hello.
I've got somewhat of a strange problem here involving Squirrelmail.
Basically, what is happening is that one of our customers is logged out
of his Squirrelmail session at random int
What's happening is, I have the code set and it downloads the file into
excel, but it doesn't have the database fields in it, rather a copy of
the entire webpage which it trys to put into excel. Below is the code
that I am using in my function to export the records:
echo $select . "\n";
Barney Tramble wrote:
Hey
I have a script that I am trying to figure out to allow a remote file to
be sent to a client's browser. It works ok for small files, but it keeps
timing out for large files. I don't think it should even take as long as
it does (i.e. about 10seconds) before it pops u
Mike Yrabedra wrote:
Can anyone recommend a good php-mysql session handler class?
http://www.php.net/manual/en/function.session-set-save-handler.php#79706
looks ok.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I dunno about the OOP instances getting GC'ed, but PHP *definitely*
reclaims memory from arrays and strings as they go out of scope,
usually.
Does anyone else find that funny? :)
It definitely does it ... usually ;)
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General
Richard Lynch wrote:
On Wed, January 30, 2008 6:19 pm, Chris wrote:
I dunno about the OOP instances getting GC'ed, but PHP *definitely*
reclaims memory from arrays and strings as they go out of scope,
usually.
Does anyone else find that funny? :)
It definitely does it ... usually ;)
Mad Unix wrote:
I did what you recommended i get the same erorr
;;;
; Resource Limits ;
;;;
max_execution_time = 3600 ; Maximum execution time of each script, in
seconds
max_input_time = 60 ; Maximum amount of time each script may spend
parsing request da
First off, the script runs great from the command line when I type "php5
backup.php" but when I type ./backup.php I get an error: "bash:
./backup.php: No such file or directory".
Maybe backup.php that you think it's running is the wrong one.
Add something like:
echo "I am file " . __FILE__ .
In your cronjob, replace the php5 entry with the following
(including the backticks):
`which php5`
If that still doesn't work, replace it simply with php, not php5:
`which php`
You can use 'env php' instead and it'll pick up the first one in $PATH
(same sort of idea a
Fatal error: Call to undefined function mb_language() in
/usr/puneet/geronimo-tomcat6-jee5-2.0.2/repository/default/collabo_gero/1202406746983/collabo_gero-1202406746983.war/sns/config.php
on line 403
You need to add multibyte support to your php setup.
http://www.php.net/manual/en/ref.mbstr
Fahad javed wrote:
I am developing a webservice in PHP/Linux where I need to kill a process.
I tried using
exec("kill ".$pid);
and
exec("kill -KILL ".$pid);
but the return value was always 1 and the process still remained.
I wrote up a small shell script and have exec run that script. The scri
Nathan Nobbe wrote:
On Feb 9, 2008 7:03 PM, nihilism machine <[EMAIL PROTECTED]> wrote:
Looking to really beef up my DB class, any suggestions for functions
to add that will be more time saving for a web 2.0 app, or ways to
improve existing methods? thank you everyone in advance.
first of al
nihilism machine wrote:
any idea why this fails?this is the error: "Sorry, there was a problem
uploading your file"
It can't move the file to the $target location, or maybe the file wasn't
uploaded properly in the first place.
What's in $_FILES['uploaded']['error'] ?
http://www.php.net/manu
Børge Holen wrote:
On Sunday 17 February 2008 19:22:03 nihilism machine wrote:
any idea why this fails?this is the error: "Sorry, there was a problem
uploading your file"
insert_sql("INSERT INTO CMS_Media (File_Name) VALUES
('')");
$target = "media/" . $insertID . $extension;
//echo $target;
if
Petrus Bastos wrote:
Unfortunately I don't have access to this family of methods because security
policy. Lefting this way out, I didn't find anyway on how to do that. If you
have any idea or know any module can do that, I'll appreciate to know too!
See if the pear package does what you want:
Sylvain Rabot wrote:
Hello,
First of all I would like to know if one day we will be able to unset
$this into a class in order to destroy the object. It could really be
useful to prevent big memory usage.
I doubt the php-dev's will ever allow something like that, seems rather
dangerous to me.
my only wish was that more people wrote more articles about the proper structure.
You mean like the example on the mysql website?
http://dev.mysql.com/doc/refman/5.0/en/stored-procedures.html
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www
Perhaps concider moving to fsockopen or stream_socket_client with
timeout parameters to solve your issue.
fsockopen has no context
Maybe I'm missing something but it returns a resource just like fopen.
http://php.net/fsockopen
--
Postgresql & php tutorials
http://www.designmagick.com/
--
Hence my previous gibberish, I would expect a reference to be destroyed
when the object is, but obviously it's not.
It has nothing specifically to do with objects, it's all about how
references are handled.
$ php -a
Interactive mode enabled
http://blog.libssh2.org/index.php?/archives/51-Yo
I don't mean unset($this) is the best wy to allow an object to destroy
itself. I just say we miss something to auto destroy objects.
We could also think about a magic method like __destroy().
An object that destroys itself is a really bad idea from an architectural
point of view. I, as a consu
I may be showing my ignorance here... But on your if ($counter % 2 ==0)
line what does the "%" do? Was that possibly a typo?
% is the modulus operator, so basically that will alternate between a
line having a font tag and not having a font tag.
http://www.php.net/operators.arithmetic
--
Po
Daniel Brown wrote:
On Feb 20, 2008 10:30 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
Please keep the replies on-list, Mario. It helps others out, and
ensures that you'll get better advice from a larger group of talented
people.
\n";
print_r($ret);
echo "\n";
echo isset($err) ? "Error: ".
Back to my 'original' problem/question, if I '$f = fopen("$file",
"r")' and 'while ($data = fgets($f))' on the above first format and do
a $data = str_replace("\t",",",$data); the resulting file looks like
the second example above when opened into Textpad but will not open
into separate columns
Hamilton Turner wrote:
Does anyone know why a server would simply fail on this line?
$num = preg_match_all($regex, $theData, $match, PREG_SET_ORDER);
if i know the file handle is valid (i grabbed it using 'or die'), and
the regex is valid
What file handle? preg_match doesn't work on resource
Ryan A wrote:
Hey!
Need to reinstall Apache PHP and MySql for personal development use on my new laptop... I
usually used phpdev in the past but now I want php5 compatability... can anyone recommend
any such "all in one installer".
And yes, I know its good experience and so on to do each one
Prabath Kumarasinghe wrote:
Hi All
Recently I'm came across following code snippet
regarding exceptions there I'm executing invalid query
and catch the exception as follows.
First Approach
---
try{
$result = mysql_query('SELECT * from unknowntable');
}c
But it's give a many information using $e->getTrace()
is this correct. If there are several mysql_query then
I can put it as bunch within try block and catch
exception easily.
No, it doesn't give any such information.
1 :
In second approach for every query I have to write
throw new MySQLExcep
Rob Gould wrote:
I've got 2 tables. One table which contains a series of barcodes assigned to
product id #'s, and another table with JUST product id #'s.
I need to somehow transfer all the barcodes from the first table into the
second table, but only where the id #'s match.
Can anyone tell m
Keikonium wrote:
I am a bit confused by your code, Rob.
$newTimestamp = $oldTimestamp;
$newTimestamp[5] = '.';
means make the 6th character (remember php is 0 based so the first
character is index 0) a '.'.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing L
Verdon Vaillancourt wrote:
Hi,
I'm running into some sorting issues using a while(list($vars) =
mysql_fetch_row($result)). I can provide more code if needed, but
thought I would try this little bit first to see if I'm missing a
fundamental concept and not a detail.
In a nutshell, I have a q
But Im interested in how many right answers you should make to pass the
exam.
As many as you can?
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have you considered installing a local copy of php (and suitable webserver)
so you can test it there?
I'd also suggest using a revision control system (subversion or git) and
have pre-commit hooks to check the syntax.
It's a bit of work to set up but once it's done you'll notice a
differen
Richard Lynch wrote:
It's possible that there is an .htaccess file in phpMyAdmin that has
Magic Quotes on that is messing you up...
Other than that, it's specific to phpMyAdmin, so maybe ask those guys
what they did...
Also make sure you are running the latest version, in case it's
something
Just FYI, using ADODB will slow down the performance of your app. Any
function calls cost against you and it all adds up.
If you remove it, then you remove functionality - so before you go and
rip it out, check whether it's the bottleneck using xdebug.
I use an abstraction layer all the ti
Ben Edwards wrote:
Our server has just been upgraded to PHP 5.2.5 and suddenly I am
getting the following error:
Fatal error: Call to a member function web_order_change() on a
non-object in /var/www/vhosts/cultureshop.org/httpdocs/cart.php on
line 32
The code is:
$SESSION["cart"]->web_order_c
I don't think it's a change in OO handling, maybe it's a change in the
error_reporting level for the new version and you hadn't noticed the
problem before.
Its a Fatel Error not a warning. Dont see how level off error
reporting could be relevant.
Fair enough :P
What type of variable is '
These 'benefits' you talk about really only matter if you switch your
databases. If this app is written against Oracle and they never plan
to change it, then it isn't a bad idea to cut out that fat and just
deal with the native interface. Even writing wrapper functions that
are very basic that
I have a copy of the files and database, but setting it up is not that
simple. This vb.net is licensed and we don't have license for.
If I could profile the app I'd be more than happy, but that's not going to
happen anytime soon.
What does the vb.net stuff do? Is it the frontend (eg for data-
Larry Brown wrote:
Its been a long week already... -MM-DD.
On Tue, 2008-03-04 at 20:16 -0500, Larry Brown wrote:
Does anyone know if there is a builtin function for checking the
formatting of an incoming date to verify it is /MM/DD. I know how
to convert between formats but want a quic
Zareef Ahmed wrote:
Hi All,
I am looking into the concepts behind memory management in PHP. Which
kind of approach will be best to measure memory leakage or usage in a PHP
script?
I can measure my apache process but is there any way by which I can know
which exact part of script is consuming
Zareef Ahmed wrote:
Hi Chris,
Thanks for such quick response.
quite good suggestion, but my application is using a framework and lots
of includes and even autoloads of classes are being done, so using break
point approach is not possible for me.
Why not? It just means the files are
If you want to ask, and have answered, a question that's important to
you, then consider asking it in a way that's respectful. That's
understandable, is it not?
He did ask a question.
"I would like to be able to automatically check projects out from a CVS
repository using PHP rather than a t
Rahul wrote:
I have a small file to be transferred between two computers every few
seconds. I'm using unix with a bare bones version of php, i.e. just the
original thing that gets installed when I run "yum install php". As there is
no webserver on any of these machines, I was wondering if there
Rahul wrote:
Thank you all so much for replying... I guess I was very vague in
describing the situation. I will write in detail:
I have three computers A, B and C. To login to B and C I should use A
because it has a SSH key. I don't have any other way of accessing these
two computers. Now, if
If ssh keys are installed on the remote hosts then scp works
transparently and you just stick the scp in a cron job. Am I missing
something?
Yeh - looks like you have to log in to "A" and then it uses
key-forwarding to let you log in to "B" and "C":
---
To login to B and C I should use A b
Steve Finkelstein wrote:
So, I use a Mac to develop with. I used to host Zend Core on my box,
until I switched to the MAMP PRO framework.
Unfortunately somewhere in between, this lovely issue started occuring
with my CLI binary of PHP:
foo:~ sf$ php -l
dyld: NSLinkModule() error
dyld: Symbol no
as you can see my Return-Path is still pointing on the wrong direction :-(
any other idea ?
return-path is set with the 5th mail() param:
mail($to, $subject, $body, $headers, '[EMAIL PROTECTED]');
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http:
Rick Pasotto wrote:
I have a routine that uses the PEAR module CRYPT_BLOWFISH to encrypt a
value and then base64_encode() to create a printable string. If I
reverse the process on the same host I get the orginal value however if
I do the reverse processing on a different host the result is garbag
Alain Roger wrote:
Hi Chris,
interesting thing, but i get the following error message :
*Warning*: mail() [function.mail
<http://test4.rogtek.com/common/function.mail>]: SAFE MODE Restriction
in effect. The fifth parameter is disabled in SAFE MODE. in
*/test4/common/sendmail.php* o
Alain Roger wrote:
hiChris,
i've read several forums where this mail() function from PHP initial
package is not so great.
mail() works fine.
phpmailer (and zendmailer, swiftmailer and other such packages) help you
with things like:
- sending through an smtp server
- putting a multipart em
Stephane Ulysse wrote:
PLEASE STOP EMAILING ME
THEN CLICK THE UNSUBSCRIBE LINK AT THE BOTTOM OF THE EMAIL. IT'S VERY
EASY TO DO.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When running this same script through apache however, it works fine without
the port directive. However, I get no results when attempting to connect to
port 8080. Command line curl works fine too. It's only when connecting
through apache that my script fails.
Here are some specifics about my
hange?
Is there a work around to this or how would one access remote web services
if allow_url_include is OFF. This looks like a huge problem since many
services, like PayPal's IPN and Google maps geocoding, rely on communication
with their servers.
Thanks,
Chris
--
PHP General Mai
Sudhakar wrote:
instead of using mysql database which is conventionally used as database
with php, if sql server database is used with php are there any major
differences to keep in mind.
In syntax or what? Yes there are differences between the two as far as
sql syntax goes.
1.
are the conn
George J wrote:
Hi John,
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
Does anyone know of a good MySQL group?
I want to make a relational link from `data` to `shopping` so when I
insert a new record in `shopping`, I will see the contents of
`data`.`name`
John Taylor-Johnston wrote:
Thanks for getting me started. (Sorry, I'm a top quoter.) Below is some
working code for the archives.
What I've learned so far is that :
1) what I'm referring to in `person` has to be a key.
It should be a unique item rather than just a 'key' (indexed item).
If y
Liz Kim wrote:
We have a set of PHP files which uses "dl()" to load the extension
"php_mssql.so" at runtime.
These were running on a server with PHP 4.3.9 and have been recently moved
to a new server with PHP 5.1.6 (both RedHat).
I have tried to simply copy the file "php_mssql.so" file to the dir
Liz Kim wrote:
Maybe I could just compile it on a test machine and copy the .so file
over to the working server.
Would there be any incompatibility issues there?
If and only if:
- They are the same architecture (they both have to be i386 for example,
one can't be an amd-64 and the other be a
[EMAIL PROTECTED] wrote:
As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it
a very wild idea to implement (a simple) LDAP server in php?
We have all the address data already in PostgreSQL and a php application
managing all of it.
I am thinking of simple uses, such as pr
I have used this to good effect
function isEmail($email)
{
if
(eregi("^[a-z0-9]+([-_\.]?[a-z0-9])[EMAIL
PROTECTED]([-_\.]?[a-z0-9])+\.[a-z]{2,4}",$email))
{
return TRUE;
} else {
return FALSE;
}
}//end function
I often have a '+' in my email address (wh
I used to use a script to grab a random image from a folder of images by
scanning the folder, returning the list of images, getting one of them
randomly and displaying it.
Isn't that what the code is doing? Maybe I'm missing something but
you've only mentioned one method.
What's the second
$carpeta = "subidos"; // nombre de la carpeta ya creada. chmool 777
(todos los permisos)
copy($_FILES['file']['tmp_name'] , $carpeta . '/' . $_FILE
['file']['name']);
It's $_FILES not $_FILE (an 's' on the end).
It's always worth using error_reporting(E_ALL) and
ini_
Richard S. Crawford wrote:
Hi, everyone.
This one's been driving me bonkers for an hour now. Anyone have any idea
why require_once would be dying silently in the script below?
$CFG->dirroot = "/home/rcrawford/public_html/tanktrunk/tanktrunk";
$CFG->datar
Bill Guion wrote:
I'm trying to write a MySQL UPDATE query where one or more variables may
be NULL. So, I'm trying something like:
$last_name = $_POST['last_name'];
$first_name = $_POST['first_name'];
$suffix = $_POST['suffix'];
$suffix = empty($suffix) ? NULL : $suffix;
$phone = $_PO
vester_s wrote:
Hi,
Can anybody tell me how can php connect to NNTP to get the list of all users
in the newsgroups?
http://php.net/imap supports nntp.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
Jason Pruim wrote:
Hi Everyone!
I'm back with yet another question But getting closer to sounding
like I know what I'm talking about and that's all thanks to all of you.
A free beer (Or beverage of choice)* for everyone who has helped me over
the years!
Here's my question... I have a pr
VamVan wrote:
Hello All,
We many times encounter the situations of having Queries inside loop of
another query. Many times we can solve the issue by query joins but there
will be some situations where we cannot do it.
For Example:
function Change($id){
$qry_reg = "SELECT registrationI
Jason Pruim wrote:
On Apr 16, 2008, at 5:37 PM, Chris wrote:
Jason Pruim wrote:
Hi Everyone!
I'm back with yet another question But getting closer to sounding
like I know what I'm talking about and that's all thanks to all of
you. A free beer (Or beverage of choice)* f
Waynn Lue wrote:
Our site has been slowing down dramatically in the last few days, so
I've been trying to figure out why. I ran some profiling scripts on
our site and saw that we're spending between 3-9 seconds on
mysql_connect. Then I connected to our db and saw that there were
over 100 connec
Ryan S wrote:
Hello!
I have been using XAMPP for quite some time now (thanks to the recommendations from this list) without any real complaints...
and the only reason I am writing here is because i am sure a lot of you guys run the same thing considering the amount of people who recommended it
After reading a bit I see that if I just copy the "data" directory in the mySql
directory, I can restore it from there? any idea if I have that wrong?
Hmm I guess, but I'd take the safer road and open a console and run:
mysqldump.exe -u -p --all-databases --add-drop-database --opt
> mysql.
>> Index on most integer fields only. Text fields can be indexed, but is not
>> important when you design your DB well.
>>
>> Don't index just all integer fields. Keep track of the cardinality of a
>> column. If you expect a field to have 100.000 records, but with only 500
>> distinct values it ha
Richard Kurth wrote:
> I get a *Catchable fatal error*: Object of class stdClass could not be
> converted to string on this line $mail_head = imap_headerinfo($conn, $i);
RTM.
http://www.php.net/imap_headerinfo
It's an object, not a string.
print_r($mail_head);
--
PHP General Mailing List (h
701 - 800 of 6457 matches
Mail list logo