Search found 245 matches
- Fri Sep 22, 2017 10:20 pm
- Forum: PHP - Code
- Topic: String to Array For CSV Writing
- Replies: 3
- Views: 5823
String to Array For CSV Writing
Hello All, I have an array which needs to be converted into CSV format. 2D Array is as below: I want the 0th element to be replaced by DateTime like Array ( [0] => Array ( [0] => 1 >>Should be replaced by 20170922,09:20:00 [1] => 31.85 [2] => 32.15 [3] => 31.75 [4] => 32.15 [5] => 401352 ) [1] => Ar...
- Fri Sep 15, 2017 7:24 am
- Forum: PHP - Code
- Topic: Unicode Characters While Data Processing
- Replies: 1
- Views: 3830
Unicode Characters While Data Processing
Hello All,
While working with some data I get characters like \x2F,\x26 etc
http:\x2F\x2Fstocks.us.reuters.com\x2Fstocks\x2Fratios.asp?rpc=66\x26symbol
Could you please suggest how can I convert these characters to regular format like
\x2F to /
\x26 to &
Regards,
Krishna Khanna
While working with some data I get characters like \x2F,\x26 etc
http:\x2F\x2Fstocks.us.reuters.com\x2Fstocks\x2Fratios.asp?rpc=66\x26symbol
Could you please suggest how can I convert these characters to regular format like
\x2F to /
\x26 to &
Regards,
Krishna Khanna
- Wed Sep 19, 2012 1:05 pm
- Forum: PHP - Code
- Topic: Static To Dynamic URL using Modrewrite
- Replies: 1
- Views: 738
Static To Dynamic URL using Modrewrite
Hi,
I have site running and wish to convert the url
http://mysite.com/variable
to
http://mysite.com/index.php?action=variable
This requirement is opposite to the usual method to convert dynamic url to static url
How can this be achieved with mod rewrite rules
I have site running and wish to convert the url
http://mysite.com/variable
to
http://mysite.com/index.php?action=variable
This requirement is opposite to the usual method to convert dynamic url to static url
How can this be achieved with mod rewrite rules
- Mon Aug 03, 2009 10:17 am
- Forum: PHP - Theory and Design
- Topic: Faster loading using static html
- Replies: 3
- Views: 1057
Re: Faster loading using static html
basically how to read the php script output into html file maybe every 5 mins for instance
- Mon Aug 03, 2009 10:15 am
- Forum: PHP - Theory and Design
- Topic: Faster loading using static html
- Replies: 3
- Views: 1057
Faster loading using static html
Hi,
I am working on a sql-query intensive homepage and have decided to grab the php output to a html and store it for 5 mins and whenever the user writes mysite.com i just display the readily available html file.
Can you help me work on this concept with ideas and suggestions?
I am working on a sql-query intensive homepage and have decided to grab the php output to a html and store it for 5 mins and whenever the user writes mysite.com i just display the readily available html file.
Can you help me work on this concept with ideas and suggestions?
- Tue Jan 13, 2009 9:33 am
- Forum: Installation and Configuration
- Topic: BIND9 Errors
- Replies: 3
- Views: 1450
Re: BIND9 Errors
mysite:/etc/bind/zones/master# named-checkzone mysite.org 200.19.227.rev gives me below results but mysite.org.db is OK now 200.19.227.rev:3: ignoring out-of-zone data (227.19.200.IN-ADDR.ARPA) 200.19.227.rev:12: ignoring out-of-zone data (1.227.19.200.IN-ADDR.ARPA) 200.19.227.rev:13: ignoring out...
- Sun Jan 11, 2009 1:49 am
- Forum: Installation and Configuration
- Topic: BIND9 Errors
- Replies: 3
- Views: 1450
BIND9 Errors
Hi, Below are my zone files and i receive the errors as specified. mysite.org.db BIND data file for mysite.org ; $TTL 604800 @ IN SOA mysite.org. ( 2007011501 ; Serial 7200 ; Refresh ...
- Sat Jan 03, 2009 11:32 pm
- Forum: Swift Mailer
- Topic: Mail Header and Postfix
- Replies: 7
- Views: 3763
Re: Mail Header and Postfix
Dear Chris,
previously it was localhost,25 but then i had changed it to mysite.org. I believe mysite.org is more preferable as to what i read on your swiftmailer docs
Is this ok?
previously it was localhost,25 but then i had changed it to mysite.org. I believe mysite.org is more preferable as to what i read on your swiftmailer docs
Code: Select all
$swift =& new Swift(new Swift_Connection_SMTP("[mysite.org]"));- Sat Jan 03, 2009 1:22 am
- Forum: Swift Mailer
- Topic: Mail Header and Postfix
- Replies: 7
- Views: 3763
Re: Mail Header and Postfix
Hi Chris,
the swiftmailer script I have written is on a path on my vps server eg /www/somedir/myscript.php
and from the browser i just run http://mysite.com/path/to/myscript.php
the swiftmailer script I have written is on a path on my vps server eg /www/somedir/myscript.php
and from the browser i just run http://mysite.com/path/to/myscript.php
- Mon Dec 29, 2008 9:03 am
- Forum: Swift Mailer
- Topic: Mail Header and Postfix
- Replies: 7
- Views: 3763
Re: Mail Header and Postfix
Hi Chris, I have updated the /etc/host file however writing hostname results debian.4.x86_64 even on changing the /etc/hostname file. What to do? Below are the results debian:~# hostname debian.4.x86_64 debian:~# hostname -f mysite.org debian:~# postconf -d | grep localhost.localdomain debian:~#
- Sun Dec 28, 2008 6:15 am
- Forum: Swift Mailer
- Topic: Swiftmailer Issue
- Replies: 0
- Views: 1123
Swiftmailer Issue
Dec 28 11:56:58 debian postfix/smtpd[19337]: connect from localhost.localdomain[127.0.0.1] Dec 28 11:56:58 debian postfix/smtpd[19337]: 665F14D00FE: client=localhost.localdomain[127.0.0.1] Dec 28 11:56:58 debian postfix/cleanup[19342]: 665F14D00FE: message-id=<20081228115656.8253.1485285329.swift@m...
- Fri Dec 26, 2008 1:35 pm
- Forum: Swift Mailer
- Topic: Mail Header and Postfix
- Replies: 7
- Views: 3763
Mail Header and Postfix
Hi, Whenever I send mail it has the following header which takes the mail to spam Delivered-To: amigovista@gmail.com Received: by 10.141.129.17 with SMTP id g17cs376644rvn; Fri, 26 Dec 2008 11:05:47 -0800 (PST) Received: by 10.210.142.10 with SMTP id p10mr177422ebd.95.1230318345065; ...
- Thu Dec 25, 2008 9:52 pm
- Forum: Swift Mailer
- Topic: Mails going to Spam
- Replies: 4
- Views: 2242
Re: Mails going to Spam
HI Chris, I understand your point. Is there any way I can make localhost replace by mysite.org and then try; may be it will go into the inbox then. Incase I need to do this change should I change the Postfix configurations? Also since past few days it was going into inbox, only couple of days back s...
- Thu Dec 25, 2008 11:19 am
- Forum: Swift Mailer
- Topic: Mails going to Spam
- Replies: 4
- Views: 2242
Re: Mails going to Spam
Hi, I am using bind9 on debian etch vps server. Have postfix installed. I noticed one thing that incase a mail is sent with smtp server localhost it goes to spam but incase it is sent from any other smtp server like gmail for example then it reaches inbox. xxx.x.xxx.rev $TTL 1d ; $ORIGIN xxx.x.xxx.I...
- Mon Dec 22, 2008 12:01 pm
- Forum: Swift Mailer
- Topic: Mails going to Spam
- Replies: 4
- Views: 2242
Mails going to Spam
Hi, I have swiftmailer class installed on my server and was working fine with emails delivered to inbox... but recently all the emails are just coming in spam. What can be done.? Basically I want to send an attachment to gmail/yahoo type email inbox . Is there any sample tested code which I can test...