phplist

zebra (even/odd) rows css in <ul> and hyperlink issue

若如初见. 提交于 2019-12-11 07:48:29
问题 I have this little select code which should provide a 'zebra' even/odd rows. I don't understand how to change the css for that: 1, every other that will be listed (and not every second) should have .even css 2, if one of them clicked should be bold as well (I could not figure out, how to merge these two issue) Any help would be appreciated, from a beginner. <div id="left"> <?php $query = $pdo->prepare('SELECT id, name FROM test1 ORDER BY name ASC'); $query->execute(); ?> <ul> <?php foreach (

Port checking from php

梦想的初衷 提交于 2019-12-02 07:02:23
I'm trying to connect to gmail pop server from a phplist installation and it fails, but i'm not sure whether my webhost opened port 995 or not. They say they have opened it, but i'm in doubt. Is there a way i can check it from a php script? They are running php 5.2.0 on a windows server, though i'm not sure what OS is that. phpinfo() says "Windows NT DEDI514 5.2 build 3790" You can put code in a php script to open a connection to a specific hostname (or IP address) and port. If you know the expected response, you should be able to tell if you are getting a connection. If you get something like

Port checking from php

点点圈 提交于 2019-12-02 06:40:35
问题 I'm trying to connect to gmail pop server from a phplist installation and it fails, but i'm not sure whether my webhost opened port 995 or not. They say they have opened it, but i'm in doubt. Is there a way i can check it from a php script? They are running php 5.2.0 on a windows server, though i'm not sure what OS is that. phpinfo() says "Windows NT DEDI514 5.2 build 3790" 回答1: You can put code in a php script to open a connection to a specific hostname (or IP address) and port. If you know